Table of Contents

Interface IControlToNoteModuleHandle

Namespace
SunSharp.Modules
Assembly
SunSharp.dll

Ctl2Note converts the value of the 'Pitch' controller to a note (Note ON/OFF commands at the output).

public interface IControlToNoteModuleHandle : ITypedModuleHandle, IGenericSynthModuleHandle
Inherited Members

Methods

GetFineTune(ValueScalingMode)

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

int GetFineTune(ValueScalingMode valueScalingMode = ValueScalingMode.Displayed)

Parameters

valueScalingMode ValueScalingMode

Returns

int

GetFirstNote(ValueScalingMode)

Original name: 1 'First note'

int GetFirstNote(ValueScalingMode valueScalingMode = ValueScalingMode.Displayed)

Parameters

valueScalingMode ValueScalingMode

Returns

int

GetNoteoff()

Original name: 8 'NoteOFF'

ControlToNoteOffBehaviour GetNoteoff()

Returns

ControlToNoteOffBehaviour

GetNoteon()

Original name: 7 'NoteON'

ControlToNoteOnBehaviour GetNoteon()

Returns

ControlToNoteOnBehaviour

GetPitch(ValueScalingMode)

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

int GetPitch(ValueScalingMode valueScalingMode = ValueScalingMode.Displayed)

Parameters

valueScalingMode ValueScalingMode

Returns

int

GetRangeNumberOfSemitones(ValueScalingMode)

Original name: 2 'Range (number of semitones)'

int GetRangeNumberOfSemitones(ValueScalingMode valueScalingMode = ValueScalingMode.Displayed)

Parameters

valueScalingMode ValueScalingMode

Returns

int

GetRecordNotes()

Original name: 9 'Record notes'

Toggle GetRecordNotes()

Returns

Toggle

GetState()

Original name: 6 'State'

Toggle GetState()

Returns

Toggle

GetTranspose(ValueScalingMode)

Original name: 3 '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: 5 'Velocity'

int GetVelocity(ValueScalingMode valueScalingMode = ValueScalingMode.Displayed)

Parameters

valueScalingMode ValueScalingMode

Returns

int

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

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

Parameters

value int

Returns

PatternEvent

MakeNoteoffEvent(ControlToNoteOffBehaviour)

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 MakeNoteoffEvent(ControlToNoteOffBehaviour value)

Parameters

value ControlToNoteOffBehaviour

Returns

PatternEvent

MakeNoteonEvent(ControlToNoteOnBehaviour)

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 MakeNoteonEvent(ControlToNoteOnBehaviour value)

Parameters

value ControlToNoteOnBehaviour

Returns

PatternEvent

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

Parameters

value int

Returns

PatternEvent

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

Parameters

value int

Returns

PatternEvent

MakeRecordNotesEvent(Toggle)

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 MakeRecordNotesEvent(Toggle value)

Parameters

value Toggle

Returns

PatternEvent

MakeStateEvent(Toggle)

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 MakeStateEvent(Toggle value)

Parameters

value Toggle

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

SetFineTune(int, ValueScalingMode)

Value range: displayed: -256 to 256, real: 0 to 512 Original name: 4 '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

SetFirstNote(int, ValueScalingMode)

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

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

Parameters

value int
valueScalingMode ValueScalingMode

SetNoteoff(ControlToNoteOffBehaviour)

Original name: 8 '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 SetNoteoff(ControlToNoteOffBehaviour value)

Parameters

value ControlToNoteOffBehaviour

SetNoteon(ControlToNoteOnBehaviour)

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

void SetNoteon(ControlToNoteOnBehaviour value)

Parameters

value ControlToNoteOnBehaviour

SetPitch(int, ValueScalingMode)

Value range: displayed: 0 to 32768, real: 0 to 32768 Original name: 0 '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 SetPitch(int value, ValueScalingMode valueScalingMode = ValueScalingMode.Displayed)

Parameters

value int
valueScalingMode ValueScalingMode

SetRangeNumberOfSemitones(int, ValueScalingMode)

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

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

Parameters

value int
valueScalingMode ValueScalingMode

SetRecordNotes(Toggle)

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

void SetRecordNotes(Toggle value)

Parameters

value Toggle

SetState(Toggle)

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

void SetState(Toggle value)

Parameters

value Toggle

SetTranspose(int, ValueScalingMode)

Original name: 3 '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: 5 '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