Skip to content

Commit 0774e96

Browse files
committed
Articles - update to remove break out boxes and use better seed
- this article was written prior to the seed update which changed randomisation behaviour!
1 parent 4b22fb4 commit 0774e96

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

etc/doc/tutorial/en/A.04-synth-riffs.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,15 @@ a full list of all the synths and all the available opts each individual
5050
synth supports to see just how much power you have under your coding
5151
fingertips.
5252

53-
/ break out box begin
53+
## Timbre
5454

55-
Timbre is just a fancy word describing the sound of a sound. If you play the same note with different instruments such as a violin, guitar, or piano, the pitch (how high or low it sounds) would be the same, but the
55+
Timbre is just a fancy word describing the sound of a sound. If you play
56+
the same note with different instruments such as a violin, guitar, or
57+
piano, the pitch (how high or low it sounds) would be the same, but the
5658
sound quality would be different. That sound quality - the thing which
5759
allows you to tell the difference between a piano and a guitar is the
5860
timbre.
5961

60-
/ break out box end
61-
6262

6363
## Melodic Composition
6464

@@ -111,8 +111,8 @@ and then choose the seed we want to shuffle with. If we don't like the
111111
melody, just change one of those two things and try again. Repeat until
112112
you like what you hear!
113113

114-
/ break out box begin
115-
Pseudo Randomisation
114+
115+
## Pseudo Randomisation
116116

117117
Sonic Pi's randomisation is not actually random it's what's called
118118
pseudo random. Imagine if you were to roll a dice 100 times and write
@@ -122,8 +122,6 @@ random value. Instead of rolling an actual dice, it just picks the next
122122
value from the list. Setting the random seed is just jumping to a
123123
specific point in that list.
124124

125-
/ break out box end
126-
127125
## Finding your Rhythm
128126

129127
Another important aspect to our riff is the rhythm - when to play a note
@@ -166,7 +164,7 @@ example. See you next time!
166164
# uncomment to bring in:
167165
# synth :blade, note: :e4, release: 4, cutoff: 100, amp: 1.5
168166
use_synth :dsaw
169-
use_random_seed 30030
167+
use_random_seed 43
170168
notes = (scale :e3, :minor_pentatonic, num_octaves: 2).shuffle.take(8)
171169
8.times do
172170
play notes.tick, release: rand(0.5), cutoff: rrand(60, 130) if one_in(2)

0 commit comments

Comments
 (0)