EQui:
Filter:
EQui/Classes (extension) | GUI

EQui
ExtensionExtension

Easy 5 band Parametric EQ with auto GUI

Description

EQui lets you quickly create a parametric EQ on the output of a given UGen. It takes a target, which must understand the set message as setting a NamedControl (so a Synth or and Ndef, or similar). The UGen: -equi method creates the necessary EQ UGens processing the receiver. The use of a prefix arg allows the creation of multiple EQuis within the same Synth. The EQ UGens are from the BEQSuite, and consist of a BLowShelf, three BPeakEQs, and a BHishelf. ht to Wouter Snoei whose MasterEQ formed the basis for this!

Class Methods

.new

Create a new EQui.

Arguments:

parent

An optional parent View.

bounds

A Rect or Point specifying the bounds of the EQui.

target

A Synth or similar object (e.g. Ndef) that will receive changes in this EQui's parameters. Generally one or more UGens in this will have received the UGen-equi message with the same prefix used here.

params

An optional instance of EQuiParams containing initial parameter values.

prefix

An optional String to use as a prefix to Control names. This is only necessary to distinguish when using multiple EQuis with the same synth.

sampleRate

The sample rate at which target is running. If not specified, this will use Server.default.options.sampleRate. This is necessary to calculate responses correctly.

Returns:

A new EQui.

Instance Methods

.target

Get or set this EQui's target (see above).

Arguments:

intarget

.sync

Sync this EQui with the current state of its target.

.valueAction

Set this EQui's parameters to new values without setting the target, or triggering the action.

Arguments:

inparams

An instance of EQuiParams.

.value

Get or set this EQui's EQuiParams. The getter returns a copy.

Arguments:

inparams

An instance of EQuiParams.

.set

Set one or more named parameters to new values, triggering the action. Possible parameters are 'loShelfFreq', 'loShelfGain', 'loShelfRs', 'loPeakFreq', 'loPeakGain', 'loPeakRq', 'midPeakFreq', 'midPeakGain', 'midPeakRq', 'hiPeakFreq', 'hiPeakGain', 'hiPeakRq', 'hiShelfFreq', 'hiShelfGain', and 'hiShelfRs'.

Arguments:

... pairs

Pairs of parameter names and values. Names must be preceded by a prefix if one was supplied in *new.

Examples