ScopeView:
Filter:
Classes | GUI > Views

ScopeView

A buffer plotting view.
Location: NOT INSTALLED!

Description

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.

Class Methods

Inherited class methods

Instance Methods

.bufnum

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.

Arguments:

An integer.

.server

An instance of ScopeView must be assigned to a particular server for it to work.

Arguments:

A Server object

.start

Tells the ScopeView object to start plotting.

.stop

Tells the ScopeView object to stop plotting. Plotting can be resumed anytime with the start method.

.style

The plotting style:

Arguments:

One of the above Integers.

.xZoom

The scaling factor on the horizontal axis.

Arguments:

A Float.

.yZoom

The scaling factor on the vertical axis.

Arguments:

A Float.

.x

The horizontal offset.

Arguments:

A Float.

.y

The vertical offset.

Arguments:

A Float.

.fill

Fill area under scope.

Arguments:

A Boolean.

.waveColors

The colors used to plot each of the channels.

Arguments:

An Array of Colors, one per channel.

Inherited instance methods

Examples

A step-by-step example

An interactive example with sound

This explains all the options: