C# Class AlphaSynth.Main.AlphaSynthApi

This is the main JavaScript api wrapper for alphaSynth. It detects browser compatibility and initializes a alphaSynth version for the client. Compatibility: If a browser supports WebWorkers, we will use WebWorkers for Synthesizing the samples and a Flash player for playback If the browser does not support WebWorkers we'll use a pure Flash fallback which requires Flash 11.4 - IE6-9 - A pure flash alphaSynth is initialized (Requires Flash 11.4) - IE10-11 - Flash is used for playback, Synthesizing is done in a WebWorker - Firefox - Web Audio API is used for playback, Synthesizing is done in a WebWorker - Chrome - Web Audio API is used for playback, Synthesizing is done in a WebWorker - Safari - Web Audio API is used for playback, Synthesizing is done in a WebWorker - Opera - Web Audio API is used for playback, Synthesizing is done in a WebWorker
Inheritance: SharpKit.Html.HtmlContext, IAlphaSynthAsync
Mostra file Open project: CoderLine/alphaSynth

Public Methods

Method Description
AlphaSynthApi ( string alphaSynthScriptFile = "" ) : System
GetMasterVolume ( ) : void
GetPlaybackSpeed ( ) : void
GetState ( ) : 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, Action fn ) : void
Pause ( ) : void
Play ( ) : void
PlayPause ( ) : 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

Method Details

AlphaSynthApi() public method

public AlphaSynthApi ( string alphaSynthScriptFile = "" ) : System
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

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, Action fn ) : void
events string
fn 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

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