|
Drag[en]gine Script Module DragonScript 1.35
|
Synthesizer producing dynamic sounds from sources. More...
Public Member Functions | |
Constructors | |
| Synthesizer | new () |
| Create synthesizer. | |
Management | |
| int | getChannelCount () |
| Number of channels. | |
| void | setChannelCount (int channelCount) |
| Set number of channels. | |
| int | getSampleRate () |
| Sample rate. | |
| void | setSampleRate (int sampleRate) |
| Set sample rate. | |
| int | getBytesPerSample () |
| Bytes per sample. | |
| void | setBytesPerSample (int bytesPerSample) |
| Set bytes per sample. | |
| 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. | |
Links | |
| int | getLinkCount () |
| Number of links. | |
| int | addLink (int controller) |
| Add link with controller and no mapping points. | |
| void | removeAllLinks () |
| Remove all links. | |
| void | linkSetController (int link, int controller) |
| Set controller of link. | |
| void | linkSetRepeat (int link, int repeat) |
| Set repeat count along X axis of link. | |
| void | linkSetCurve (int link, CurveBezier curve) |
| Set curve of link. | |
Sources | |
| int | getSourceCount () |
| Number of sources. | |
| void | addSource (SynthesizerSource source) |
| Add source. | |
| SynthesizerSource | getSourceAt (int index) |
| Source at index. | |
| void | removeAllSources () |
| Remove all sources. | |
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.
References getControllerNamed().
Referenced by linkSetCurve().
| void Dragengine.Scenery.Synthesizer.addSource | ( | SynthesizerSource | source | ) |
| int Dragengine.Scenery.Synthesizer.getBytesPerSample | ( | ) |
Bytes per sample.
Referenced by getSampleCount().
| int Dragengine.Scenery.Synthesizer.getChannelCount | ( | ) |
| 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(). |
References setControllerCount().
Referenced by indexOfControllerNamed().
| int Dragengine.Scenery.Synthesizer.getControllerCount | ( | ) |
| 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. |
Referenced by addLink().
| int Dragengine.Scenery.Synthesizer.getLinkCount | ( | ) |
Number of links.
Referenced by linkSetController().
| float Dragengine.Scenery.Synthesizer.getSampleCount | ( | ) |
| int Dragengine.Scenery.Synthesizer.getSampleRate | ( | ) |
| SynthesizerSource Dragengine.Scenery.Synthesizer.getSourceAt | ( | int | index | ) |
Source at index.
| EOutOfBoundary | index is less than 0 or large than or equal to getSourceCount(). |
Referenced by removeAllSources().
| int Dragengine.Scenery.Synthesizer.getSourceCount | ( | ) |
Number of sources.
Referenced by removeAllSources().
| int Dragengine.Scenery.Synthesizer.indexOfControllerNamed | ( | String | name | ) |
Index of named controller or -1 if not found.
References getControllerAt().
Referenced by removeAllLinks().
| 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(). |
References getLinkCount().
Referenced by addSource().
| 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(). |
References addLink(), and removeAllLinks().
Referenced by removeAllSources().
| void Dragengine.Scenery.Synthesizer.linkSetRepeat | ( | int | link, |
| int | repeat ) |
Set repeat count along X axis of link.
| EInvalidParam | repeat is less than 1. |
Referenced by removeAllSources().
| Synthesizer Dragengine.Scenery.Synthesizer.new | ( | ) |
| void Dragengine.Scenery.Synthesizer.removeAllLinks | ( | ) |
| void Dragengine.Scenery.Synthesizer.removeAllSources | ( | ) |
Remove all sources.
References addSource(), getSourceAt(), getSourceCount(), linkSetCurve(), linkSetRepeat(), and removeAllSources().
Referenced by removeAllSources().
| void Dragengine.Scenery.Synthesizer.setBytesPerSample | ( | int | bytesPerSample | ) |
| void Dragengine.Scenery.Synthesizer.setChannelCount | ( | int | channelCount | ) |
Set number of channels.
Referenced by getSampleRate().
| void Dragengine.Scenery.Synthesizer.setControllerCount | ( | int | count | ) |
Set number of controllers.
| EInvalidParam | count is less than 0. |
References getControllerCount().
Referenced by getControllerAt().
| void Dragengine.Scenery.Synthesizer.setSampleCount | ( | int | sampleCount | ) |
Set number of samples to create.
References getSampleCount(), and setBytesPerSample().
Referenced by getControllerCount().
| void Dragengine.Scenery.Synthesizer.setSampleRate | ( | int | sampleRate | ) |