Drag[en]gine Script Module DragonScript
1.23
|
Synthesizer instance producing source using a synthesizer. More...
Public Member Functions | |
Constructors | |
SynthesizerInstance | new () |
Create synthesizer instance. More... | |
Management | |
Synthesizer | getSynthesizer () |
synthesizer or null if not set. More... | |
void | setSynthesizer (Synthesizer synthesizer) |
Set synthesizer or null if not set. More... | |
float | getSampleCount () |
Number of samples to create. More... | |
void | setSampleCount (int sampleCount) |
Set number of samples to create. More... | |
Controllers | |
int | getControllerCount () |
Nnumber of controllers. More... | |
void | setControllerCount (int count) |
Set number of controllers. More... | |
SynthesizerController | getControllerAt (int index) |
Get wrapper for controller. More... | |
SynthesizerController | getControllerNamed (String name) |
Get wrapper for controller if present. More... | |
int | indexOfControllerNamed (String name) |
Index of named controller or -1 if not found. More... | |
void | copyControllerStates (SynthesizerInstance instance, int count) |
Copy the first count controller values and vectors from another synthesizer instance. More... | |
void | copyControllerStates (SynthesizerInstance instance, int offset, int count) |
Copy the first count controller values and vectors from another synthesizer instance. More... | |
void | copyNamedControllerStates (SynthesizerInstance instance) |
Copy name matching controller values and vectors from another synthesizer instance. More... | |
Synthesizer instance producing source using a synthesizer.
Every synthesizer contains a set of sources and controllers indicating how the final sound is produced. While synthesizers define this production process the synthesizer instance produces the actual sound using per instance parameters.
This is a native class. It can not be subclassed.
void Dragengine.Scenery.SynthesizerInstance.copyControllerStates | ( | SynthesizerInstance | instance, |
int | count | ||
) |
Copy the first count controller values and vectors from another synthesizer instance.
Bones outside the number of controllers are ignored.
EInvalidParam | count is less than 0. |
void Dragengine.Scenery.SynthesizerInstance.copyControllerStates | ( | SynthesizerInstance | instance, |
int | offset, | ||
int | count | ||
) |
Copy the first count controller values and vectors from another synthesizer instance.
Offset index of controller to copy from other synthesizer. Bones outside the number of controllers are ignored.
EInvalidParam | count is less than 0. |
void Dragengine.Scenery.SynthesizerInstance.copyNamedControllerStates | ( | SynthesizerInstance | instance | ) |
Copy name matching controller values and vectors from another synthesizer instance.
Non-matching controllers are ignored.
SynthesizerController Dragengine.Scenery.SynthesizerInstance.getControllerAt | ( | int | index | ) |
Get wrapper for controller.
index | Index of controller. If index is negative controller count is added to it. This allows to get controllers starting from the last controller. |
EOutOfBoundary | controller is less than -getControllerCount() or larger than or equal to getControllerCount(). |
int Dragengine.Scenery.SynthesizerInstance.getControllerCount | ( | ) |
Nnumber of controllers.
SynthesizerController Dragengine.Scenery.SynthesizerInstance.getControllerNamed | ( | String | name | ) |
Get wrapper for controller if present.
name | Name of controller. If no controller with this name is present null is returned. |
float Dragengine.Scenery.SynthesizerInstance.getSampleCount | ( | ) |
Number of samples to create.
Synthesizer Dragengine.Scenery.SynthesizerInstance.getSynthesizer | ( | ) |
synthesizer or null if not set.
int Dragengine.Scenery.SynthesizerInstance.indexOfControllerNamed | ( | String | name | ) |
Index of named controller or -1 if not found.
SynthesizerInstance Dragengine.Scenery.SynthesizerInstance.new | ( | ) |
Create synthesizer instance.
void Dragengine.Scenery.SynthesizerInstance.setControllerCount | ( | int | count | ) |
Set number of controllers.
EInvalidParam | count is less than 0. |
void Dragengine.Scenery.SynthesizerInstance.setSampleCount | ( | int | sampleCount | ) |
Set number of samples to create.
void Dragengine.Scenery.SynthesizerInstance.setSynthesizer | ( | Synthesizer | synthesizer | ) |
Set synthesizer or null if not set.