SCEnvelopeEdit:
Filter:
Classes | GUI > Kits > Cocoa

SCEnvelopeEdit

An envelope editor view
Location: NOT INSTALLED!

Description

An editable Envelope view.

Some Important Issues Regarding SCEnvelopeEdit

The breakpoints are color coded as follows:

bluenormal
redsustain node
greenloop node

Class Methods

.new

Arguments:

parent

The parent view.

bounds

An instance of Rect, or a Point indicating width@height.

env

The envelope. An instance of Env.

pointsPerSegment

The resolution in points per segment. Default value is 10.

.paletteExample

Arguments:

parent
bounds

Subclassing and Internal Methods

The following methods are usually not used directly or are called by a primitive. Programmers can still call or override these as needed.

.viewClass

Inherited class methods

Instance Methods

.refresh

If the Env object is modified directly, this needs to be called to update the GUI.

maxLevel Changes maximum level shown in editor.

Arguments:

level

An instance of Float.

.minLevel

Changes minimum level shown in editor.

Arguments:

level

An instance of Float.

.minTime

Changes minimum time (sec) shown in editor. Negative times are okay because Env uses inter-node durations.

Arguments:

sec

An instance of Float. Seconds.

.maxTime

Changes maximum time (sec) shown in editor.

Arguments:

sec

An instance of Float. Seconds.

Subclassing and Internal Methods

The following methods are usually not used directly or are called by a primitive. Programmers can still call or override these as needed.

.defaultMouseDownAction

Arguments:

x
y
modifiers
buttonNumber
clickCount

.env

Arguments:

e

.addBreakPoint

Arguments:

level

.insertAtTime

Arguments:

time
level

.pointsPerSegment

.initSCEnvelopeEdit

Arguments:

argEnv
argPPS
setMinMax

.redraw

.updateAll

.updateSegment

Arguments:

segNum

.clear

Inherited instance methods

Examples

Make a basic editor:

Controlling a Synth