-
... 0.5)); x = a.asStream; 9.do({ x.next( Event .new).postln; }); ) sound example ( SynthDef ( \sinegrain , { arg out=0, freq=440, sustain=0.02; var env; env = EnvGen .kr( Env .perc(0.001, sustain), 1, doneAction:2); Out .ar(out, SinOsc .ar(fre ...
-
... o reproduce the 'famous' bassline of "Verschwende deine Jugend" by D.A.F. */ SynthDef(\daf_bass,{ |out, freq=440, sustain=1, gate=1, amp=0.1| var snd, env, fenv, harm; harm = [1,1.01,2,2.02,3.5,4.01,5.501]; harm = harm ++ (harm* ...
-
... 9], #[0, 1, 3, 7, 8, 11] ), \dur , 0.25 ).play; ) //___indian video game (1) ( SynthDef ( "ivg" , { arg out, freq=900, pan; var trig, snd; trig = Impulse .kr( LFClipNoise .kr(4, 3, LFClipNoise .kr(0.2, 2, 7))); snd = RLPF .ar( SinOsc .ar(f ...
-
... _ — load resuable functions from disk, create dynamically variable architecture SynthDefs for use in Synths, Pbind/Patterns and Patches. Quarks can include Instr/ folders to share with others. * __InstrBrowser__ — peruse and search your ins ...
-
... sReCompile { | name, maxOrder, speaker_array = nil | var desc = SynthDesc.read( SynthDef.synthDefDir ++ name ++ ".scsyndef")[name.asSymbol]; if (desc.notNil) { ^desc.metadata[\order] != maxOrder; } { ^true; }; } prSetVars { | maxOrder, rend ...
-
... p playback, end is used. ~z.end(3); // end in 3 sec ⧉ ✔ in order to rebuild the synthdef on the server, use rebuild . this is of course far less efficient than send , but it can make sense; e.g. the synthdef has random elements. UGens like ...
-
... .add(~makeBuffers); ServerQuit.add(~cleanup); s.waitForBoot({ s.sync; SynthDef.new(\voxgrains, { var sig, env, rate, dur, pan; env = Env.asr(\atk.ir(0.12), 1, \rel.ir(1)).kr(2, \gate.kr(1)); rate = \baserate.kr(1) * LFNoi ...
-
... , a control rate SinOsc modulates the frequency of the audio rate Pulse wave. ( SynthDef("anExample", { Out.ar( 0, Pulse.ar( [220, 221.5] + SinOsc.kr([7, 8], 0, 7), // the control rate conserves CPU cycles 0.35, 0.02 ) ) }).add; ) Synth("an ...
-
... / a sample sig {SinOsc.ar(440 + SinOsc.kr(0.05).range(0, 440), 0, 0.5)}.play; ( SynthDef(\evenbin, {arg fftbuf1, fftbuf2; var in, chain1, chain2, out1, out2; in = SinOsc.ar(440 + SinOsc.kr(0.05).range(0, 440), 0, 0.5); chain1 = FFT(fftbuf1, ...
-
... getSynchronous;} //Returns an OutputProxy mapped to the bus to use it inside of SynthDefs //Range is normalized from 0 to 1 ar{|mul=1, add=0, lagTime = 0.1|^MulAdd(Lag.ar(bus.ar(1), lagTime), mul, add);} kr{|mul=1, add=0, lagTime = 0.1|^Mul ...