Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (889) Code (79) Doc (285) Help (132) Quark (392) Plugin (1) SCDoc ↗ Forum ↗ Google ↗
  1. Collection Help

    ... ({ arg item, i; item + 10 }); List [3.2, 12.2, 13, 0.4].minIndex iter returns a Routine that returns the elements one by one. r = Set [10, 2, -3, -4].iter; r.next; r.next; r.next; r.next; // nil. Conversion: asBag Answer a Bag to which all ...

  2. UScoreView Quark

    ... dateInterval > 0 ) { calledUpdate = true; if( updateTask.isNil ) { updateTask = Routine({ while { calledUpdate } { this.prUpdate( checkZoom ); calledUpdate = false; updateInterval.wait; }; updateTask = nil; }).play( AppClock ); }; } { this. ...

  3. AnaUtils Quark

    ... nel, minFreq, maxFreq); // grab the number of samples needed sf.openRead(path); Routine.run({ ((sf.numFrames / hopSamps).floor).do({ sf.readData(tmpBuf); // hop BACK from where we were for the FFT pitch tracking sf.seek(frameSize * -1, 1); ...

  4. CtkControl Doc

    ... s, group, bus1, bus2, env, freq, control, task; var cond; cond = Condition.new; Routine.run({ pnotes = CtkProtoNotes( SynthDef(\test, {arg dur, freq, amp; var env, envgen, src; env = Control.names([\env]).kr(Env.newClear(8)); envgen = EnvGe ...

  5. Vowel Doc

    ... ✔ Fun. ( // CPU demanding ~freqs = {|i| 50 * 1.5.pow(i) }!9; ~numChan = 2; r = Routine{ var sustain = 8, transition = 3, overlap = 4; var period = 1.5 * 2.sqrt; var harms, amps; 0.5.wait; inf.do{ harms = {|i| (i+1) * ~freqs.choose }!60; am ...

  6. Tendency Doc

    ... , SinOsc.ar(freq, 0, XLine.kr(0.1, 0.0001, 1, doneAction: 2))); }).send(s); ) ( Routine.run({ g = Tendency.new(1760.0, 440.0, Env([0.01, 2.0], [10], \sin), Env([0.01, 2.0], [10], \sin)).asStream(\betaRand); t = Main.elapsedTime; while({ Syn ...

  7. Voicer Quark

    ... item in nodes, whether playing or not strictCycRout.isNil.if({ strictCycRout = Routine.new({ nodes.do({ arg n; n.yield }); }); }); ^strictCycRout.next } cycle { // returns next non-playing item in nodes // if all nodes playing, returns ear ...

  8. MultiSliderView Doc

    ... s fit evenly b.showIndex = true; // cursor mode b.readOnly = true; w.front; r = Routine({ 0.1.wait; 30.do({ |i| b.index_(i%size); b.doAction; 0.1.wait; }); 20.do({ |i| b.index_(b.size.rand); b.doAction; [0.1, 0.2].choose.wait; }); 1.wait; n ...

  9. AlgaPatternInterpStreams Quark

    ... , otherwise this mechanism will fail! freeAllSynthsAndBussesOnReplace { AlgaSpinRoutine.waitFor( condition: { algaPatternSynths.size == 0 }, //wait for all algaPatternSynths to be done func: { this.freeAllInterpSynthsAndBusses; //Free all i ...

  10. SynthiGME_setParameterOSC Quark

    ... ue - oldValue) / steps; // Incremento en cada paso var currentValue = oldValue; Routine.run({ while({currentValue.absdif(value) > stepValue.abs}) { currentValue = currentValue + stepValue; {this.setParameterOSC(string, currentValue, addrFor ...

prev 81 82 83 84 85 86 87 88 89 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow