ScopeView is mainly intended to support the implementation of Stethoscope (an oscilloscope), FreqScopeView (a basic frequency spectrum plotting view) and FreqScope (a frequency spectrum analyzer tool).
It is optimized to efficiently perform frequent plotting of the contents of a Buffer into which a ScopeOut2 UGen is writing. It will periodically poll the buffer for data and update the plot, as long as the ScopeOut2 UGen is writing into it; the buffer will not be plotted otherwise.
The number of the Buffer to plot.
To set up the ScopeView object for plotting, one needs to set a valid buffer number and tell a ScopeOut2 UGen to write to it. Before the view starts periodically plotting the buffer, however, one needs to assign it a Server object and call the -start method on it.
If the ScopeOut2 UGen stops writing or an invalid buffer number is set, the plotting will pause.
buf |
An integer. |
An instance of ScopeView must be assigned to a particular server for it to work.
server |
A Server object |
Tells the ScopeView object to start plotting.
Tells the ScopeView object to stop plotting. Plotting can be resumed anytime with the start method.
The plotting style:
value |
One of the above Integers. |
The scaling factor on the horizontal axis.
aFloat |
A Float. |
The scaling factor on the vertical axis.
aFloat |
A Float. |
The horizontal offset.
aFloat |
A Float. |
The vertical offset.
aFloat |
A Float. |
Fill area under scope.
aFill |
A Boolean. |
The colors used to plot each of the channels.
aColorArray |
An Array of Colors, one per channel. |
This explains all the options: