-
... ? { "ended".postln; }; routine = Task({ var lastTime; lastTime = 0; notes.do({ |event, i| var synth; (event.absTime - lastTime).wait; function.value( event.note, event.velo, event.dur, event.upVelo, event.track, event.channel, event.absTime ...
-
... oads-image]][downloads-url] [![Gittip][gittip-image]][gittip-url] Get the first event in a set of event emitters and event pairs, then clean up after itself. ## Install ```sh $ npm install ee-first ``` ## API ```js var first = require('ee-f ...
-
... thisFile; inst = ( inst ? 'default' ).asCollection; // todo: create multi-note events from chords, detect rests if( useTempo ) { if( timeMode == 'seconds' ) { thisFile = this } { thisFile = this.copy.timeMode_( 'seconds' ); }; } { if( time ...
-
... each of which should be embedded in the stream Pembedn : Pn { embedInStream { |event| var stream, result; stream = pattern.asStream; repeats.value.do({ (result = stream.next(event)).notNil.if({ event = result.embedInStream(event); }, { "Pe ...
-
... ode; var set; rules = rules.deepCollectAssoc { |assoc| assoc = assoc.fromScoreToEvents(converter, false); // sets with variables are expanded into sets of TafsiranNodes. if(this.hasVariableSetNode(assoc)) { this.makeNestedNode(assoc) } { Ta ...
-
... h GameOfLife Unit Library. If not, see <http://www.gnu.org/licenses/>. */ UScoreEventView : UEventView { ifIsInsideRect{ |mousePos, yesAction, noAction| if(rect.containsPoint(mousePos)) { yesAction.value; } { noAction.value; } } mouseDownEv ...
-
... GameOfLife Unit Library. If not, see <http://www.gnu.org/licenses/>. */ UVoicerEventView : UEventView { ifIsInsideRect{ |mousePos, yesAction, noAction| if(rect.containsPoint(mousePos)) { yesAction.value; } { noAction.value; } } mouseDownEv ...
-
... h GameOfLife Unit Library. If not, see <http://www.gnu.org/licenses/>. */ UScoreEventView : UEventView { ifIsInsideRect{ |mousePos, yesAction, noAction| if(rect.containsPoint(mousePos)) { yesAction.value; } { noAction.value; } } mouseDownEv ...
-
/* TestEvent.run UnitTest.gui */ TestEvent : UnitTest { var prevMsg, prevLatency; test_equality { var a,b,c, x, y, keys, values; a = (a: 100, b: 200, c: [1, 2, 3]); b = (a: 100, b: 200, c: [1, 2, 3]); c = (a: 100, b: 200, c: [1, 2, 4]); thi ...
-
... alueID = Rest(0) }; }; } wrapPattern { |pattern| ^pattern.collect { |valueID, inEvent| this.processValue(valueID, inEvent) } } // higher level hook, for subclasses handling arrays // we need both common behavior and class-specific overrides ...