Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... mp ) ); }).send(s); ) x = Synth.new( \ParameterSpaceHelp ); // start the update routine: ~space.start; // show a gui: ~space.makeGui; // you can move the slider to move through the space // update time (in seconds): ~space.dt = 1; ~space.st ...

  2. PopUpTreeMenu Quark

    ... olor .red(1)) .hiliteColor_( Color .red(0.75)) .stringColor_( Color .red(0.5)); Routine ({while({w.isClosed.not}, { ( "path:" ++a.currentPath).post; ( " leaf:" ++a.currentLeaf).post; ( " value:" ++a.value).postln; 0.4.wait; })}).play( AppCl ...

  3. Say Quark

    ... f(currentEnvironment.text.cs); } { if (~wait == true) { if (thisThread.isKindOf(Routine)) { cond = Condition.new; pid = unixCmd(str, { cond.unhang; thisEvent[\doneFunc].value; }); pendingPIDs.add(pid); cond.hang; pendingPIDs.remove(pid); } ...

  4. LPCFile Quark

    ... cal Server".warn;}); } loadToBuffer { var c, numcycles, tmp; c = Condition.new; Routine.run{ this.server.sendMsg(\b_free, buffer); this.server.sync(c); this.loadToSignal; tmp = Buffer.alloc(this.server, signal.size, 1, bufnum: buffer); this ...

  5. Gen Quark

    ... n the stream and a 'next' method for generating the next Gen. Unlike Streams or Routines, a Gen doesn't modify itself when it produces the next item in the stream. Instead it returns another Gen. You can also copy and/or archive a Gen at an ...

  6. SamplerDB Quark

    ... ; var playingSamplers; var argsArray = []; var scoreArray = SamplerDBScore.new; Routine.run({ //for each segmented envelope, assign different sampler to play morphEnvs.do{|thisEnv, envIndex| var envelope = thisEnv[0]; var waittime = thisEnv ...

  7. Canvas3D Quark

    ... te {|rate, func| animator.stop; if(rate.notNil and: {func.notNil}) { animator = Routine { var frame = 0; while {this.view.notNil and: {animator.notNil}} { func.value(frame); this.refresh; (1/rate).wait; frame = frame + 1; } }.play(AppClock) ...

  8. proto-cmds Quark

    ... ere, not here, but needs to exist ~condition ?? { ~condition = Condition.new }; Routine({ |inval| var item, delta; loop { item = ~seqStream.next(~seqEventProto); if(item.notNil) { delta = ~playItem.(item); delta.yield; // playItem returns t ...

  9. Tendency Quark

    ... his.at(thisTime, dist, parA, parB); inval.yield; } ^inval; } asStream { |dist| ^Routine({ arg inval; this.embedInStream(inval, dist, parA, parB) }); } } +SimpleNumber { at { ^this } }

  10. Player Quark

    ... deID, \amp, newamp)}); } playfunc {arg start, dur; tempoclock = TempoClock.new; Routine.run({ var players, defenv; isPlaying = true; 0.1.wait; bufnum = server.bufferAllocator.alloc(numchan); players = [ // play straight out, as is {arg gate ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow