2 summary:: display and control a Monitor
3 categories:: Libraries>JITLib>GUI
4 related:: Classes/NodeProxy, Classes/Ndef, Classes/JITGui, Classes/NdefGui
8 MonitorGui displays the state of a link::Classes/NodeProxy::'s link::Classes/Monitor::. It is used in link::Classes/NdefGui::, link::Classes/ProxyMixer::, and link::Classes/NdefMixer::.
10 subsection::First examples
17 // make a MonitorGui with all bells and whistles
18 m = MonitorGui.new(bounds: 500@40, options: [\playN, \name, \level, \fade]);
20 // when it has a kr proxy, it is visible, but disabled
22 // with an ar proxy, it is enabled
25 // show its play state
31 // switch to playN mode - spread outputs should show
32 Ndef(\a).playN([0, 2]);
33 // switch back to play - spread outbox goes back
47 g = MonitorGui(Ndef(\a)); // barebones
51 g = MonitorGui(Ndef(\a), w, 300@40);
54 // a playN dialog button
55 g = MonitorGui.new(Ndef(\a), options: [\playN])
58 MonitorGui.new(Ndef(\a), bounds: Rect(100, 100, 400, 30), options: [\playN])
59 MonitorGui.new(Ndef(\a), bounds: 400@24, options: [\playN])
61 // level name and numerical value
62 MonitorGui.new(Ndef(\a), options: [\playN, \level])
64 // a nameView and a fadeTime setter box
65 MonitorGui.new(Ndef(\a), options: [\playN, \name, \fade])
68 MonitorGui.new(Ndef(\a), options: [\playN, \level, \name, \fade])
72 the nodeproxy whose monitor state will be shown, or nil.
75 a parent view where MonitorGui is to be shown. If nil, a window is made.
78 bounds where the view (or window) will be shown.
81 a flag whether to create and start a link::Classes/SkipJack:: for auto-updating.
84 an array of symbols for options of what to display.
86 subsection::Class Variables
89 the highest outbus number to allow. Default is 99.
93 subsection::Instance Variables
96 some information on what to display
99 an link::Classes/EZSlider:: for link::Classes/Monitor:: volume
102 a play button - shows play or playN
105 a numberbox to set output routing
107 method::playNDialogBut
108 opens a dialog window for playN output routing by code
111 a numberbox for setting monitor fadeTime.
113 subsection::Some Methods
116 switches between playN mode (true) and play mode (false)
119 compare previous state with current state, and update gui elements.