Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (786) Code (22) Doc (235) Help (67) Quark (457) Plugin (5) SCDoc ↗ Forum ↗ Google ↗
  1. startup15-contrapunct Quark

    ... bType = \contrapunct; // converts event stream into event pattern so that other wrappers like Pfindur can be used { |holder, driverEvent| Prout({ |inEvent| var event; loop { event = holder.getEvent(inEvent, driverEvent); inEvent = event.yie ...

  2. SPlayFileDisk Quark

    ... snd= VDiskIn.ar(n, buf, rate*BufRateScale.ir(buf), loo, id); var mix= SynthDef.wrap(this.prMix, nil, [snd]); FreeSelfWhenDone.kr(snd); Out.ar(out, mix*amp.lag*env); }).add; }; } } SPlayFileDiskStereo : SPlayFileDisk { prMix { ^{|snd| Splay ...

  3. index_trajectory Quark

    ... 1, 1 ); sig = numDim.collect({ |i| sig[ (1..4) + (i*4) ].splineIntPart2( index.wrap(0,1) ); }); sig = sig + \addPoint.kr([0,0]); UMapOut.kr( sig, false ); }, [ [ \index, 0, [0,1].asSpec], [ \trajectory, nil, WFSPathSpec() ], [ \addPoint, 0 ...

  4. PSx stream patterns Quark

    ... tream you can reevaluate the Pattern definition or // define the Pattern with a wrapping Function: ( a = { Pseq ([ PS ( Pseq ((1..9), inf ), 3), PS (( Pseries () + 1) * 100, Pseq ([1,2,3], inf )) ], inf ); }; b = a.value.asStream; b.nextN(5 ...

  5. Satie Quark

    ... e), gate: synth_gate, doneAction: Done.freeSelf ); var previousSynth = SynthDef.wrap({ In.ar( bus: config.outBusIndex[spatializerNumber], numChannels: config.spatializers[config.listeningFormat[spatializerNumber]].numChannels ) }); // colle ...

  6. ModalSpec Quark

    ... [degree.asInteger % scale.size] + 1 } + steps; // convert back to degree - will wrap around to octave ^(keyToDeg[(newkey-root) % stepsPerOctave] ?? { keyToDeg[(newkey-root).asInteger % stepsPerOctave] }) // add octave back in + degree.trunc ...

  7. FilterCoef Quark

    ... Array), { newPoles.do({ arg pole; if(pole.isKindOf(Polar), { angle = pole.angle.wrap(-pi, pi); poles = poles.add(Polar.new(pole.magnitude, angle)); //Post a warning if the new pole magnitude is > 1.0 if(pole.magnitude > 1.0, { "Pole magnitu ...

  8. DXEnvFan Quark

    ... han the size of out and the latter contains demand rate ugens, they must all be wrapped into Functions. fadeTime - A fade time, a demand rate or other ugens returning fade times or a SequenceableCollection of such, causing multichannel expa ...

  9. line Quark

    ... ermine a phase parameter from 0 to 1 cycles phaseShiftA = (phaseACenter + lfoA).wrap(0, 1); phaseShiftB = (phaseBCenter + lfoB).wrap(0, 1); // Make an asr envelope with a fixed sustain time env = (input/att).clip(0, 1); env = env - ((input ...

  10. 0b_influxWeightz Quark

    ... .0, 0, 0.7), ]; NTMI.inph.counterCols = 6.collect {|i| Color.hsv( (i/6.0 + 0.5).wrap(0,1), 1, 1, 1); }.add(Color.grey(1)).collect(_.asArray); // set weights preset by index: number is wrapped index in NTMI.inph.randSeeds NTMI.inph.setWPreIn ...

prev 21 22 23 24 25 26 27 28 29 30 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow