Today, I discovered something new and exciting about SuperCollider. Something that could potentially make my attempts at Live Musicianship so much more interesting. I’ve always been intrigued by the Live performance power of Ableton Live now I find it is possible to write code into SuperCollider that can work in a similar fashion to Live you can command SC to trigger all sorts of different sounds and loops of sound to create an interesting composition.
The following piece of code plays in sequence each note in the Major scale and the repeats infinitely;
)
Pbind(
\scale, #[0, 2, 4, 5, 7, 9, 11, 12],
\degree, Pseq([1, 2, 3, 4, 5, 6, 7, 8]-1, inf),
\dur, 1/8,
\db, -3
).play
How this code works is irrelevant, this short piece of code can be seen as track or musical part within a composition. It could be the Bass section, Chords part or Melody riff either one. All we need to do now is write a similar code that plays another part, using the same scale of notes just in different Array = [or List] creating harmony and a rhythmic groove.
E.g.
**********************
TRACK 1.
(
Pbind(
\scale, #[0, 2, 4, 5, 7, 9, 11, 12],
\degree, Pseq([1, 2, 3, 4, 5, 6, 7, 8]-1, inf),
\dur, 1/8,
\db, -3
).play
)
**********************
TRACK 2
(
Pdef( \scaleTest,
Pbind(
\scale, #[0, 2, 4, 5, 7, 9, 11, 12],
\degree, [1, 3, 5, 7,]-1,
\db, -6);
).play
)
*************************
TRACK 3
(
Pdef( \scaleTest,
Pbind(
\scale, #[0, 2, 4, 5, 7, 9, 11, 12],
\degree, 0,inf
\db, -6);
).play
)
These individual tracks can be played at different intervals creating harmonic electronic music. The Pdef code on both tracks 1 and 2 allow me to rewrite the code live and change arguments around the notes played and even the sound heard.
I look forward to doing this with complicated sounds that I’ve created, we are beginning to discover how to do this in my Sound Design and Composition class and hope the theory of Laptop Musician ship will over lap.
SC = BrainWave.kr
0 Responses to “Computer says OK”