Class SynthesizerSnapshot

Namespace
SpessaSharp.Synthesizer.Engine
Assembly
SpessaSharp.dll

Represents a snapshot of the synthesizer's state.

public sealed class SynthesizerSnapshot
Inheritance
SynthesizerSnapshot
Inherited Members

Constructors

SynthesizerSnapshot(ChannelSnapshot[], KeyModifier?[]?[], GlobalMidiParameter[], BitArray, GlobalSystemParameter[], ReverbProcessorSnapshot, ChorusProcessorSnapshot, DelayProcessorSnapshot, InsertionProcessorSnapshot)

Represents a snapshot of the synthesizer's state.

public SynthesizerSnapshot(ChannelSnapshot[] midiChannels, KeyModifier?[]?[] keyMappings, GlobalMidiParameter[] midiParameters, BitArray lockedParameters, GlobalSystemParameter[] systemParameters, Effect.ReverbProcessorSnapshot reverbProcessor, Effect.ChorusProcessorSnapshot chorusProcessor, Effect.DelayProcessorSnapshot delayProcessor, Effect.InsertionProcessorSnapshot insertionProcessorProcessor)

Parameters

midiChannels ChannelSnapshot[]
keyMappings KeyModifier?[][]
midiParameters GlobalMidiParameter[]
lockedParameters BitArray
systemParameters GlobalSystemParameter[]
reverbProcessor Effect.ReverbProcessorSnapshot
chorusProcessor Effect.ChorusProcessorSnapshot
delayProcessor Effect.DelayProcessorSnapshot
insertionProcessorProcessor Effect.InsertionProcessorSnapshot

Fields

ChorusProcessor

public readonly Effect.ChorusProcessorSnapshot ChorusProcessor

Field Value

Effect.ChorusProcessorSnapshot

DelayProcessor

public readonly Effect.DelayProcessorSnapshot DelayProcessor

Field Value

Effect.DelayProcessorSnapshot

InsertionProcessor

public Effect.InsertionProcessorSnapshot InsertionProcessor

Field Value

Effect.InsertionProcessorSnapshot

KeyMappings

Key modifiers.

public readonly KeyModifier?[]?[] KeyMappings

Field Value

KeyModifier?[][]

LockedParameters

public readonly BitArray LockedParameters

Field Value

BitArray

MidiChannels

The individual channel snapshots.

public readonly ChannelSnapshot[] MidiChannels

Field Value

ChannelSnapshot[]

MidiParameters

public readonly GlobalMidiParameter[] MidiParameters

Field Value

GlobalMidiParameter[]

ReverbProcessor

public readonly Effect.ReverbProcessorSnapshot ReverbProcessor

Field Value

Effect.ReverbProcessorSnapshot

SystemParameters

public readonly GlobalSystemParameter[] SystemParameters

Field Value

GlobalSystemParameter[]

Methods

Apply(Synthesizer)

Applies the snapshot to the synthesizer.

public void Apply(Synthesizer synth)

Parameters

synth Synthesizer

The processor to apply the snapshot to.

Get(Synthesizer)

Creates a new synthesizer snapshot from the given SpessaSynthProcessor.

public static SynthesizerSnapshot Get(Synthesizer synth)

Parameters

synth Synthesizer

The processor to take a snapshot of.

Returns

SynthesizerSnapshot

The snapshot.