Class Effect.InsertionProcessor

Namespace
SpessaSharp.Synthesizer.Engine.Effects
Assembly
SpessaSharp.dll
public abstract class Effect.InsertionProcessor
Inheritance
Effect.InsertionProcessor
Derived
Inherited Members

Properties

SendLevelToChorus

0-1 (floating point)
This parameter sets the amount of insertion sound that will be sent to the chorus. Higher values result in more sound being sent.

public float SendLevelToChorus { get; set; }

Property Value

float

SendLevelToDelay

0-1 (floating point)
This parameter sets the amount of insertion sound that will be sent to the delay. Higher values result in more sound being sent.

public float SendLevelToDelay { get; set; }

Property Value

float

SendLevelToReverb

0-1 (floating point)
This parameter sets the amount of insertion sound that will be sent to the reverb. Higher values result in more sound being sent.

public float SendLevelToReverb { get; set; }

Property Value

float

Type

The EFX type of this processor, stored as MSB shl | LSB. For example 0x30, 0x10 is 0x3010

public abstract int Type { get; }

Property Value

int

Methods

Process(ReadOnlySpan<float>, ReadOnlySpan<float>, Span<float>, Span<float>, Span<float>, Span<float>, Span<float>, int, int)

Process the effect and ADDS it to the output.

public abstract void Process(ReadOnlySpan<float> inputLeft, ReadOnlySpan<float> inputRight, Span<float> outputLeft, Span<float> outputRight, Span<float> outputReverb, Span<float> outputChorus, Span<float> outputDelay, int startIndex, int sampleCount)

Parameters

inputLeft ReadOnlySpan<float>

The left input buffer to process. It always starts at index 0.

inputRight ReadOnlySpan<float>

The right input buffer to process. It always starts at index 0.

outputLeft Span<float>

The left output buffer.

outputRight Span<float>

The right output buffer.

outputReverb Span<float>

The mono input for reverb. It always starts at index 0.

outputChorus Span<float>

The mono input for chorus. It always starts at index 0.

outputDelay Span<float>

The mono input for delay. It always starts at index 0.

startIndex int

The index to start mixing at into the output buffers.

sampleCount int

The amount of samples to mix.

Reset()

Resets the params to their default values. This does not need to reset send levels.

public abstract void Reset()

SetParameter(int, int)

Sets an EFX parameter.

public abstract void SetParameter(int parameter, int value)

Parameters

parameter int

The parameter number (0x03-0x16).

value int

The new value (0-127).