Table of Contents

Interface IMultiSynthModuleHandle

Namespace
SunSharp.Modules
Assembly
SunSharp.dll

This module sends the incoming events (notes, pitch change, phase change) to any number of connected modules (receivers).

public interface IMultiSynthModuleHandle : ITypedModuleHandle, IGenericSynthModuleHandle
Inherited Members

Methods

GetCurve2Influence(ValueScalingMode)

Value range: displayed: 0 to 256, real: 0 to 256 Original name: 7 'Curve2 influence'

int GetCurve2Influence(ValueScalingMode valueScalingMode = ValueScalingMode.Displayed)

Parameters

valueScalingMode ValueScalingMode

Returns

int

GetFineTune(ValueScalingMode)

Value range: displayed: -256 to 256, real: 0 to 512 Original name: 3 'Finetune'

int GetFineTune(ValueScalingMode valueScalingMode = ValueScalingMode.Displayed)

Parameters

valueScalingMode ValueScalingMode

Returns

int

GetPhase(ValueScalingMode)

Value range: displayed: 0 to 32768, real: 0 to 32768 Original name: 6 'Phase'

int GetPhase(ValueScalingMode valueScalingMode = ValueScalingMode.Displayed)

Parameters

valueScalingMode ValueScalingMode

Returns

int

GetRandomPhase(ValueScalingMode)

Value range: displayed: 0 to 32768, real: 0 to 32768 Original name: 4 'Random phase'

int GetRandomPhase(ValueScalingMode valueScalingMode = ValueScalingMode.Displayed)

Parameters

valueScalingMode ValueScalingMode

Returns

int

GetRandomPitch(ValueScalingMode)

Value range: displayed: 0 to 4096, real: 0 to 4096 Original name: 1 'Random pitch'

int GetRandomPitch(ValueScalingMode valueScalingMode = ValueScalingMode.Displayed)

Parameters

valueScalingMode ValueScalingMode

Returns

int

GetRandomVelocity(ValueScalingMode)

Value range: displayed: 0 to 32768, real: 0 to 32768 Original name: 5 'Random velocity'

int GetRandomVelocity(ValueScalingMode valueScalingMode = ValueScalingMode.Displayed)

Parameters

valueScalingMode ValueScalingMode

Returns

int

GetTranspose(ValueScalingMode)

Original name: 0 'Transpose'

int GetTranspose(ValueScalingMode valueScalingMode = ValueScalingMode.Displayed)

Parameters

valueScalingMode ValueScalingMode

Returns

int

GetVelocity(ValueScalingMode)

Value range: displayed: 0 to 256, real: 0 to 256 Original name: 2 'Velocity'

int GetVelocity(ValueScalingMode valueScalingMode = ValueScalingMode.Displayed)

Parameters

valueScalingMode ValueScalingMode

Returns

int

MakeCurve2InfluenceEvent(int)

This is a helper method to automatically handle turning target controller values into column values.

For this controller the input value is mapped from displayed range (0 to 256) to column range (0 to 0x8000). Out of range values are clamped.

PatternEvent MakeCurve2InfluenceEvent(int value)

Parameters

value int

Returns

PatternEvent

MakeFineTuneEvent(int)

This is a helper method to automatically handle turning target controller values into column values.

For this controller the input value is mapped from displayed range (-256 to 256) to column range (0 to 0x8000). Out of range values are clamped.

PatternEvent MakeFineTuneEvent(int value)

Parameters

value int

Returns

PatternEvent

MakePhaseEvent(int)

This is a helper method to automatically handle turning target controller values into column values.

For this controller the input value is mapped from displayed range (0 to 32768) to column range (0 to 0x8000). Out of range values are clamped.

PatternEvent MakePhaseEvent(int value)

Parameters

value int

Returns

PatternEvent

MakeRandomPhaseEvent(int)

This is a helper method to automatically handle turning target controller values into column values.

For this controller the input value is mapped from displayed range (0 to 32768) to column range (0 to 0x8000). Out of range values are clamped.

PatternEvent MakeRandomPhaseEvent(int value)

Parameters

value int

Returns

PatternEvent

MakeRandomPitchEvent(int)

This is a helper method to automatically handle turning target controller values into column values.

For this controller the input value is mapped from displayed range (0 to 4096) to column range (0 to 0x8000). Out of range values are clamped.

PatternEvent MakeRandomPitchEvent(int value)

Parameters

value int

Returns

PatternEvent

MakeRandomVelocityEvent(int)

This is a helper method to automatically handle turning target controller values into column values.

For this controller the input value is mapped from displayed range (0 to 32768) to column range (0 to 0x8000). Out of range values are clamped.

PatternEvent MakeRandomVelocityEvent(int value)

Parameters

value int

Returns

PatternEvent

MakeTransposeEvent(int)

This is a helper method to automatically handle turning target controller values into column values.

For this controller the input value is taken as is, only clamped to column value range.

PatternEvent MakeTransposeEvent(int value)

Parameters

value int

Returns

PatternEvent

MakeVelocityEvent(int)

This is a helper method to automatically handle turning target controller values into column values.

For this controller the input value is mapped from displayed range (0 to 256) to column range (0 to 0x8000). Out of range values are clamped.

PatternEvent MakeVelocityEvent(int value)

