Translate

live_loop :flibble do
sample :bd_haus, rate: 1
sleep 0.5
end
SourceTranslationState
11
One of the most exciting aspects of Sonic Pi is that it enables you to write and *modify code live* to make music, just like you might perform live with a guitar. This means that given some practice you can take Sonic Pi on stage and gig with it.
Sonic Pi 最強大的功能就是它讓你可以透過寫程式碼,以及*即時編輯程式碼*來創作音樂,就像你在現場演奏吉他一樣。這意味著你只要做些練習,就可以帶著 Sonic Pi 上舞台表演了。
12
Free your mind
放鬆心情
13
Before we get into the real details of how Sonic Pi works in the rest of this tutorial, I'd like to give you an experience of what it's like to live code. Don't worry if you don't understand much (or any) of this. Just try to hold onto your seats and enjoy...
在開始真正的教學前,我想讓你體驗一下什麼是 Live Code。搞不明白也不用擔心。椅子坐穩,然後好好享受吧…
14
A live loop
一段現場循環(live loop)
15
Let's get started, copy the following code into an empty buffer above:
我們開始吧,複製下面這段程式碼到上方的空白區域:
16
live_loop :flibble do
sample :bd_haus, rate: 1
sleep 0.5
end
17
Now, press the `Run` button and you'll hear a nice fast bass drum beating away. If at any time you wish to stop the sound just hit the `Stop` button. Although don't hit it just yet... Instead, follow these steps:
現在,按下`執行(Run)`按鈕,你將會聽到動感的低音鼓節奏。如果你想停止音樂,只要按下`停止(Stop)`按鈕。不過現在先別按啊,讓我們再嘗試些東西:
18
Make sure the bass drum sound is still running
確保低音鼓聲音還在
19
Change the `sleep` value from `0.5` to something higher like `1`.
修改 `sleep` 的數值,從 `0.5` 到更高的值,比如 `1`。
20
Press the `Run` button again
再按一次 `執行(Run)按鈕
21
Notice how the drum speed has changed.
你會發現鼓的速度改變了。

Loading…

Loading…

Glossary

Source Translation
sample 取樣

Source information

Flags
no-wrap
Source string location
01.1-Live-Coding.md:21
Source string age
2 years ago
Translation file
etc/doc/lang/sonic-pi-tutorial-zh-TW.po, string 16
String priority
Medium