Table of Contents

Interface IMultiControlModuleHandle

Namespace
SunSharp.Modules
Assembly
SunSharp.dll

With this module you can change the values of multiple controllers (in different modules) at once. Maximum number of connected controllers - 16.

public interface IMultiControlModuleHandle : ITypedModuleHandle, IGenericSynthModuleHandle
Inherited Members

Methods

GetGain(ValueScalingMode)

Value range: displayed: 0 to 1024, real: 0 to 1024 Original name: 1 'Gain'

int GetGain(ValueScalingMode valueScalingMode = ValueScalingMode.Displayed)

Parameters

valueScalingMode ValueScalingMode

Returns

int

GetOutOffset(ValueScalingMode)

Value range: displayed: -16384 to 16384, real: 0 to 32768 Original name: 3 'OUT offset'

int GetOutOffset(ValueScalingMode valueScalingMode = ValueScalingMode.Displayed)

Parameters

valueScalingMode ValueScalingMode

Returns

int

GetQuantization(ValueScalingMode)

Value range: displayed: 0 to 32768, real: 0 to 32768 Original name: 2 'Quantization'

int GetQuantization(ValueScalingMode valueScalingMode = ValueScalingMode.Displayed)

Parameters

valueScalingMode ValueScalingMode

Returns

int

GetResponse(ValueScalingMode)

Value range: displayed: 0 to 1000, real: 0 to 1000 Original name: 4 'Response'

int GetResponse(ValueScalingMode valueScalingMode = ValueScalingMode.Displayed)

Parameters

valueScalingMode ValueScalingMode

Returns

int

GetSampleRate(ValueScalingMode)

Value range: displayed: 1 to 32768, real: 1 to 32768 Original name: 5 'Sample rate'

int GetSampleRate(ValueScalingMode valueScalingMode = ValueScalingMode.Displayed)

Parameters

valueScalingMode ValueScalingMode

Returns

int

GetValue(ValueScalingMode)

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

int GetValue(ValueScalingMode valueScalingMode = ValueScalingMode.Displayed)

Parameters

valueScalingMode ValueScalingMode

Returns

int

MakeGainEvent(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 1024) to column range (0 to 0x8000). Out of range values are clamped.

PatternEvent MakeGainEvent(int value)

Parameters

value int

Returns

PatternEvent

MakeOutOffsetEvent(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 (-16384 to 16384) to column range (0 to 0x8000). Out of range values are clamped.

PatternEvent MakeOutOffsetEvent(int value)

Parameters

value int

Returns

PatternEvent

MakeQuantizationEvent(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 MakeQuantizationEvent(int value)

Parameters

value int

Returns

PatternEvent

MakeResponseEvent(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 1000) to column range (0 to 0x8000). Out of range values are clamped.

PatternEvent MakeResponseEvent(int value)

Parameters

value int

Returns

PatternEvent

MakeSampleRateEvent(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 (1 to 32768) to column range (0 to 0x8000). Out of range values are clamped.

PatternEvent MakeSampleRateEvent(int value)

Parameters

value int

Returns

PatternEvent

MakeValueEvent(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 MakeValueEvent(int value)

Parameters

value int

Returns

PatternEvent

ReadCurveValueMap(float[])

Modifies values.

Read from curve 0 of MultiControl.

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

Parameters

buffer float[]

Returns

int

SetGain(int, ValueScalingMode)

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

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

Parameters

value int
valueScalingMode ValueScalingMode

SetOutOffset(int, ValueScalingMode)

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

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

Parameters

value int
valueScalingMode ValueScalingMode

SetQuantization(int, ValueScalingMode)

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

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

Parameters

value int
valueScalingMode ValueScalingMode

SetResponse(int, ValueScalingMode)

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

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

Parameters

value int
valueScalingMode ValueScalingMode

SetSampleRate(int, ValueScalingMode)

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

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

Parameters

value int
valueScalingMode ValueScalingMode

SetValue(int, ValueScalingMode)

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

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

Parameters

value int
valueScalingMode ValueScalingMode

WriteCurveValueMap(float[])

Modifies values.

Write to curve 0 of MultiControl.

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

Parameters

buffer float[]

Returns

int