Parameters

value int

Returns

PatternEvent

ReadCurveNoteToPitch(float[])

Map incoming note to a pitch value.

Read from curve 2 of MultiSynth.

The curve contains 128 values in range of 0.2500038 to 0.74610513.
int ReadCurveNoteToPitch(float[] buffer)

Parameters

buffer float[]

Returns

int

ReadCurveNoteToVelocity(float[])

Velocity to apply to arriving note.

Read from curve 0 of MultiSynth.

The curve contains 128 values in range of 0 to 1.
int ReadCurveNoteToVelocity(float[] buffer)

Parameters

buffer float[]

Returns

int

ReadCurveVelocityToVelocity(float[])

Map velocity values.

Read from curve 1 of MultiSynth.

The curve contains 257 values in range of 0 to 1.
int ReadCurveVelocityToVelocity(float[] buffer)

Parameters

buffer float[]

Returns

int

SetCurve2Influence(int, ValueScalingMode)

Value range: displayed: 0 to 256, real: 0 to 256 Original name: 7 'Curve2 influence' Note: equivalent SendEvent(int, PatternEvent) will be used internally, which may introduce latency. It will also be affected by the event timestamp set.

void SetCurve2Influence(int value, ValueScalingMode valueScalingMode = ValueScalingMode.Displayed)

Parameters

value int
valueScalingMode ValueScalingMode

SetFineTune(int, ValueScalingMode)

Value range: displayed: -256 to 256, real: 0 to 512 Original name: 3 'Finetune' Note: equivalent SendEvent(int, PatternEvent) will be used internally, which may introduce latency. It will also be affected by the event timestamp set.

void SetFineTune(int value, ValueScalingMode valueScalingMode = ValueScalingMode.Displayed)

Parameters

value int
valueScalingMode ValueScalingMode

SetPhase(int, ValueScalingMode)

Value range: displayed: 0 to 32768, real: 0 to 32768 Original name: 6 'Phase' Note: equivalent SendEvent(int, PatternEvent) will be used internally, which may introduce latency. It will also be affected by the event timestamp set.

void SetPhase(int value, ValueScalingMode valueScalingMode = ValueScalingMode.Displayed)

Parameters

value int
valueScalingMode ValueScalingMode

SetRandomPhase(int, ValueScalingMode)

Value range: displayed: 0 to 32768, real: 0 to 32768 Original name: 4 'Random phase' Note: equivalent SendEvent(int, PatternEvent) will be used internally, which may introduce latency. It will also be affected by the event timestamp set.

void SetRandomPhase(int value, ValueScalingMode valueScalingMode = ValueScalingMode.Displayed)

Parameters

value int
valueScalingMode ValueScalingMode

SetRandomPitch(int, ValueScalingMode)

Value range: displayed: 0 to 4096, real: 0 to 4096 Original name: 1 'Random pitch' Note: equivalent SendEvent(int, PatternEvent) will be used internally, which may introduce latency. It will also be affected by the event timestamp set.

void SetRandomPitch(int value, ValueScalingMode valueScalingMode = ValueScalingMode.Displayed)

Parameters

value int
valueScalingMode ValueScalingMode

SetRandomVelocity(int, ValueScalingMode)

Value range: displayed: 0 to 32768, real: 0 to 32768 Original name: 5 'Random velocity' Note: equivalent SendEvent(int, PatternEvent) will be used internally, which may introduce latency. It will also be affected by the event timestamp set.

void SetRandomVelocity(int value, ValueScalingMode valueScalingMode = ValueScalingMode.Displayed)

Parameters

value int
valueScalingMode ValueScalingMode

SetTranspose(int, ValueScalingMode)

Original name: 0 'Transpose' Note: equivalent SendEvent(int, PatternEvent) will be used internally, which may introduce latency. It will also be affected by the event timestamp set.

void SetTranspose(int value, ValueScalingMode valueScalingMode = ValueScalingMode.Displayed)

Parameters

value int
valueScalingMode ValueScalingMode

SetVelocity(int, ValueScalingMode)

Value range: displayed: 0 to 256, real: 0 to 256 Original name: 2 'Velocity' Note: equivalent SendEvent(int, PatternEvent) will be used internally, which may introduce latency. It will also be affected by the event timestamp set.

void SetVelocity(int value, ValueScalingMode valueScalingMode = ValueScalingMode.Displayed)

Parameters

value int
valueScalingMode ValueScalingMode

WriteCurveNoteToPitch(float[])

Map incoming note to a pitch value.

Write to curve 2 of MultiSynth.

The curve contains 128 values in range of 0.2500038 to 0.74610513.
int WriteCurveNoteToPitch(float[] buffer)

Parameters

buffer float[]

Returns

int

WriteCurveNoteToVelocity(float[])

Velocity to apply to arriving note.

Write to curve 0 of MultiSynth.

The curve contains 128 values in range of 0 to 1.
int WriteCurveNoteToVelocity(float[] buffer)

Parameters

buffer float[]

Returns

int

WriteCurveVelocityToVelocity(float[])

Map velocity values.

Write to curve 1 of MultiSynth.

The curve contains 257 values in range of 0 to 1.
int WriteCurveVelocityToVelocity(float[] buffer)

Parameters

buffer float[]

Returns

int