Dissonance




(
{
t = Impulse.kr(1/3); // un impulso ogni 3 secondi
Mix.ar(  // sintesi additiva attraverso il Mixer
SinOsc.ar([60, 64, 67, 71, 74, 78].midicps, // 6 sinusoidi a 6 diverse note MIDI
mul: EnvGen.kr(Env.perc(0, 1),  Help EnvGen

// *perc(attackTime, releaseTime, peakLevel, curve)

t,  // trigger impostato sull'impulso

levelScale: 1/(1..6),
timeScale: rrand(1.0, 3.0).dup
)
)
)*[0.3, 0.3]
}.scope(1)
)

(
{
Mix.ar(
Pan2.ar( 

// Pan2.ar(in, pos, level)
// Two channel equal power panner.
// in - input signal
// pos - pan position, -1 is left, +1 is right
// level - a control rate level input

SinOsc.ar(

[60,LFTri.kr(rrand(0.1, 0.5)), 63, 65, LFTri.kr(4, 0, 200, 400), 68, 71, 72].midicps, mul: LFNoise1.kr(rrand(0.1, 0.5).dup(8), 0.5, 0.5)),1.0.rand2.dup
))*0.2
}.scope(1)
)


Leave a Reply