Context class Null safety

A synthizer context.

Synthizer docs

Contexts can be created with the Synthizer.createContext function.

Inheritance
Mixed in types

Constructors

Context(Synthizer synthizer, {bool events = false, int? pointer})
Create a context.

Properties

currentTime SynthizerDoubleProperty
The current Synthizer time.
read-only, inherited
defaultClosenessBoost SynthizerDoubleProperty
The default closeness boost for this object.
read-only
defaultClosenessBoostDistance SynthizerDoubleProperty
The default closeness boost distance for this object.
read-only
defaultDistanceMax SynthizerDoubleProperty
The default distance max for this object.
read-only
defaultDistanceModel SynthizerDistanceModelProperty
The default distance model for this object.
read-only
defaultDistanceRef SynthizerDoubleProperty
The default distance ref for this object.
read-only
defaultPannerStrategy SynthizerPannerStrategyProperty
The default panner strategy for this context.
read-only
defaultRolloff SynthizerDoubleProperty
The default rolloff for this object.
read-only
events Stream<SynthizerEvent>
Get a stream of synthizer events. [...]
read-only
gain SynthizerDoubleProperty
The gain for this object.
read-only, inherited
handle Pointer<syz_Handle>
The handle for this object.
late, final, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
isValid bool
Returns true if this object is still valid.
read-only, inherited
orientation SynthizerDouble6Property
The orientation of this context.
read-only
position SynthizerDouble3Property
The position of this object.
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
suggestedAutomationTime SynthizerDoubleProperty
The suggested automation time.
read-only, inherited
synthizer Synthizer
The synthizer instance.
final, inherited

Methods

clearAllProperties(SynthizerObject object, {double? time}) → void
Clear all properties for object. [...]
clearEvents(SynthizerObject object, {double? time}) → void
Clear all events for object. [...]
configDeleteBehavior({bool? linger, double? timeout}) → void
Configure delete behaviour for this object.
inherited
ConfigRoute(SynthizerObject output, SynthizerObject input, {double gain = 1.0, double fadeTime = 0.01, BiquadConfig? filter}) → void
Configure an fx send.
createAngularPannedSource({PannerStrategy pannerStrategy = PannerStrategy.delegate, double azimuth = 0.0, double elevation = 0.0}) AngularPannedSource
Create a panned source with an azimuth and an elevation.
createBufferGenerator({Buffer? buffer}) BufferGenerator
Create a buffer generator.
createDirectSource() DirectSource
Create a direct source.
createGlobalEcho() GlobalEcho
Create a global echo.
createGlobalFdnReverb() GlobalFdnReverb
Create a reverb.
createNoiseGenerator({int channels = 1}) NoiseGenerator
Create a noise generator.
createSaw(double initialFrequency, int partials) FastSineBankGenerator
Create a saw tooth wave.
createScalarPannedSource({PannerStrategy panningStrategy = PannerStrategy.delegate, double panningScalar = 0.0}) ScalarPannedSource
Create a panned source with a scalar.
createSine(double initialFrequency, int partials) FastSineBankGenerator
Create a sine generator.
createSource3D({double x = 0.0, double y = 0.0, double z = 0.0, PannerStrategy pannerStrategy = PannerStrategy.delegate}) Source3D
Create a 3d source.
createSquare(double initialFrequency, int partials) FastSineBankGenerator
Create a square.
createStreamingGenerator(String protocol, String path, {String options = ''}) StreamingGenerator
Create a streaming generator.
createTriangle(double initialFrequency, int partials) FastSineBankGenerator
Create a Tri8angle wave.
decreaseReferenceCount() → void
Decrease the reference count.
inherited
destroy() → void
Destroy this object.
@mustCallSuper, inherited
enableEvents() → void
Enable the streaming of context events.
getEvent() SynthizerEvent?
Get the next Synthizer event.
getEvents({Duration duration = Duration.zero}) Stream<SynthizerEvent>
Get a stream of events. [...]
increaseReferenceCount() → void
Increase the reference count.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
pause() → void
Pause this object.
inherited
play() → void
Play this object.
inherited
removeRoute(SynthizerObject output, SynthizerObject input, {double fadeTime = 0.01}) → void
Remove an fx route.
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
Used to compare two objects.
inherited