Note probability in SuperCollider
In 5 techniques for generative & ambient music Andrew Huang used the Erica Synths black sequencer to create random sequences. Inspired by that here is my attempt to achieve a similar generative sequence in SuperCollider.
This plays two octaves of a minor scale.
Pbind(
\scale, Scale.minor,
\degree, Pseq((-7..7))
).play
We can inspect the events this Pbind
is generating
(
p = Pbind(
\dur, 0.25,
\scale, Scale.minor,
\degree, Pseq((-7..7))
).asStream;
p.next(Event.new);
)
-> ( 'degree': -7, 'dur': 0.25, 'scale': Scale([ 0, 2, 3, 5, 7, 8, 10 ], 12, Tuning([ 0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0 ], 2.0, "ET12"), "Natural Minor") )