Skip to content

Commit 8258bd0

Browse files
Update 08.2-Chords.md
Update to match current behavior of `play_pattern_timed`
1 parent fbe06ed commit 8258bd0

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

etc/doc/tutorial/08.2-Chords.md

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,19 +46,28 @@ play_pattern_timed chord(:E3, :m13), [0.25, 0.5]
4646
This is the equivalent to:
4747

4848
```
49-
play 52
49+
play 52, sustain: 0.25
5050
sleep 0.25
51-
play 55
51+
play 55, sustain: 0.5
5252
sleep 0.5
53-
play 59
53+
play 59, sustain: 0.25
5454
sleep 0.25
55-
play 62
55+
play 62, sustain: 0.5
5656
sleep 0.5
57-
play 66
57+
play 66, sustain: 0.25
5858
sleep 0.25
59-
play 69
59+
play 69, sustain: 0.5
6060
sleep 0.5
61-
play 73
61+
play 73, sustain: 0.25
62+
sleep 0.25
6263
```
6364

6465
Which would you prefer to write?
66+
67+
Note that `play_pattern_timed` changes the sustain of the notes to
68+
fill the times. You can remove this behavior by setting the
69+
`sustain:` opt to `0`:
70+
71+
```
72+
play_pattern_timed chord(:E3, :m13), [0.25, 0.5], sustain: 0
73+
```

0 commit comments

Comments
 (0)