Synthizer class Null safety

The main synthizer class.

You must create an instance of this class in order to use the library.

Constructors

Synthizer({String? filename})
Create an instance.
Synthizer.fromExecutable()
Create an instance with the library loaded from the current executable.
factory
Synthizer.fromProcess()
Create an instance with the library loaded from the current process.
factory

Properties

bigIntPointer Pointer<Uint64>
The handle to a bigger int.
final
deleteBehaviorConfigPointer Pointer<syz_DeleteBehaviorConfig>
The delete configuration.
final
doublePointer Pointer<Double>
The handle used by SynthizerDoubleProperty.
final
hashCode int
The hash code for this object. [...]
read-only, inherited
intPointer Pointer<Int32>
The handle used by SynthizerIntProperty, SynthizerBoolProperty, and SynthizerPannerStrategyProperty.
final
majorPointer Pointer<Uint32>
Handles used by version.
final
minorPointer Pointer<Uint32>
Handles used by version.
final
patchPointer Pointer<Uint32>
Handles used by version.
final
routeConfig Pointer<syz_RouteConfig>
The handle used by Context.ConfigRoute.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
sineBankConfigPointer Pointer<syz_SineBankConfig>
Another pointer used by FastSineBankGenerator.
final
sineBankWavePointer Pointer<syz_SineBankWave>
A pointer for use by FastSineBankGenerator.
final
synthizer ↔ DartSynthizer
The C portion of the library. [...]
late, final
userdataFreeCallbackPointer Pointer<syz_UserdataFreeCallback>
The default pointer for freeing user data.
final
version SynthizerVersion
Get the synthizer version.
read-only
wasInit bool
Whether or not initialize has been called.
read-only
x1 Pointer<Double>
Handles used by SynthizerDouble3Property.
final
x2 Pointer<Double>
Extra handles used by double6.
final
y1 Pointer<Double>
Handles used by SynthizerDouble3Property.
final
y2 Pointer<Double>
Extra handles used by double6.
final
z1 Pointer<Double>
Handles used by SynthizerDouble3Property.
final
z2 Pointer<Double>
Extra handles used by double6.
final

Methods

check(int value) → void
Check if a returned value is an error.
createContext({bool events = false}) Context
Create a context.
decRef(int handle) → void
Decrease the reference count for the object with the given handle.
designBandpass(double frequency, double bandwidth) BiquadConfig
Shorthand for BiquadConfig.designBandpass.
designHighpass(double frequency, {double q = 0.7071135624381276}) BiquadConfig
Shorthand for BiquadConfig.designHighpass.
designIdentify() BiquadConfig
Shorthand for BiquadConfig.designIdentity.
designLowpass(double frequency, {double q = 0.7071135624381276}) BiquadConfig
Shorthand for BiquadConfig.designLowpass.
getContextEvent(Context context) SynthizerEvent?
Get the next event for context.
getObject(int handle) SynthizerObject
Get an object from handle. [...]
getObjectType(int handle) ObjectType
Get the type of a handle.
incRef(int handle) → void
Increase the reference count for the object with the given handle.
initialize({LogLevel? logLevel, LoggingBackend? loggingBackend, String? libsndfilePath}) → void
Initialise the library.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
shutdown() → void
Shutdown the library.
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited