Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (556) Code (37) Doc (146) Help (56) Quark (314) Plugin (3) SCDoc ↗ Forum ↗ Google ↗
  1. PlonkRunner Quark

    ... unc interface: value(state, dt, runner) var <state; var <name; var <mFunc; var <task; // TODO: possibly use SkipJack here? var clock; *new {|state, dt = 1, name = "runner"| ^super.new.init(state, dt, name); } init {|argState, dt, argName| m ...

  2. MIDISyncClock Quark

    ... eFuncs = IdentityDictionary[ // tick 8 -> { |data| var lastTickDelta, nextTime, task, tickIndex; // use nextTime as temp var to calculate tempo // this is inherently inaccurate; tempo will fluctuate slightly around base nextTime = Main.elap ...

  3. AlgaClassExtensions Quark

    ... phase ^(this.algaSchedNum(algaQuantPhase)) }); }; } algaSchedAtQuant { | quant, task | if(this.isTempoClock, { this.algaTempoClockSchedAtQuant(quant, task); }, { this.algaSched(quant, task) }); } algaSched { | when, task | //if(this.isTempo ...

  4. CtLoop Quark

    ... Loop { classvar <>minTime = 0.001, <>verbose=false; var <key, <>ctlMap, <list, <task, <isRecording=false, then, <>tempo=1, <>start=0, <>length=1, <>step=1, <>jitter=0.0, <>scaler=1, <>shift=0.0, // assumes normalized values. <>rescaled=fals ...

  5. VoicerProcessGroup Quark

    ... on for one state. Here, however, each state also needs an action function and a task: [ [ "Label", { action }, { arg v; { task } } or nil, foreground color, background color ], [ "Label", { action }, ..... ] ..... ] The action function is p ...

  6. VoicerProcessGroup Quark

    ... on for one state. Here, however, each state also needs an action function and a task: [ [ "Label", { action }, { arg v; { task } } or nil, foreground color, background color ], [ "Label", { action }, ..... ] ..... ] The action function is p ...

  7. SensorControl Quark

    ... tion, <>offAction; var <>defaultRetAction; var <>weights; var <>dataArray; var <task, <>waitTime = 0.05; *new{ |data,name| ^super.new.init(data,name); } longshort_{ |long| if ( long, { updateValues = { var val; val = 0; dataArray.do{ |it,i| ...

  8. Wait Quark

    ... = Wait(10, 0.1, 10, doPost: true, label: \X); ~waitX .dump ( ~waitX.time = 10; ~task = Task { ~waitX.dump; \before.postln; ~waitX.wait; \after.postln; }; ) ~task.play; // after 5 seconds ~waitX.time = 0; // stop asap // reset wait time whil ...

  9. RedGrain Quark

    ... os= 0, <>dur= 0.2, <>pan= 0, <>amp= 1, <>mute= false, <>latency= 0.05, <server, task; *new {|server| ^super.new.initRedGrain(server); } initRedGrain {|argServer| server= argServer ?? Server.default; } *initClass { ServerBoot.addToAll({ //bu ...

  10. Qwerty Quark

    ... 01, USA. */ Qwerty{ var <win, keys; var notes, lowest, v, h; var buttons,synths,tasks; *new{|synthdef="no synthdef"| ^super.new.init(synthdef); } getPos{|ch| keys.do{|row,i| var idx = row.find(ch); if(idx.notNil){^[i,idx]}; } } init{|synthd ...

prev 1 2 3 4 5 6 7 8 9 10 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow