Table of Contents

Interface IVelocityToControlModuleHandle

Namespace
SunSharp.Modules
Assembly
SunSharp.dll

This module converts the velocity parameter of the incoming notes to the controller values (in some another connected module).

public interface IVelocityToControlModuleHandle : ITypedModuleHandle, IGenericSynthModuleHandle
Inherited Members

Methods

GetOnNoteoff()

Original name: 0 'On NoteOFF'

VelocityToControlOnNoteOff GetOnNoteoff()

Returns

VelocityToControlOnNoteOff

GetOutController(ValueScalingMode)

Original name: 4 'OUT controller'

int GetOutController(ValueScalingMode valueScalingMode = ValueScalingMode.Displayed)

Parameters

valueScalingMode ValueScalingMode

Returns

int

GetOutMax(ValueScalingMode)

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

int GetOutMax(ValueScalingMode valueScalingMode = ValueScalingMode.Displayed)

Parameters

valueScalingMode ValueScalingMode

Returns

int

GetOutMin(ValueScalingMode)

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

int GetOutMin(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

MakeOnNoteoffEvent(VelocityToControlOnNoteOff)

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 MakeOnNoteoffEvent(VelocityToControlOnNoteOff value)

Parameters

value VelocityToControlOnNoteOff

Returns

PatternEvent

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

Parameters

value int

Returns

PatternEvent

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

Parameters

value int

Returns

PatternEvent

MakeOutMinEvent(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 MakeOutMinEvent(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

SetOnNoteoff(VelocityToControlOnNoteOff)

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

void SetOnNoteoff(VelocityToControlOnNoteOff value)

Parameters

value VelocityToControlOnNoteOff

SetOutController(int, ValueScalingMode)

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

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

Parameters

value int
valueScalingMode ValueScalingMode

SetOutMax(int, ValueScalingMode)

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

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

Parameters

value int
valueScalingMode ValueScalingMode

SetOutMin(int, ValueScalingMode)

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

void SetOutMin(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