Drag[en]gine Script Module DragonScript
1.23
|
Synthesizer producing dynamic sounds from sources. More...
Public Member Functions | |
Constructors | |
Synthesizer | new () |
Create synthesizer. More... | |
Management | |
int | getChannelCount () |
Number of channels. More... | |
void | setChannelCount (int channelCount) |
Set number of channels. More... | |
int | getSampleRate () |
Sample rate. More... | |
void | setSampleRate (int sampleRate) |
Set sample rate. More... | |
int | getBytesPerSample () |
Bytes per sample. More... | |
void | setBytesPerSample (int bytesPerSample) |
Set bytes per sample. 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... | |
Links | |
int | getLinkCount () |
Number of links. More... | |
int | addLink (int controller) |
Add link with controller and no mapping points. More... | |
void | removeAllLinks () |
Remove all links. More... | |
void | linkSetController (int link, int controller) |
Set controller of link. More... | |
void | linkSetRepeat (int link, int repeat) |
Set repeat count along X axis of link. More... | |
void | linkSetCurve (int link, CurveBezier curve) |
Set curve of link. More... | |
Sources | |
int | getSourceCount () |
Number of sources. More... | |
void | addSource (SynthesizerSource source) |
Add source. More... | |
SynthesizerSource | getSourceAt (int index) |
Source at index. More... | |
void | removeAllSources () |
Remove all sources. More... | |
Synthesizer producing dynamic sounds from sources.
Contains the definition for producing sounds. Use SynthesizerInstance for to actually produce sounds using individual parameters. Multiple synthesizer instances can share the same synthesizer.
This is a native class. It can not be subclassed.
int Dragengine.Scenery.Synthesizer.addLink | ( | int | controller | ) |
Add link with controller and no mapping points.
If the controller does not exist the link uses 0 as input value during calculations.
void Dragengine.Scenery.Synthesizer.addSource | ( | SynthesizerSource | source | ) |
Add source.
int Dragengine.Scenery.Synthesizer.getBytesPerSample | ( | ) |
Bytes per sample.
int Dragengine.Scenery.Synthesizer.getChannelCount | ( | ) |
Number of channels.
SynthesizerController Dragengine.Scenery.Synthesizer.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.Synthesizer.getControllerCount | ( | ) |
Nnumber of controllers.
SynthesizerController Dragengine.Scenery.Synthesizer.getControllerNamed | ( | String | name | ) |
Get wrapper for controller if present.
name | Name of controller. If no controller with this name is present null is returned. |
int Dragengine.Scenery.Synthesizer.getLinkCount | ( | ) |
Number of links.
float Dragengine.Scenery.Synthesizer.getSampleCount | ( | ) |
Number of samples to create.
int Dragengine.Scenery.Synthesizer.getSampleRate | ( | ) |
Sample rate.
SynthesizerSource Dragengine.Scenery.Synthesizer.getSourceAt | ( | int | index | ) |
Source at index.
EOutOfBoundary | index is less than 0 or large than or equal to getSourceCount(). |
int Dragengine.Scenery.Synthesizer.getSourceCount | ( | ) |
Number of sources.
int Dragengine.Scenery.Synthesizer.indexOfControllerNamed | ( | String | name | ) |
Index of named controller or -1 if not found.
void Dragengine.Scenery.Synthesizer.linkSetController | ( | int | link, |
int | controller | ||
) |
Set controller of link.
If the controller does not exist the link uses 0 as input value during calculations.
EOutOfBoundary | link is less than 0 or large than or equal to getLinkCount(). |
void Dragengine.Scenery.Synthesizer.linkSetCurve | ( | int | link, |
CurveBezier | curve | ||
) |
Set curve of link.
EOutOfBoundary | link is less than 0 or large than or equal to getLinkCount(). |
void Dragengine.Scenery.Synthesizer.linkSetRepeat | ( | int | link, |
int | repeat | ||
) |
Set repeat count along X axis of link.
EInvalidParam | repeat is less than 1. |
Synthesizer Dragengine.Scenery.Synthesizer.new | ( | ) |
Create synthesizer.
void Dragengine.Scenery.Synthesizer.removeAllLinks | ( | ) |
Remove all links.
void Dragengine.Scenery.Synthesizer.removeAllSources | ( | ) |
Remove all sources.
void Dragengine.Scenery.Synthesizer.setBytesPerSample | ( | int | bytesPerSample | ) |
Set bytes per sample.
void Dragengine.Scenery.Synthesizer.setChannelCount | ( | int | channelCount | ) |
Set number of channels.
void Dragengine.Scenery.Synthesizer.setControllerCount | ( | int | count | ) |
Set number of controllers.
EInvalidParam | count is less than 0. |
void Dragengine.Scenery.Synthesizer.setSampleCount | ( | int | sampleCount | ) |
Set number of samples to create.
void Dragengine.Scenery.Synthesizer.setSampleRate | ( | int | sampleRate | ) |
Set sample rate.