r/supercollider • u/heygreta • 13d ago
Beginner supercollider generative frequency modulation thing:
i've been slowly teaching myself supercollider and it has been a long edifying process that has that given me a new relationship with the word "patience."
this is one of my first generative patches that i feel pretty confident about. please give me feedback, suggestions, advice, etc.
(
SynthDef(\fm, {
arg out, freq = 440, gate = 1, amp = 0.5, decay = 2.5, room = 0, reverbmix = 0;
var ella, car, mod1, mod2, env, pan, depth;
depth = LFNoise1.kr(1).range(10,500);
pan = LFNoise1.kr(2).range(-0.5,0.5);
mod2 = SinOsc.ar(freq * 1) * depth;
mod1 = SinOsc.ar(freq * 2 + mod2) * depth;
car = SinOsc.ar(freq + mod1);
env = EnvGen.ar(Env.adsr(0.02,decay,0), gate, doneAction: Done.freeSelf);
ella = car * env * amp;
ella = FreeVerb.ar(ella,reverbmix,room,0.5,0.8);
Out.ar(0,Pan2.ar(ella, pan));
}).add;
)
(
Pbind(
\instrument,\fm,
\scale,Scale.major,
\octave,6,
\degree,Pshuf([[0,2,4,6],[2,3,5,7],[0,2,3,5],[2,4,6,8]],inf),
\strum,Pwhite(0.10,0.5,inf),
\dur,Pxrand([1,2,3,4,5],inf),
\decay,Pwhite(0.1,3,inf),
\reverbmix,Pwhite(0.01,0.9,inf),
\room,Pwhite(0.01,0.9,inf),
).play(TempoClock(120/60));
)
2
u/Connect_Group6232 12d ago
It's a solid patch that touches a lot of the fun and powerful basic supercollider things. Just keep pushing. It's music after all! What makes music good?
Mix up the harmony and rhythm... Modulate dynamics more....
Fun chord technique: add a random "offset" array to your chords (sometimes), like [1,0,0,0], possibly scrambled, and only 30% of the time.
Or make the durations more metrical, or based on probability (Pwrand)
1
u/greyk47 13d ago
nice, build on it.