-
... nitXiiLoadXiiLangInstr; } initXiiLoadXiiLangInstr { SynthDef(\xlang_shake, {arg out=0, amp=1; var buffer, player, env, signal; buffer = Buffer.read(Server.default, "/Users/thor/Library/Application Support/SuperCollider/sounds/insand/short/i ...
-
... e as tree instead of array for speed? RedLZ78 { *compress {|input| var tab= [], out= List[], i= 0, j, match, sub, last; while({i<input.size}, { j= 0; last= 0; while({ sub= input.copyRange(i, i+j); match= tab.indexOfEqual(sub); match.notNil ...
-
// FM bass SynthDef(\fmBass, { |out, freq = 440, gate = 1, t_gate = 1, amp = 0.1, cbuf, mbuf, ratio = 0.5, index = 3, detun = 1.003, bufmod = 0, bufmodlag = 0.1, freqlag = 0.08, indexDecay = 0.1, indexEgAmt = 0.62, atk = 0.01, dcy = 0.2, su ...
-
... ional array, with inputs weight: two-dimensional array with weights from ... to outs: if not nil, select those indices as a return for calling the next method */ var <>x, <>theta, <>weights, <>outs; *new { |x, theta, weights, outs| ^super.n ...
-
... y)\ SelectL.kr(which,array) \ \ Part of \* HYPERLINK "wslib.html" wslib \ \ The output is selected from an array of inputs with interpolation\ \ See also [RotateL] and [Select] \ \ (\ \ SynthDef ( "help-SelectL" ,\ arg out=0;\ \ var a,cycle ...
-
... GHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; *encode {|str| var out= List.new; str.clump(3).do{|x| var bin; switch(x.size, 3, { bin= x[0].ascii.leftShift(16)+x[1].ascii.leftShift(8)+x[2].ascii; 4.do{|y| out.add(map[63.leftSh ...
-
... <specs, <isReady= false, groupPassedIn, <efxs, controllers; *new {|efxClasses, out= 0, group, lag= 0| ^super.new.initRedEffectsRack(efxClasses, out, group, lag); } *initClass { defaultClasses= [ //just some favourites RedEfxRing, RedEfxTap ...
-
... ng - button on/off k = MKtl( 'rnnd0' ); k.gui; s.boot; SynthDef( \testSynth, { |out=0,on=0| Out.ar( out, SinOsc.ar( 440, 0, on * 0.1 ) ) } ).add; x = Synth.new( \testSynth ); k.elementAt( \bt, 1 ).action = { |but| x.set( \on, but.value ) }; ...
-
//redFrik RedRLE { *encode {|input| var out= List[], cnt, val, i= 0; while({i<input.size}, { cnt= 1; val= input[i]; while({i+1<input.size and:{input[i+1]==val}}, { cnt= cnt+1; i= i+1; }); out.add(cnt); out.add(val); i= i+1; }); ^out.array; ...
-
... = format("dirt_sample_%_%", sampleNumChannels, numChannels); SynthDef(name, { |out, bufnum, sustain = 1, begin = 0, end = 1, speed = 1, endSpeed = 1, freq = 440, pan = 0| var sound, rate, phase, sawrate, numFrames; // playback speed rate = ...