-
... ly switchable on or off // when on, keyboard input goes into the string and is "trapped" // (no key bubbling) // when off, keyboard input bubbles up without going into the string // a button enables/disables -- green light, type your string ...
-
... ly switchable on or off // when on, keyboard input goes into the string and is "trapped" // (no key bubbling) // when off, keyboard input bubbles up without going into the string // a button enables/disables -- green light, type your string ...
-
Something I whipped up talking to my buddy Shane. SynthDef(\guitar2, { arg freq, amp, pan = 0; var out, pluck, period, string; freq = freq * [0.99,1,2,0.98]; pluck = PinkNoise.ar(Decay.kr(Line.kr(1, 0, 0.05), 0.05)); period = freq.recip ...
-
... ction when a modifier // is pressed -- I need to ignore those events // doesn't trap caps-lock, though... getKeySpec { var next; while { next = true.yield; next[1].ascii == 0 and: { next[2] > 0 } // ignore empty modifier keystrokes }; ^next ...
-
... ction when a modifier // is pressed -- I need to ignore those events // doesn't trap caps-lock, though... getKeySpec { var next; while { next = true.yield; // ignore empty modifier keystrokes (next[1].isNil or: { next[1].ascii == 0 }) and: ...
-
... any of the superclasses of environment (or event). Object prototyping works by trapping method selectors that are not already defined as class library methods. Using a generic method selector such as 'stop' or 'reset' will cause the corres ...
-
... toreArgs { arg stream; ^[x,y] } } MyTestPoint (2,3).asCompileString; Tricks and Traps "Superclass not found..." In one given code file, you can only put classes that inherit from each Object, each other, and one external class. In other wor ...
-
... any of the superclasses of environment (or event). Object prototyping works by trapping method selectors that are not already defined as class library methods. Using a generic method selector such as 'stop' or 'reset' will cause the corres ...
-
... ocoa: most command modifiers ctl-tab ctl-escape tab and shift tab are currently trapped by SC itself for cycling the focus through the views. keyUpAction keyDownAction keyUpAction_(arg1) keyDownAction_(arg1) This is where you define your ke ...
-
... Class.new(~midiTriggerChan, ~midiTriggerCtlNum, e { |value| // seems we need to trap very rapid triggers (value > 0 and: { (Main.elapsedTime - ~lastTrigTime) > 1.0 }).if({ ~sendTrigger.value; }); }); }; ~sendTrigger = { s.makeBundle(nil, { ...