Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (1702) Code (152) Doc (537) Help (191) Quark (806) Plugin (16) SCDoc ↗ Forum ↗ Google ↗
  1. Player Quark

    ... ime, secs; texttask = Task({ epoch = Main.elapsedTime; start = starttime.value; loop{ time = start + (Main.elapsedTime - epoch) ; window.view.children[4].string_(time.asTimeString ); window.view.children[5].value_( time / sf.duration); 0.1. ...

  2. sCluster Quark

    ... }; randButton.action= {|view, mod| if(cluster.class.type==\File, { cluster.set(\loop, 1-view.value); //wait a random time and then retrigger }, { if(cluster.class.type==\Folder, { if(mod.isShift, { //shift click jump back or forth a few ste ...

  3. Steno Doc

    ... aaa1. 01f3. 3fx 3fx 3fx // changing the through controls --aaaff afx Tdef(\x, { loop { t.setGlobal(\through, 1.0.rand); 2.wait } }).play; ⧉ ✔ You can set the following parameters (default values in brackets): mix (1) How much of the stored ...

  4. MixerChannel4-order Quark

    ... { mc.descendentsInclude(this).if({ MethodError("% -> % will produce an infinite loop." .format(this, mc), this).throw; }, { // if the dest mixer is routed to another mixer, // place the dest mixer before its destination incr = incr + mc.num ...

  5. MixerChannel4-order Quark

    ... { mc.descendentsInclude(this).if({ MethodError("% -> % will produce an infinite loop." .format(this, mc), this).throw; }, { // if the dest mixer is routed to another mixer, // place the dest mixer before its destination incr = incr + mc.num ...

  6. MIDISliderWindow Quark

    ... Message.(i, slider.value) }; }); }); routine = Routine({ var event, val, slNum; loop { // event: b=num, c=vel event = MIDIIn.waitNoteOn( port ); //slNum = (1: 1, 2: 2, 4: 0, 5: 3).at(event.b.wrap(0,15)); slNum = channels.indexOf(event.b.wra ...

  7. NB Quark

    ... lishing" , 320, 240); n.background(0, 1, 0); n.cmt( "Hello, NodeBox" ); // this loop of 120 times is relatively fast // 1200 iteration is slower, and 12000 is slower still // 120000 hasn't (yet) been tried 120.do({ n.fill(1.0.rand, 0, 0, 1. ...

  8. MusicXML Quark

    ... theseNotes.sort({arg a, b; a.beat < b.beat}); // this also needs to be a while loop! add to theseNotes as needed while({ curNote = (theseNotes.size > 0).if({ theseNotes.removeAt(0); }, { nil }); curNote.notNil; }, { while({ curNote.beat >= ...

  9. Event Doc

    ... tterns, you must call yield or embedInStream in the function, otherwise it will loop forever. ( a = ( pattern: Pbind(\note, Pgeom(1, 1.1, { 20.rand }), \dur, 0.05), embedInStream: { |event, inevent| event[\pattern].embedInStream(inevent) } ...

  10. parsenodes Quark

    ... pitchStr } } } ClPitchEventNode : ClEventStringNode { parse { |stream| // while loop assumes that the pitch number has already been eaten var ch = stream.next, new = String.with(ch); while { (ch = stream.next).notNil and: { "+-',~=_.>".incl ...

prev 161 162 163 164 165 166 167 168 169 170 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow