I introduce my brother to SonicPi (“Of course you can learn to code, check this thing out…”), and now we’re replicating “Where Is My Mind” in SP. He’s unrolled the first bit:
play :fb5
sleep 0.5
play :gs5
sleep 0.5
play :fb5
sleep 0.5
play :gs5
sleep 0.5
play :fb5
sleep 0.5
play :gs5
sleep 0.5
play :fb5
sleep 0.5
play :gs5
sleep 0.5
As per the docs, this should be equivalent to:
4.times do
play_pattern_timed [:fb5, :gs5], 0.5
end
However, it sounds different, and when I check the logs, I see this when using play_pattern
:
synth :blade, {note: 76.0, sustain: 0.5}
and this when just using play:
synth :blade, {note: 76.0}
So it seems like play_pattern_timed
is also adding a sustain
to match the timing…? How would I prevent that from happening?
Thanks!