Hardware Reference
In-Depth Information
This line of code must be placed above the instructions to play a note, a pattern or a
sleep, like this:
with_synth “fm”
5.times do
play 49
sleep 1
end
with_tempo 150
with_synth “pretty_bell”
2.times do
play_pattern [67,67,65,65,64,64,62]
sleep 0.5
end
Figure 7-9 shows the use of different synths in Sonic Pi.
FIGURE 7-9 Using different synthesizer sounds in Sonic Pi
In this example, you would hear the MIDI note 49 play five times using the fm sound,
and then the list of notes played twice using the pretty_bell sound.
Search WWH ::




Custom Search