Table of Contents

Interface IGpioModuleHandle

Namespace
SunSharp.Modules
Assembly
SunSharp.dll

With this module you can use the General-Purpose Input/Output (GPIO) pins of the device board. For example, you can send some signals to the LEDs, or receive the ON/OFF (1/0) messages from the buttons.

public interface IGpioModuleHandle : ITypedModuleHandle, IGenericSynthModuleHandle
Inherited Members

Methods

GetIn()

Original name: 3 'In'

Toggle GetIn()

Returns

Toggle

GetInAmplitude(ValueScalingMode)

Value range: displayed: 0 to 100, real: 0 to 100 Original name: 6 'In amplitude'

int GetInAmplitude(ValueScalingMode valueScalingMode = ValueScalingMode.Displayed)

Parameters

valueScalingMode ValueScalingMode

Returns

int

GetInNote(ValueScalingMode)

Original name: 5 'In note'

int GetInNote(ValueScalingMode valueScalingMode = ValueScalingMode.Displayed)

Parameters

valueScalingMode ValueScalingMode

Returns

int

GetInPin(ValueScalingMode)

Original name: 4 'In pin'

int GetInPin(ValueScalingMode valueScalingMode = ValueScalingMode.Displayed)

Parameters

valueScalingMode ValueScalingMode

Returns

int

GetOut()

Original name: 0 'Out'

Toggle GetOut()

Returns

Toggle

GetOutPin(ValueScalingMode)

Original name: 1 'Out pin'

int GetOutPin(ValueScalingMode valueScalingMode = ValueScalingMode.Displayed)

Parameters

valueScalingMode ValueScalingMode

Returns

int

GetOutThreshold(ValueScalingMode)

Value range: displayed: 0 to 100, real: 0 to 100 Original name: 2 'Out threshold'

int GetOutThreshold(ValueScalingMode valueScalingMode = ValueScalingMode.Displayed)

Parameters

valueScalingMode ValueScalingMode

Returns

int

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

PatternEvent MakeInAmplitudeEvent(int value)

Parameters

value int

Returns

PatternEvent

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

Parameters

value Toggle

Returns

PatternEvent

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

Parameters

value int

Returns

PatternEvent

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

Parameters

value int

Returns

PatternEvent

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

Parameters

value Toggle

Returns

PatternEvent

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

Parameters

value int

Returns

PatternEvent

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

PatternEvent MakeOutThresholdEvent(int value)

Parameters

value int

Returns

PatternEvent

SetIn(Toggle)

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

void SetIn(Toggle value)

Parameters

value Toggle

SetInAmplitude(int, ValueScalingMode)

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

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

Parameters

value int
valueScalingMode ValueScalingMode

SetInNote(int, ValueScalingMode)

Original name: 5 'In 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 SetInNote(int value, ValueScalingMode valueScalingMode = ValueScalingMode.Displayed)

Parameters

value int
valueScalingMode ValueScalingMode

SetInPin(int, ValueScalingMode)

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

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

Parameters

value int
valueScalingMode ValueScalingMode

SetOut(Toggle)

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

void SetOut(Toggle value)

Parameters

value Toggle

SetOutPin(int, ValueScalingMode)

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

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

Parameters

value int
valueScalingMode ValueScalingMode

SetOutThreshold(int, ValueScalingMode)

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

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

Parameters

value int
valueScalingMode ValueScalingMode