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
midiChannelsChannelSnapshot[]keyMappingsKeyModifier?[][]midiParametersGlobalMidiParameter[]lockedParametersBitArraysystemParametersGlobalSystemParameter[]reverbProcessorEffect.ReverbProcessorSnapshotchorusProcessorEffect.ChorusProcessorSnapshotdelayProcessorEffect.DelayProcessorSnapshotinsertionProcessorProcessorEffect.InsertionProcessorSnapshot
Fields
ChorusProcessor
public readonly Effect.ChorusProcessorSnapshot ChorusProcessor
Field Value
DelayProcessor
public readonly Effect.DelayProcessorSnapshot DelayProcessor
Field Value
InsertionProcessor
public Effect.InsertionProcessorSnapshot InsertionProcessor
Field Value
KeyMappings
Key modifiers.
public readonly KeyModifier?[]?[] KeyMappings
Field Value
- KeyModifier?[][]
LockedParameters
public readonly BitArray LockedParameters
Field Value
MidiChannels
The individual channel snapshots.
public readonly ChannelSnapshot[] MidiChannels
Field Value
MidiParameters
public readonly GlobalMidiParameter[] MidiParameters
Field Value
ReverbProcessor
public readonly Effect.ReverbProcessorSnapshot ReverbProcessor
Field Value
SystemParameters
public readonly GlobalSystemParameter[] SystemParameters
Field Value
Methods
Apply(Synthesizer)
Applies the snapshot to the synthesizer.
public void Apply(Synthesizer synth)
Parameters
synthSynthesizerThe processor to apply the snapshot to.
Get(Synthesizer)
Creates a new synthesizer snapshot from the given SpessaSynthProcessor.
public static SynthesizerSnapshot Get(Synthesizer synth)
Parameters
synthSynthesizerThe processor to take a snapshot of.
Returns
- SynthesizerSnapshot
The snapshot.