-
render each synthdef in a given dictionary as one-shot sound file. ( q = (); q.numChans = 1; q.sRate = 48000; q.dur = 2; q.dirname = thisProcess.nowExecutingPath.dirname; q.subDirname = q.dirname +/+ "%-%sec-%chan".format(q.sRate, q.d ...
-
... ~buff=Buffer.alloc(s, s.sampleRate * 30.0, 2); //Define Synths and effects ( SynthDef(\rec,{arg r=0; var sig; sig=In.ar(~b3); RecordBuf.ar([sig,sig],~buff.bufnum,run:r,loop:0); }; ).add; SynthDef(\play,{ Out.ar(0,PlayBuf.ar(2,~buff ...
-
synthdef building should take less time than s.latency for this to work ( Pdef(\zed, Pbind( \osc, Pseq([SinOsc, LFSaw],inf), \instrument, Prout({ arg ev; SynthDef(\zed, { arg out=0, gate=1, amp=0.1, pan ...
-
It is a simple SynthDef I made after having a look at Hasher UGen with a pattern to play it. It creates nice and varied glitch sounds. // For more SynthDefs and examples please head to: https://mycelialcordsblog.wordpress.com/ ( SynthD ...
-
... on; // check how many samples are in the sample b.numFrames; c.play; // SynthDefs ( // simple synthdef, no filters or effects, just env and panning control SynthDef("granny1", {arg rate = 1, amp = 1, buffer, startPos = 0, attack ...
-
... = Buffer.read(s, "path/to/audio/samples/linton_falls_tap_01.wav"); // Create SynthDefs ( // Sample playback SynthDef SynthDef("playbuf", { arg bufnum, outBus=0, gate=1; var sig, env; env = EnvGen.kr(Env.asr(0,1,0),gate, doneAc ...
-
... les are in the sample b.numFrames; c.play; d.play e.play f.play; // SynthDefs ( // simple synthdef, no filters or effects, just env and panning control SynthDef("granny1", {arg rate = 1, amp = 1, buffer, startPos = 0, attack ...
-
... ound Simulator for the original idea // and Pure Data implementation! ( // SynthDefs & helper functions ~coeff = {|freq| exp(-2pi * (freq * SampleDur.ir))}; SynthDef(\click, { |out, amp=0.1| var snd; snd = Impulse.ar(0); sn ...
-
... t 8/03/2017 // collection of synths I'm using for livecoding as at 8/03/2017 SynthDef(\slice, { |out, gate=1, buf, slices=16, slice=0, freq = 261.6255653006, amp=0.1| var myenv, env, start, len, basefreq = 60.midicps, rate, sig; rate ...
-
One answer to the question "how to use the SynthDef's default argument in an Event?" // This question comes up sometimes. // one way to do it is to define an event type: ( Event.addEventType(\dnote, { |server| var instrument = ~ ...