Context class

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.
no setterinherited
defaultClosenessBoost SynthizerAutomatableDoubleProperty
The default closeness boost for this object.
no setter
defaultClosenessBoostDistance SynthizerAutomatableDoubleProperty
The default closeness boost distance for this object.
no setter
defaultDistanceMax SynthizerAutomatableDoubleProperty
The default distance max for this object.
no setter
defaultDistanceModel SynthizerDistanceModelProperty
The default distance model for this object.
no setter
defaultDistanceRef SynthizerAutomatableDoubleProperty
The default distance ref for this object.
no setter
defaultPannerStrategy SynthizerPannerStrategyProperty
The default panner strategy for this context.
no setter
defaultRolloff SynthizerAutomatableDoubleProperty
The default rolloff for this object.
no setter
events Stream<SynthizerEvent>
Get a stream of synthizer events.
no setter
gain SynthizerAutomatableDoubleProperty
The gain of this context.
no setter
handle Pointer<syz_Handle>
The handle for this object.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
isValid bool
Returns true if this object is still valid.
no setterinherited
orientation SynthizerDouble6Property
The orientation of this context.
no setter
position SynthizerDouble3Property
The position of this object.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
suggestedAutomationTime SynthizerDoubleProperty
The suggested automation time.
no setterinherited
synthizer Synthizer
The synthizer instance.
finalinherited

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.
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 nonexistent 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