Hardware Reference
In-Depth Information
Further Adventures with
Sonic Pi
If you have enjoyed learning how to make music using Sonic Pi and the programming
language Ruby, you can continue having fun with it by looking at these resources:
Sonic Pi website ( http://sonic-pi.net )
Kids Ruby ( www.kidsruby.com )
Live Coding Music ( http://toplap.org/category/music )
Official Ruby Documentation ( www.ruby-lang.org/en )
Sonic Pi Command Quick Reference Table
Command
Description
in_thread do
end
Runs any code between do and end at the same
time as another in_thread block.
play x
Plays note x.
play_pad “woah”, x
Plays an ongoing sound effect or pad at note x.
Plays a pattern of notes inside a list.
play_pattern
[60,60,67,67,69,69,67]
rand
Returns a random number.
An algorithm that reverses the order of notes in a
list.
.reverse
An algorithm that shufles the order of notes in a
list.
.shuffle
Downloads and installs the Sonic Pi application
from the Raspberry Pi command line.
sudo apt-get install sonic-pi
with_synth “fm”
Sets the synth sound; in this example, the fm
sound.
with_tempo 150
Sets the speed at which notes inside a list will be
played.
x .times do
end
Runs any code between do and end x number of
times.
Search WWH ::




Custom Search