Skip to Content
Mathematica 錦囊妙計
book

Mathematica 錦囊妙計

by Sal Mangano
April 2014
Beginner 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.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Mathematica Cookbook

Mathematica Cookbook

Sal Mangano
人工智能技术与大数据

人工智能技术与大数据

Posts & Telecom Press, Anand Deshpande, Manish Kumar

Publisher Resources

ISBN: 9789863470106