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 錦囊妙計
384
|
第九章
以下播放小鼓逆拍(backbeat)。輸出圖形會將前面的休止符省略,小心不要被圖形給誤
導,稍後將結合大小鼓與腳踏鈸的節奏,此時輸出圖形將正確繪出。387
以上範例中的每個串列均包含恰好 8 個元素,因此我們可以使用
Transpose
轉置指令將
這些節奏組合在一起。
ch09.indd 384 2014/4/2 下午 12:52:02
9.9 製作複雜的打擊樂
|
385
將這個組合節奏重複數次即可製作完整的爵士鼓節奏。388
討論說明
初學者想正確使用串列語法有時候不太容易,在上例中,若忘記使用
Flatten
指令,
SoundNote
便無法辨識
Table
指令產生的串列,而無法輸出結果。
ch09.indd 385 2014/4/2 下午 12:52:03
386
|
第九章
此外,若僅單純使用
Flatten
指令的預設功能,所有的音符將被打散,每個樂器的拍子
將被單獨演奏,而失去了同時演奏的目的。因此,請特別注意前例中的方法為
Flatten
[ ... , 1]
,意即僅去除一層的串列結構
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