ScopeView:
Filter:
Classes | GUI > Views

ScopeView : View : QObject : Object

A buffer plotting view.
Source: ScopeView.sc
Subclasses: QScope2, Scope2

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 ScopeOut UGen is writing. It will periodically poll the buffer for data and update the plot, as long as the ScopeOut UGen is writing into it; the buffer will not be plotted otherwise.

Class Methods

Inherited class methods

Undocumented class methods

ScopeView.qtClass

Instance Methods

.bufnum

.bufnum = buf

The number of the Buffer to plot.

As soon as a valid buffer number is set and a ScopeOut UGen is writing into it, the view starts periodically plotting the buffer. If the ScopeOut UGen stops writing, or an invalid buffer number is set, the plotting will pause.

Arguments:

buf

An integer.

.style

.style = value

The plotting style:

Arguments:

value

One of the above Integers.

.xZoom

.xZoom = aFloat

The scaling factor on the horizontal axis.

Arguments:

aFloat

A Float.

.yZoom

.yZoom = aFloat

The scaling factor on the vertical axis.

Arguments:

aFloat

A Float.

.x

.x = aFloat

The horizontal offset.

Arguments:

aFloat

A Float.

.y

.y = aFloat

The vertical offset.

Arguments:

aFloat

A Float.

.fill

.fill = aFill

Fill area under scope.

Arguments:

aFill

A Boolean.

.waveColors

.waveColors = aColorArray

The colors used to plot each of the channels.

Arguments:

aColorArray

An Array of Colors, one per channel.

Inherited instance methods

Undocumented instance methods

.server = server

.start

.stop

Examples

A step-by-step example

An interactive example with sound

This explains all the options: