Play_pattern_timed sustain

hi,

use_bpm 120

play :c4
sleep 1
play :E4
sleep 1
play :G4
sleep 1
play :c5
sleep 1

# play_pattern_timed do the same

play_pattern_timed [:c4, :E4, :G4, :c5], 1

Actually, sustain is added ?! Why ? I make workshop with children and it’s hard to say it’s equivalent because when they run, of course it sounds differently.
i notice i know i can use, sustain:0 after play_pattern_timed.

{run: 9, time: 0.0}
 └─ synth :beep, {note: 60.0, release: 0.5}
 
{run: 9, time: 0.5}
 └─ synth :beep, {note: 64.0, release: 0.5}
 
{run: 9, time: 1.0}
 └─ synth :beep, {note: 67.0, release: 0.5}
 
{run: 9, time: 1.5}
 └─ synth :beep, {note: 72.0, release: 0.5}
 
{run: 9, time: 2.0}
 └─ synth :beep, {note: 60.0, sustain: 0.5, release: 0.5}
 
{run: 9, time: 2.5}
 └─ synth :beep, {note: 64.0, sustain: 0.5, release: 0.5}
 
{run: 9, time: 3.0}
 └─ synth :beep, {note: 67.0, sustain: 0.5, release: 0.5}
 
{run: 9, time: 3.5}
 └─ synth :beep, {note: 72.0, sustain: 0.5, release: 0.5}
1 Like

Yes you’re right they are different. See this previous post on the subject
and also this one

1 Like