C# Class AlphaSynth.Main.AlphaSynthWebWorkerApiBase

This class implements a JavaScript API for initializing and controlling a WebWorker based alphaSynth which uses the given player as output.
Inheritance: SharpKit.Html.HtmlContext, IAlphaSynthAsync
Show file Open project: CoderLine/alphaSynth

Public Methods

Method Description
AlphaSynthWebWorkerApiBase ( ISynthOutput player, string alphaSynthScriptFile ) : System
GetMasterVolume ( ) : void
GetPlaybackSpeed ( ) : void
GetState ( ) : void
HandleWorkerMessage ( SharpKit.Html.DOMEvent e ) : void
IsMidiLoaded ( ) : void
IsReadyForPlay ( ) : void
IsSoundFontLoaded ( ) : void
LoadMidiBytes ( byte data ) : void
LoadMidiUrl ( string url ) : void
LoadSoundFontBytes ( byte data ) : void
LoadSoundFontUrl ( string url ) : void
On ( string events, System.Action action ) : void
Pause ( ) : void
Play ( ) : void
PlayPause ( ) : void
PlayerFinished ( ) : void
PlayerPositionChanged ( int pos ) : void
PlayerSampleRequest ( ) : void
SetLogLevel ( LogLevel level ) : void
SetMasterVolume ( float volume ) : void
SetPlaybackSpeed ( float playbackSpeed ) : void
SetPositionTick ( int tick ) : void
SetPositionTime ( int millis ) : void
Startup ( ) : void
Stop ( ) : void

Private Methods

Method Description
CheckForReadyState ( ) : void
CreateWorkerUrl ( ) : string
Log ( LogLevel level, string message ) : void
PlayerReadyChanged ( bool isReady ) : void
QualifyUrl ( string url ) : string
TriggerEvent ( string name, object args = null ) : void

Method Details

AlphaSynthWebWorkerApiBase() public method

public AlphaSynthWebWorkerApiBase ( ISynthOutput player, string alphaSynthScriptFile ) : System
player ISynthOutput
alphaSynthScriptFile string
return System

GetMasterVolume() public method

public GetMasterVolume ( ) : void
return void

GetPlaybackSpeed() public method

public GetPlaybackSpeed ( ) : void
return void

GetState() public method

public GetState ( ) : void
return void

HandleWorkerMessage() public method

public HandleWorkerMessage ( SharpKit.Html.DOMEvent e ) : void
e SharpKit.Html.DOMEvent
return void

IsMidiLoaded() public method

public IsMidiLoaded ( ) : void
return void

IsReadyForPlay() public method

public IsReadyForPlay ( ) : void
return void

IsSoundFontLoaded() public method

public IsSoundFontLoaded ( ) : void
return void

LoadMidiBytes() public method

public LoadMidiBytes ( byte data ) : void
data byte
return void

LoadMidiUrl() public method

public LoadMidiUrl ( string url ) : void
url string
return void

LoadSoundFontBytes() public method

public LoadSoundFontBytes ( byte data ) : void
data byte
return void

LoadSoundFontUrl() public method

public LoadSoundFontUrl ( string url ) : void
url string
return void

On() public method

public On ( string events, System.Action action ) : void
events string
action System.Action
return void

Pause() public method

public Pause ( ) : void
return void

Play() public method

public Play ( ) : void
return void

PlayPause() public method

public PlayPause ( ) : void
return void

PlayerFinished() public method

public PlayerFinished ( ) : void
return void

PlayerPositionChanged() public method

public PlayerPositionChanged ( int pos ) : void
pos int
return void

PlayerSampleRequest() public method

public PlayerSampleRequest ( ) : void
return void

SetLogLevel() public method

public SetLogLevel ( LogLevel level ) : void
level LogLevel
return void

SetMasterVolume() public method

public SetMasterVolume ( float volume ) : void
volume float
return void

SetPlaybackSpeed() public method

public SetPlaybackSpeed ( float playbackSpeed ) : void
playbackSpeed float
return void

SetPositionTick() public method

public SetPositionTick ( int tick ) : void
tick int
return void

SetPositionTime() public method

public SetPositionTime ( int millis ) : void
millis int
return void

Startup() public method

public Startup ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void