-
//simple gui example just displaying data using sliders and numberboxes ( var numChan= 4; var lastValues= -1.dup(numChan); var lastTime= 0; var win, sliders, numbers, updateFunc; win= Window("gui example simple", Rect(100, 100, 320, 240)).f ...
-
... n.value; }); StaticText(w, 30@15) .string_("size") .resize_(7) .align_(\right); NumberBox(w, 40@15) .value_(array.size) .resize_(7) .action_({|j| array = Array.fill(j.value,{|i| array[i] ? 0}); ms.value_(array); action.value; }); StaticText ...
-
... n.value; }); StaticText(w, 30@15) .string_("size") .resize_(7) .align_(\right); NumberBox(w, 40@15) .value_(array.size) .resize_(7) .action_({|j| array = Array.fill(j.value,{|i| array[i] ? 0}); ms.value_(array); action.value; }); StaticText ...
-
... GUI // and the controlled sliders in the same window. var win, button, slider, numberBox, control; // Any window will do... win = GUI.window.new("Automation Transport Interface", Rect(40, 400, 450, 130)); slider = GUI.slider.new(win, Rect( ...
-
... Off = { "off".postln; }; m.update(); */ SCMMIDIFuncNoteView : SCMViewBase { var numberBoxChan, numberBoxMsgNum, numberBoxSrcID, mainLayout; var chan, msgNum, srcID, hasMapping; var midiFuncNoteOff, <midifuncNoteOn, actionLearn; var <>action ...
-
... [StaticText().string_("Z"), align:\center] ], [ View(), xNumberElement.addView(NumberBox(), xSpec), yNumberElement.addView(NumberBox(), ySpec), zNumberElement.addView(NumberBox(), zSpec) ], [ View(), View(), View(), View() ], [ xLeftButton ...
-
//simple gui example just displaying raw data using sliders and numberboxes ( var board= CytonSerial("/dev/tty.usbserial-DM00DRM0", initAction: {|b| b.start}); //edit here to match your board //var board= CytonWifi(NetAddr("OpenBCI_WifiShie ...
-
... MIDIInNoteRangeView : SCMViewBase { var <proxy, midiInSelectorView, mainLayout, numberBoxMIDIChannel, numberBoxClipLo, numberBoxClipHi, <midiIn, <clipLo=0, <clipHi=127, <midiNoteFuncOn, chan=nil, <midiNoteFuncOff, <>name, <>noteOnAction, <> ...
-
... = view.value } // called when view changes } CVSyncValue : CVSync { // used by NumberBox update { | changer, what ...moreArgs | switch( what, \synch, { defer { view.value = cv.value }; } ); } value { cv.value = view.value } } CVSyncMulti : ...
-
... icText.new(window, Rect(400, 30, 10, 20)).string_("id").resize_(3); idBox = GUI.numberBox.new(window, Rect(415, 30, 60, 20)).value_(100).resize_(3); GUI.staticText.new(window, Rect(400, 50, 10, 20)).string_("cID").resize_(3); classIdBox = G ...