-
... , s.sampleRate*~len, 2); ~buf4 = Buffer.alloc(s, s.sampleRate*~len, 2); /* SynthDefs */ SynthDef(\tone1, { arg gate = 1, freq = 440, out = 2, index=100, modMix = 0, dur; var env = EnvGen.ar(Env.linen(0.0005, dur-0.001, 0.0005, 1, ...
-
... men-break-glitches ~amen = Buffer.read(s, "/home/bjorn/Downloads/amen.wav"); SynthDef(\loop, {| out = 0, bufnum = 0, gate = 1, pos = 0, speed = 1, freq = 0, endfreq = 0.001, sustain, wobble = 3, boost = 1| var player,env,amp; freq ...
-
... ifRunning({ forkIfNeeded{ name= this.defName; if(SynthDescLib.at(name).isNil, { SynthDef(name, {|outBus, gate= 1, atk= 2, rel= 4, on= 1, amp= 0, vol= 0| var onEnv= EnvGen.kr(Env.asr(atk, 1, rel), on); var freqs= In.kr(\sClusterFre_bus.ir, n ...
-
( SynthDef("sawSynth", {arg freq, amp; Out.ar(0, Splay.ar(LPF.ar(in: Saw.ar(freq * [0.99, 1.0, 1.001, 1.008], mul:Env.perc(attackTime:0.1, releaseTime:2, level:amp).kr(2)),freq: 2000))) }).add; ) ( Pbind( \instrument, "sawS ...
-
... Generates a single random integer value in uniform distribution from lo to hi ( SynthDef ( "help-IRand" , { Out .ar( I Rand (0, 1), //play on random channel between 0 and 1 FSinOsc .ar(500, 0, Line .kr(0.2, 0, 0.1, doneAction:2)) ) }).send( ...
-
SynthDef("pluck", {arg amp = 0.1, freq = 440, decay = 5, coef = 0.1, pan = 0; var env, snd; env = EnvGen.kr(Env.linen(0, decay, 0), doneAction: 2); snd = Pluck.ar( in: WhiteNoise.ar(amp), trig: Impulse.kr(0), maxdelaytime: 0.1, delaytime: f ...
-
... l chunks of a sound file into buffers that are within reach of BufRd. Then, the SynthDef can advance from one buffer to the next during playback. Each buffer holds one extra sample, to try to give BufRd's linear interpolation enough info ...
-
... ut }.play; ) // record for four seconds b = Buffer .alloc(s, 44100 * 4.0, 1); ( SynthDef ( "help-RecordBuf" ,{ arg out=0,bufnum=0; var formant, recbuf; formant = Formant .ar( XLine .kr(400,1000, 4), 2000, 800, 0.125); recbuf = RecordBuf .ar ...
-
Simple SynthDef using Pluck, and a few Pbinds demonstrating making use of it. ( SynthDef("plucking", {arg amp = 0.1, freq = 440, decay = 5, coef = 0.1; var env, snd; env = EnvGen.kr(Env.linen(0, decay, 0), doneAction: 2); snd = Pluck. ...
-
... annels or single output to write out. You cannot change the size of this once a SynthDef has been built. Inherited class methods Undocumented class methods Out. numFixedArgs Instance Methods Inherited instance methods Undocumented instance ...