BusMonitor

class to monitor a control bus graphically with GNUPlot

Inherits from:: Object

This creates a GNUPlot.monitor on the bus, with an update time of 0.05, a data size of 1000, and a skip of 20.
You can also get a BusHistoMonitor directly from a control bus, by calling bus.monitor
See also: GNUPlot
You need to have GNUPlot installed in order to be able to use this class!

Creation / Class Methods

*new(bus,hisSize,skip)
Create a monitor on bus "bus".
hisSize
The amount of points plotted
skip
The amount of points after which to make an update to the plot.

Accessing Instance and Class Variables

start
Start the monitor.
reset
Reset the monitor.
stop
Stop the monitor.
initMonitor
Initialize the monitor. Called upon class initialization, but should also be called if hisSize, skip or dt are changed.
setRange(min,max)
Set the minimum and maximum of the plotting (x) range.
min
default 0
max
default 1
dt
dt_
Set the update time of the monitor (default 0.05).
bus
The bus that is monitored
hisSize
hisSize_
Set the history size.
skip
skip_
Set the amount of points after which to make an update to the plot.
cleanUp
Quit GNUPlot and close the pipe to it.
data
The last data added to the plot.
gnuplot
The instance of GNUPlot.

Example 1

s = Server.local.boot;
b = Bus.control(s,1);
{ Out.kr( b.index, Mix.new( SinOsc.kr( [0.125, 0.25], 0, [0.6,0.4] ) ) )
}.play;
a = BusMonitor.new( b );
a.start;
a.setRange( -1, 1 );
a.stop;
a.cleanUp;

This helpfile was created with the class HelpFile2