-
... ect( 128 + 100.rand, 300 + 100.rand, 400, 52 )).front; win.addFlowLayout; cnt = SimpleController( env ); win.onClose_({ cnt.remove }); // remove controller at window close env.keysValuesDo({ |key, value| var sl; if( value.isNumber ) { sl = ...
-
... es { ^6 } removeCtrl { ctrl.remove; ctrl = nil; } addCtrl { ctrl.remove; ctrl = SimpleController( env ) .put( \times, { this.refresh }) .put( \levels, { this.refresh }) .put( \curves, { this.refresh }); } refresh { if( plotView.userView.vie ...
-
... lers{ if(scoreController.notNil) { scoreController.remove; }; scoreController = SimpleController( score ); scoreController.put(\playState,{ |a,b,newState,oldState| //[newState,oldState].postln; if( newState == \playing ) { views[\play].valu ...
-
... direction.notNil ) { if( direction.isNumber ) { angle = direction; angleCtrl = SimpleController( currentUnit ) .put( \direction, { direction = currentUnit.get( \direction ); if( direction.isUMap.not ) { angle = direction; } { angle = 0; }; ...
-
... icode == 16rF702, { slider.decrement; }); // nil; // }) // ; // volController = SimpleController(volume) // .put(\amp, {|changer, what, vol| // { // volumeNum.value_(vol.round(0.01)); // volumeSlider.value_(volSpec.unmap(vol)); // }.defer / ...
-
... e, all events will be rests. // Otherwise respect the existing isRest watcher = SimpleController(proxy) .put(\play, { rest = false }) .put(\stop, { rest = true }) .put(\clear, { rest = true; watcher.remove }); // releaseHolder may well be a ...
-
... tempoCtl.action_({ |view| clock.tempo = view.value / 60; }); tempoWatcher = SimpleController(clock) .put(\tempo, { defer { tempoCtl.value = clock.tempo * 60 } }); tempoCtl.numberView.stringColor_(Color.white).normalColor_(Color.w ...
-
... controls = IdentityDictionary.new; learning = IdentityDictionary.new; midictl = SimpleController(midi) .put(\didFree, { this.free }) .put(\addCtl, { |obj, what, num, name, spec| this.addCtl(num, name, spec) }) .put(\removeCtl, { |obj, what, ...
-
... ) }{ currentEnvironment }; task = envir.use { Task { 1e5.wait } }; controller = SimpleController(task) .put(\userPlayed, { envir.use { player = player.play(clock: clock, quant: quant.asQuant, hsPlay: hsPlay) } }) .put(\userStopped, { player ...
-
... rl; var views; var font = Font( Font.defaultSansFace, 10); views = (); //ctrl = SimpleController( unit ); if( (U.uneditableCategories.includes(unit.def.category) || [FreeUdef, MultiUdef, MultiChannelUdef].includes(unit.def.class)).not ) { S ...