# Play\_pattern\_timed sustain

**URL:** <https://in-thread.sonic-pi.net/t/play-pattern-timed-sustain/2912>\
**Category:** Support, Help & Resources\
**Created:** [November 12, 2019, 3:54pm UTC](https://in-thread.sonic-pi.net/t/play-pattern-timed-sustain/2912 "2019-11-12T15:54:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nlb](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/nlb/32/997_2.png) [@nlb](https://in-thread.sonic-pi.net/u/nlb)\
**Post date:** [November 12, 2019, 3:54pm UTC](https://in-thread.sonic-pi.net/t/play-pattern-timed-sustain/2912/1 "2019-11-12T15:54:11Z")

</div>

hi,

```ruby
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.

```ruby
{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}

```

---

<div class="post-metadata">

**Author:** ![robin.newman](https://avatars.discourse-cdn.com/v4/letter/r/76d3ee/32.png) [@robin.newman](https://in-thread.sonic-pi.net/u/robin.newman)\
**Post date:** [November 12, 2019, 4:45pm UTC](https://in-thread.sonic-pi.net/t/play-pattern-timed-sustain/2912/2 "2019-11-12T16:45:15Z")

</div>

Yes you’re right they are different. [See this previous post on the subject](http://in-thread.sonic-pi.net/t/confused-about-play-pattern-timed/1270)  
and [also this one](http://in-thread.sonic-pi.net/t/play-pattern-timed-adding-sustain/558/6)
