// title: chaos gen modular function for modular pseudo ugen prototyping // author: tiagmoraismorgado // description: // chaos gen modular function for modular pseudo ugen prototyping // code: ( ~chaos={ var signal, myFrequency, frequencyMin=0.1, frequencyMax=30, myAmplitude, amplitudeMin=0.01, amplitudeMax=0.6, myPhase, phaseMin=0, phaseMax=1.5; myFrequency = Array.fill(2, {[rrand(frequencyMin, frequencyMax)]}); myAmplitude = Array.fill(2, {[rrand(amplitudeMin, amplitudeMax)]}); myPhase = Array.fill(2, {[rrand(phaseMin, phaseMax)]}); signal = LeakDC.ar(ChaosGen.allSubclasses.choose.ar(myFrequency, myPhase, myAmplitude)); Out.ar(0, signal); }; ) ~chaos.scope