Minim index
Name SignalChain
Examples
None available
Description An SignalChain is a list of {@link AudioSignal AudioSignals} that gives you the ability to enable (unmute) and disable (mute) signals. When you add a signal, it is added to the end of the chain and is enabled. When you remove a signal, signals further down the chain are moved up a slot. SignalChain is itself an AudioSignal, so you can easily create groups of signals that can be enabled/disabled together by putting them in an SignalChain and then adding that chain to a Polyphonic object as a single signal. When the signal chain is asked to generate a signal, it asks each of its signals to generate audio and then mixes all of the signals together. SignalChain is fully synchronized so that signals cannot be added and removed from the chain during signal generation.
Constructors
SignalChain();
Methods
add ( )   Adds signal to the end of the chain.

clear ( )   Removes all signals from the effect chain.

contains ( )   Returns true if s is in the chain.

disable ( )   Disables signal if it is in the chain.

disableAll ( )   Disables all signals in the chain.

enable ( )   Enables signal if it is in the chain.

enableAll ( )   Enables all signals in the chain.

generate ( )   Asks all the enabled signals in the chain to generate a left and right buffer of samples, adds the signals together and puts the result in left and right.

get ( )   Gets the ith signal in the chain.

hasEnabled ( )   Returns true if at least one effect in the chain is enabled.

isEnabled ( )   Returns true if e is in the chain and is enabled.

remove ( )   Removes and returns the ith signal from the chain.

size ( )   Returns the number of signals in the chain.

Usage Web & Application
Related