-
Debouncer { var func, wait, immediate, task; *new { |func, wait=0.1, immediate=false| ^super.newCopyArgs(func, wait, immediate).init } init { task = nil; } trigger { |...args| if(immediate) { if(task.isNil) { func.valueArray(args); task = T ...
-
TaskUMapDef : UMapDef { classvar <>activeUnits; var <>valueIsMapped = true; var <>taskFunc; *initClass { activeUnits = IdentitySet(); CmdPeriod.add( this ); } *cmdPeriod { activeUnits = IdentitySet(); } *new { |name, taskFunc, args, categor ...
-
TaskUMapDef : UMapDef { classvar <>activeUnits; var <>valueIsMapped = true; var <>taskFunc; *initClass { activeUnits = IdentitySet(); CmdPeriod.add( this ); } *cmdPeriod { activeUnits = IdentitySet(); } *new { |name, taskFunc, args, categor ...
-
//redFrik - released under gnu gpl license RedSeq { var task; *new {|indices, beats| ^super.new.initRedSeq([indices, beats].flop); } *newArray {|array| ^super.new.initRedSeq(array); } initRedSeq {|array| task= Task({ array.do{|x| //x should ...
-
... ss the voicer in as an argument // while it plays in real time // on creation, "task" may be an already-existing task or a function // if a func, it will be wrapped in a Task classvar <>defaultAction; var <voicer, // the voicer that will pl ...
-
... ss the voicer in as an argument // while it plays in real time // on creation, "task" may be an already-existing task or a function // if a func, it will be wrapped in a Task classvar <>defaultAction; var <voicer, // the voicer that will pl ...
-
... .all classvar <allEls; classvar <ext = ".evl.scd"; var <key, <func; var <list, <task, <isRecording = false; var recStartTime, then; var <>nonRecordingKeys; var <verbosity = 1; var <lists, <currIndex = 0; var <>folderName, <>storePath, <>toD ...
-
... p, use: - switchable PinkNoise out to first 8 channels - loop over the 8 chans, task for auto-run q.prefs.active.keys ************/ q.chantest = (); Ndef(\pink, { |amp = 0.25, pan = -1| Pan2.ar(PinkNoise.ar(amp), pan) }); q.chantest.pink = ...
-
Mouse { classvar <all, <task, <screenSize, pos, <prevPos; var <name, <>action, <>xspec, <>yspec; *initClass { all = (); screenSize = Window.screenBounds.extent; } *pos { if (task.isPlaying) { ^pos }; ^pos = QtGUI.cursorPosition; } *initTask ...
-
Mouse { classvar <all, <task, <screenSize, pos, <prevPos; var <name, <>action, <>xspec, <>yspec; *initClass { all = (); screenSize = Window.screenBounds.extent; } *pos { if (task.isPlaying) { ^pos }; ^pos = QtGUI.cursorPosition; } *initTask ...