Convenience method for calling .new
on some some subclass (efx).
subclassResponsibility
subclassResponsibility
A sorted Array of all subclasses.
An Array with parameter names as symbols. Mainly used internally for generating the GUI. The order is taken from the *ar arguments.
A lowercase String derived from the effect's class name (with GFX_
removed). Mainly used internally for parameter names.
Show the class definition.
*specs
class method.
It is fairly easy to add your own custom effect modules. Just follow the following guidelines...
*ar
and *specs
.*ar
the first argument must be called in
. This argument will be the incoming audio and should deal with any number of channels.*ar
arguments should not use the reserved names mix
, pause
, lags
and bus
.*ar
argument order will determine parameter sorting in the GUI.*specs
class method should return an Event with parameter names as keys and specs as values. There is a little bit of magic here as the key names should follow the naming convention prefixParameter.Simple module example class...
See the classes in the folder Modules for more examples.
A properly written class can be used like any other module - including being added to a GFX_Rack, as a SynthDef variant (with optional GUI) or as a pseudo UGen variant...
A special feature is that when used in a rack, a module will be sent the parameter 'feedback
'. This is the index of an internal audio bus that is tapped from the rack output pre volume fader. See the GFXFeed module for an example.