Table of Contents

Interface IVorbisPlayerModuleHandle

Namespace
SunSharp.Modules
Assembly
SunSharp.dll

OGG Vorbis player.

public interface IVorbisPlayerModuleHandle : ITypedModuleHandle, IGenericSynthModuleHandle
Inherited Members

Methods

GetAudioFineTune(ValueScalingMode)

Value range: displayed: -128 to 128, real: -128 to 128 Original name: 2 'Finetune'

int GetAudioFineTune(ValueScalingMode valueScalingMode = ValueScalingMode.Displayed)

Parameters

valueScalingMode ValueScalingMode

Returns

int

GetAudioTranspose(ValueScalingMode)

Original name: 3 'Transpose'

int GetAudioTranspose(ValueScalingMode valueScalingMode = ValueScalingMode.Displayed)

Parameters

valueScalingMode ValueScalingMode

Returns

int

GetIgnoreNoteOff()

Original name: 7 'Ignore Note OFF'

Toggle GetIgnoreNoteOff()

Returns

Toggle

GetInterpolation()

Original name: 4 'Interpolation'

Toggle GetInterpolation()

Returns

Toggle

GetOriginalSpeed()

Original name: 1 'Original speed'

Toggle GetOriginalSpeed()

Returns

Toggle

GetPolyphony(ValueScalingMode)

Original name: 5 'Polyphony'

int GetPolyphony(ValueScalingMode valueScalingMode = ValueScalingMode.Displayed)

Parameters

valueScalingMode ValueScalingMode

Returns

int

GetRepeat()

Original name: 6 'Repeat'

Toggle GetRepeat()

Returns

Toggle

GetVolume(ValueScalingMode)

Value range: displayed: 0 to 512, real: 0 to 512 Original name: 0 'Volume'

int GetVolume(ValueScalingMode valueScalingMode = ValueScalingMode.Displayed)

Parameters

valueScalingMode ValueScalingMode

Returns

int

LoadAudio(byte[])

Load a file into the Vorbis Player. Supported file formats: ogg.

void LoadAudio(byte[] data)

Parameters

data byte[]

Byte array with audio file data.

Remarks

Exceptions

SunVoxException

Thrown when the operation fails.

ArgumentNullException

Thrown if data is null.

LoadAudio(string)

Load a file into the Vorbis Player. Supported file formats: ogg.

void LoadAudio(string path)

Parameters

path string

File path (relative or absolute).

Remarks

Exceptions

SunVoxException

Thrown when the operation fails.

ArgumentNullException

Thrown if path is null.

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

PatternEvent MakeAudioFineTuneEvent(int value)

Parameters

value int

Returns

PatternEvent

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

Parameters

value int

Returns

PatternEvent

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

Parameters

value Toggle

Returns

PatternEvent

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

Parameters

value Toggle

Returns

PatternEvent

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

Parameters

value Toggle

Returns

PatternEvent

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

Parameters

value int

Returns

PatternEvent

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

Parameters

value Toggle

Returns

PatternEvent

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

PatternEvent MakeVolumeEvent(int value)

Parameters

value int

Returns

PatternEvent

SetAudioFineTune(int, ValueScalingMode)

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

Parameters

value int
valueScalingMode ValueScalingMode

SetAudioTranspose(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 SetAudioTranspose(int value, ValueScalingMode valueScalingMode = ValueScalingMode.Displayed)

Parameters

value int
valueScalingMode ValueScalingMode

SetIgnoreNoteOff(Toggle)

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

void SetIgnoreNoteOff(Toggle value)

Parameters

value Toggle

SetInterpolation(Toggle)

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

void SetInterpolation(Toggle value)

Parameters

value Toggle

SetOriginalSpeed(Toggle)

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

void SetOriginalSpeed(Toggle value)

Parameters

value Toggle

SetPolyphony(int, ValueScalingMode)

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

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

Parameters

value int
valueScalingMode ValueScalingMode

SetRepeat(Toggle)

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

void SetRepeat(Toggle value)

Parameters

value Toggle

SetVolume(int, ValueScalingMode)

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

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

Parameters

value int
valueScalingMode ValueScalingMode