Skip to Main Content
Mathematica 錦囊妙計
book

Mathematica 錦囊妙計

by Sal Mangano
April 2014
Beginner to intermediate content levelBeginner to intermediate
830 pages
15h 21m
Chinese
GoTop Information, Inc.
Content preview from Mathematica 錦囊妙計
9.16 匯入數位音訊檔案
|
399
以下為全音階。
9.16 匯入數位音訊檔案
問題點
你想要匯入數位音訊檔案,如 WAV AIFF 等檔案格式。403
ch09.indd 399 2014/4/2 下午 12:52:11
400
|
第九章
解決方案
Mathematica 可以匯入許多檔案格式,WAV AIFF 音訊格式也有支援。
指定使用
"Data"
格式可自動判斷你所匯入的檔案格式,記得別忘了於行尾加上分號,
以避免輸出檔案全部內容。匯入檔案最簡單的方式是使用
Import[]
指令,無論你的游標
位於何處,點選選單列上的 Insert\File Path 後,將出現開啟檔案視窗,點選檔案後,游
標處將出現該檔案的完整路徑。403
如果你想知道匯入音訊檔案的取樣率、單聲道或立體聲道,可以再使用一次
Import
令並且指定第二引數為
"Options"
如果你只是想播放該音訊檔案,可以指定第二引數為
"Sound"
上式將輸出
Sound
物件。
ch09.indd 400 2014/4/2 下午 12:52:11
9.16 匯入數位音訊檔案
|
401
可直接播放此物件。
討論說明
音訊檔案可能很巨大,這將增加處理的難度。404
以下提供一個可以迅速得到檔案概要的方法,指定 Mathematica 每一千
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Ubuntu for Non-Geeks, 4th Edition

Ubuntu for Non-Geeks, 4th Edition

Rickford Grant, Phil Bull

Publisher Resources

ISBN: 9789863470106