WavetablePrepGui:
Filter:
ddwWavetableSynth/Classes (extension) | GUI > Interfaces

WavetablePrepGui
ExtensionExtension

A graphical interface to see WavetablePrep contents

Description

A graphical interface to visualize wavetable matrices that have been processed by WavetablePrep.

It assumes that you already have a WavetablePrep instance, fully populated with wavetables.

The easiest way to create one is by calling gui on the WavetablePrep object.

NOTE: Because of the way the parent class, SCViewHolder, works, the argument to the action function does not give you access to the GUI's parameter values. (SCViewHolder passes a View object to the action function, which doesn't know how to reach the object that owns it.) So you will have to keep a reference to the WavetablePrepGui in a variable, and use your variable in the action function instead.

Class Methods

.new

Create the GUI instance.

Arguments:

model

The WavetablePrep object to display.

parent

Optional. Supply a Window or View if you wish to put the interface into an existing GUI context. This can be nil if you either a/ supply bounds (in which case the view will create its own window) or b/ you will put the WavetablePrepGui into a Layout later.

bounds

Optional, if you are using Qt layouts. If not, a Rect should be provided.

Instance Methods

.freq

Get or set the frequency mapping to display. (Setting should be done from AppClock.)

.wtPos

Get or set the wavetable position to display. (Setting should be done from AppClock.)

.sr

Get or set the sample rate being used to calculate frequency mapping.

GUI widgets

This class does not provide methods to change the appearance of the GUI widgets. However, you may access them directly and set their drawing properties.

.graph

The MultiSliderView displaying the waveform.

.posSlider

The LayoutValueSlider controlling wavetable position.

.freqSlider

The LayoutValueSlider controlling frequency.

Examples