-
... var winRect= Rect(position.x, position.y, 400, 200); //x, y, w, h var palette= SGUI.palette; var fnt= SGUI.font; var fntMono= Font.monospace(10); var fps= 15; //maximum gui updaterate - does not affect sensor input rate //--functions and ob ...
-
... ec(key); ^if( spec.notNil ) { spec.unmap( this.get(key) ) } { this.get(key) } } gui { |parent, bounds| ^UGUI( parent, bounds, this ) } argSpecs { ^this.def.argSpecs( this ).collect({ |item| if( item.spec.class == UModOutSpec ) { item = item ...
-
... rtFrame:0, endFrame:44100 ); Out.ar(0, PlayBuf.ar(1, buf ) ) }) ) UChain(\test).gui */ + String { asUnitArg { |unit, key| case { unit.getSpec( key ).isKindOf( BufSndFileSpec ) } { ^this.asBufSndFile.asUnitArg(unit, key) } { unit.getSpec( ke ...
-
... , 0, 1]); x.set(\startPosSecs, 30.rand, \note, #[60, 1, 1]); x.free; // open up GUIs for monitoring if (~plotTree == nil, { ~plotTree=s.plotTree;}); if (~makeGui == nil, { ~plotTree=s.makeGui;}); if (~meter == nil, { ~plotTree=s.meter;}); * ...
-
... opWith{ |func, name| SynthDef(name, func).add }; q.synths = 15.collect{ [] }; //GUIS q.mpdwin = Window("MPD18 use case (JNCv2)").front; q.butvals = 0!4!4; q.buts = 4.collect { |i| 4.collect {|j| Button(q.mpdwin, Rect(i * 80 + 5, 240 - (j * ...
-
... ; ~chatter1.sendPrivate(\me2, "Psst... howdy!"); // send only to \me2 // make a GUI for peer1 ( ~win = Window("Chatty Betty").front; ~win.layout = VLayout(~textField = TextField(), ~textView = TextView()); ~textField.action_({|v| ~chatter1. ...
-
... path); }); ^ObjectNotFound.new(path) }); } enpath { ^Document.abrevPath(this) } guiDocument { var doc; doc = this.loadDocument; doc.gui; ^doc } isStringNumber { var bol, item; item = this; if(item.findAll(".").size > 1, {bol = false}, { if( ...
-
... tlDesc.loadDescs; MKtl.find(\hid); f = MKtl('f', "thrustmaster-run-n-drive"); f.gui; f.postElements; f.trace; // example for fixing this and using compass directions: f.dictAt(\compass).action = { |el| // calc integer value for indexing: va ...
-
... *** adapted into NTMI / UFO app ********* /* MKtl.find(\hid); ///////// tests m.gui.showLabels; */ var m; m = NTMI.makeMKtl(\dual_ana_4, "*dual-analog-4", NTMI.currInfo); // prepare all elements for debugging: m.elementsDict.do(_.action_(MF ...
-
... d( \pWidth , [0.01, 0.5, \exp ]); ) // an editor to see the params changing NdefGui(Ndef(\test), 5); Ndef(\test).set(\pFreq, \pFreq.asSpec.map(0.5)); Ndef(\test).set(\pWidth, \pWidth.asSpec.map(0.5)); *new(key, ctlMap) // make a controlLoop ...