|
Drag[en]gine Script Module DragonScript 1.35
|
Synthesizer instance producing source using a synthesizer. More...
Public Member Functions | |
Constructors | |
| SynthesizerInstance | new () |
| Create synthesizer instance. | |
Management | |
| Synthesizer | getSynthesizer () |
| synthesizer or null if not set. | |
| void | setSynthesizer (Synthesizer synthesizer) |
| Set synthesizer or null if not set. | |
| float | getSampleCount () |
| Number of samples to create. | |
| void | setSampleCount (int sampleCount) |
| Set number of samples to create. | |
Controllers | |
| int | getControllerCount () |
| Nnumber of controllers. | |
| void | setControllerCount (int count) |
| Set number of controllers. | |
| SynthesizerController | getControllerAt (int index) |
| Get wrapper for controller. | |
| SynthesizerController | getControllerNamed (String name) |
| Get wrapper for controller if present. | |
| int | indexOfControllerNamed (String name) |
| Index of named controller or -1 if not found. | |
| void | copyControllerStates (SynthesizerInstance instance, int count) |
| Copy the first count controller values and vectors from another synthesizer instance. | |
| void | copyControllerStates (SynthesizerInstance instance, int offset, int count) |
| Copy the first count controller values and vectors from another synthesizer instance. | |
| void | copyNamedControllerStates (SynthesizerInstance instance) |
| Copy name matching controller values and vectors from another synthesizer instance. | |
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. |
References getControllerNamed(), and indexOfControllerNamed().
Referenced by copyNamedControllerStates().
| 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.
References copyControllerStates(), and copyNamedControllerStates().
Referenced by copyNamedControllerStates().
| 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(). |
References getControllerAt().
Referenced by getControllerAt().
| int Dragengine.Scenery.SynthesizerInstance.getControllerCount | ( | ) |
Nnumber of controllers.
Referenced by setControllerCount().
| 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. |
Referenced by copyControllerStates().
| float Dragengine.Scenery.SynthesizerInstance.getSampleCount | ( | ) |
Number of samples to create.
Referenced by setSampleCount().
| Synthesizer Dragengine.Scenery.SynthesizerInstance.getSynthesizer | ( | ) |
| int Dragengine.Scenery.SynthesizerInstance.indexOfControllerNamed | ( | String | name | ) |
Index of named controller or -1 if not found.
Referenced by copyControllerStates().
| SynthesizerInstance Dragengine.Scenery.SynthesizerInstance.new | ( | ) |
| void Dragengine.Scenery.SynthesizerInstance.setControllerCount | ( | int | count | ) |
Set number of controllers.
| EInvalidParam | count is less than 0. |
References getControllerCount(), and setControllerCount().
Referenced by setControllerCount().
| void Dragengine.Scenery.SynthesizerInstance.setSampleCount | ( | int | sampleCount | ) |
Set number of samples to create.
References getSampleCount(), and setSampleCount().
Referenced by setSampleCount().
| void Dragengine.Scenery.SynthesizerInstance.setSynthesizer | ( | Synthesizer | synthesizer | ) |