-
/* FILENAME: SynthBoxNumberView DESCRIPTION: Simple numberbox with a lable AUTHOR: Marinus Klaassen (2012, 2021Q3) EXAMPLE: SynthBoxNumberView(bounds:400@50).front().action_({ |sender| sender.postln }); */ SynthBoxNumberView : View { var <n ...
-
... = {}; cancelFunction = {}; simpleViewOptions = ( \numInputBusChannels: (\type: NumberBox, \pos: 2), \numOutputBusChannels: (\type: NumberBox, \pos: 3), \sampleRate: (\type: PopUpMenu, \pos: 4), \blockSize: (\type: NumberBox, \pos: 5), \mem ...
-
/* FILENAME: NumberBoxFactory DESCRIPTION: Factory class AUTHOR: Marinus Klaassen (2021Q4) */ NumberBoxFactory { *createInstance { |caller, class| var newInstance = NumberBox(); class = class.asString(); newInstance.background_(Color.white. ...
-
... // default height w: 800, // default width labelW: 80, // width of a label and numberbox vh: 200, // height of a vertical slider vw: 20, // width of a vertical slider scroll: false, // functions that specify default dimensions of various v ...
-
... t.addView(Slider().orientation_(\horizontal)), stretch:1], ampHiElement.addView(NumberBox().decimals_(3), ampHiSpec) ), HLayout( StaticText().string_("AmpLo").fixedWidth_(50), [ampLoElement.addView(Slider().orientation_(\horizontal)), stret ...
-
... objects in the environment var objectList; // default width of number boxes var numberBoxWidth = 45; // currently selected object (name of object as symbol) var selectedObject; // List of DIMPLE attributes which are monitored with the GUI / ...
-
... 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 ...
-
... nter); mainLayout.add(StaticText().string_("MIDI Ch1: "), 3, 0); mainLayout.add(NumberBox().clipLo_(0).clipHi_(127).action_({| caller | this.midiCh1(caller.value); }), 3, 1); mainLayout.add(StaticText().string_("MIDI Ch2: "), 4, 0); mainLay ...
-
//convert Euros to Pounds ( //Setup GUI var nb1 = NumberBox(); var nb2 = NumberBox(); w = Window(bounds:Rect(200,200,200,100)).layout_( HLayout( StaticText().string_("Euro:"), nb1, StaticText().string_("Pound:"), nb2 ) ).front; ENdef(\x,{ v ...
-
... Sampled({sig}, es) {sig} will delay execution of sig */ ( //Setup GUI var nb1 = NumberBox(); var nb2 = NumberBox(); w = Window(bounds:Rect(200,200,200,100)).layout_( HLayout( StaticText().string_("In:"), nb1, StaticText().string_("Out:"), n ...