Struct Synthesizer.Options
- Namespace
- SpessaSharp.Synthesizer
- Assembly
- SpessaSharp.dll
The maximum buffer size the synthesizer can render at once.
Attempting to .Process() more samples than this will result in an error.
Defaults to 128.
public readonly record struct Synthesizer.Options : IEquatable<Synthesizer.Options>
- Implements
- Inherited Members
Constructors
Options(int, bool, float, bool, ReverbProcessor?, ChorusProcessor?, DelayProcessor?)
The maximum buffer size the synthesizer can render at once.
Attempting to .Process() more samples than this will result in an error.
Defaults to 128.
public Options(int MaxBufferSize, bool EventsEnabled, float InitialTime, bool EffectsEnabled, Effect.ReverbProcessor? ReverbProcessor = null, Effect.ChorusProcessor? ChorusProcessor = null, Effect.DelayProcessor? DelayProcessor = null)
Parameters
MaxBufferSizeintEventsEnabledboolIndicates if the event system is enabled. This can be changed later.
InitialTimefloatThe initial time of the synth, in seconds.
EffectsEnabledboolIndicates if the effects are enabled. This can be changed later.
ReverbProcessorEffect.ReverbProcessorReverb processor for the synthesizer. Leave undefined to use the default.
ChorusProcessorEffect.ChorusProcessorChorus processor for the synthesizer. Leave undefined to use the default.
DelayProcessorEffect.DelayProcessorDelay processor for the synthesizer. Leave undefined to use the default.
Fields
Default
public static readonly Synthesizer.Options Default
Field Value
Properties
ChorusProcessor
Chorus processor for the synthesizer. Leave undefined to use the default.
public Effect.ChorusProcessor? ChorusProcessor { get; init; }
Property Value
DelayProcessor
Delay processor for the synthesizer. Leave undefined to use the default.
public Effect.DelayProcessor? DelayProcessor { get; init; }
Property Value
EffectsEnabled
Indicates if the effects are enabled. This can be changed later.
public bool EffectsEnabled { get; init; }
Property Value
EventsEnabled
Indicates if the event system is enabled. This can be changed later.
public bool EventsEnabled { get; init; }
Property Value
InitialTime
The initial time of the synth, in seconds.
public float InitialTime { get; init; }
Property Value
MaxBufferSize
public int MaxBufferSize { get; init; }
Property Value
ReverbProcessor
Reverb processor for the synthesizer. Leave undefined to use the default.
public Effect.ReverbProcessor? ReverbProcessor { get; init; }