-
/* 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. ...
-
NumberBox a cross-platform redirector for a GUI widget Inherits from: Object : ViewRedirect This class will return the gui kit specific version of a NumberBox. See also: GUI , GUI-Classes , GUI-Overview Examples and Documentation: For examp ...
-
... t(window, (50@20)).font_(font).string_("port").align_(\center); var gui_port = NumberBox(window, (75@20)).font_(font).value_(0).align_(\center).clipLo_(0).clipHi_(0).enabled_(false); // TODO! var gui_space = StaticText(window, (15@20)); ...
-
... front; w.view.background_(Color.gray(0.75)); w.onClose_({s.freeAll}); ~numberBox = NumberBox.new(w, Rect(180, 25, 450, 120)) .font_(Font("Helvetica", 108)) .value_(-30) .action_({ |nb| nb.value.postln; ~knob.va ...
-
... // 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 ...