-
... po = 1.0; // timing test: // parallel streams ( var a, b, x; var times, levels; SynthDef ( \pgrain , { arg out = 0, freq=800, sustain=0.001, amp=0.5, pan = 0; var window; window = Env .sine(sustain, amp); Out .ar(out, Pan2 .ar( SinOsc .ar(f ...
-
... thod flop swaps columns and rows, allowing to derive series of argument sets: ( SynthDef ( "help_multichannel" , { |out=0, freq=440, mod=0.1, modrange=20| Out .ar(out, SinOsc .ar( LFPar .kr(mod, 0, modrange) + freq ) * EnvGate (0.1) ) }).se ...
-
... index| //////// Try uncommenting each of these lines in turn and re-running the synth: //mag; //[mag, phase]; //[mag, phase] / 3; //[mag, phase].sqrt; //[mag, 3.14.rand]; //[mag, LFNoise0.kr.range(0, 3.14)]; //[mag * Dseq([1, 0, 0, 1, 1, 0, ...
-
... ( \x ).stop; Tdef ( \x ).play; Tdef ( \x ).clear; // sound example ( // load a synthdef s.boot; SynthDef ( \pdef_grainlet , { arg out=0, freq=440, sustain=0.05; var env; env = EnvGen .kr( Env .perc(0.01, sustain, 0.3), doneAction:2); Out . ...
-
... , value) from the current environment. This can then be used as arguments for a Synth , or in an OSC message. ( e = (freq: 340, amp: 0.001, strangeness: 0.85); e.use { [ \amp , \taste , \strangeness ].envirPairs; } ); flop Invert rows and c ...
-
... a capital letter followed by zero or more alphanumeric characters. Object Point Synth Special Values The singular instances of the classes True, False and Nil are written as the words true, false, nil and inf. x = true; y = false; z = nil; ...
-
... f two. LocalBuf is useful here, because processes should not share data between synths. (Note: most PV UGens operate on this data in place. Use PV_Copy for parallel processing.) input - the signal to be analyzed. The signal's rate determine ...
-
... a segmented envelope. Envs can be used both server-side, by an EnvGen within a SynthDef, and clientside, with methods such as at and asStream , below. An Env can have any number of segments which can stop at a particular value or loop seve ...
-
... onControl; var balanceControl, ampControl; var node, cmdPeriodFunc; // define a synth SynthDef ( "window-test" , { arg note = 36, fc = 1000, rq = 0.25, bal=0, amp=0.4, gate = 1; var x; x = Mix .fill(4, { LFSaw .ar((note + {0.1.rand2}.dup).m ...
-
... // state 1 \bar : [ 0, 3 ] ) ], 0, 2 ).asStream; 11.do({ p.next.postln }); ) ( SynthDef ( \help_Pdfsm1 , { arg out=0, freq=440, sustain=0.05; var env; env = EnvGen .kr( Env .perc(0.01, sustain, 0.2), doneAction:2); Out .ar(out, SinOsc .ar( ...