Skip to main content

alphaTab.synth.AlphaSynth

This is the main synthesizer component which can be used to play a MidiFile via a ISynthOutput .

 class AlphaSynth extends AlphaSynthBase

Properties​

countInVolume​

(no description) (Inherited from AlphaSynthBase )

countInVolume: number;

currentPosition​

(no description) (Inherited from AlphaSynthBase )

readonly currentPosition: PositionChangedEventArgs;

finished​

(no description) (Inherited from AlphaSynthBase )

readonly finished: IEventEmitter;

isLooping​

(no description) (Inherited from AlphaSynthBase )

isLooping: boolean;

isReady​

(no description) (Inherited from AlphaSynthBase )

isReady: boolean;

isReadyForPlayback​

(no description) (Inherited from AlphaSynthBase )

readonly isReadyForPlayback: boolean;

loadedMidiInfo​

(no description) (Inherited from AlphaSynthBase )

readonly loadedMidiInfo: PositionChangedEventArgs | undefined;

logLevel​

(no description) (Inherited from AlphaSynthBase )

logLevel: LogLevel;

masterVolume​

(no description) (Inherited from AlphaSynthBase )

masterVolume: number;

metronomeVolume​

(no description) (Inherited from AlphaSynthBase )

metronomeVolume: number;

midiEventsPlayed​

(no description) (Inherited from AlphaSynthBase )

readonly midiEventsPlayed: IEventEmitterOfT<MidiEventsPlayedEventArgs>;

midiEventsPlayedFilter​

(no description) (Inherited from AlphaSynthBase )

midiEventsPlayedFilter: MidiEventType[];

midiLoaded​

(no description) (Inherited from AlphaSynthBase )

midiLoadFailed​

(no description) (Inherited from AlphaSynthBase )

readonly midiLoadFailed: IEventEmitterOfT<Error>;

output​

(no description) (Inherited from AlphaSynthBase )

readonly output: ISynthOutput;

playbackRange​

(no description) (Inherited from AlphaSynthBase )

playbackRange: PlaybackRange | null;

playbackRangeChanged​

(no description) (Inherited from AlphaSynthBase )

readonly playbackRangeChanged: IEventEmitterOfT<PlaybackRangeChangedEventArgs>;

playbackSpeed​

(no description) (Inherited from AlphaSynthBase )

playbackSpeed: number;

positionChanged​

(no description) (Inherited from AlphaSynthBase )

ready​

(no description) (Inherited from AlphaSynthBase )

readonly ready: IEventEmitter;

readyForPlayback​

(no description) (Inherited from AlphaSynthBase )

readonly readyForPlayback: IEventEmitter;

soundFontLoaded​

(no description) (Inherited from AlphaSynthBase )

readonly soundFontLoaded: IEventEmitter;

soundFontLoadFailed​

(no description) (Inherited from AlphaSynthBase )

readonly soundFontLoadFailed: IEventEmitterOfT<Error>;

state​

(no description) (Inherited from AlphaSynthBase )

state: PlayerState;

stateChanged​

(no description) (Inherited from AlphaSynthBase )

tickPosition​

(no description) (Inherited from AlphaSynthBase )

tickPosition: number;

timePosition​

(no description) (Inherited from AlphaSynthBase )

timePosition: number;

Methods​

applyTranspositionPitches​

(no description) (Inherited from AlphaSynthBase )

applyTranspositionPitches(transpositionPitches: Map<number, number>): void
ParameterSummary
transpositionPitchesAll

(no description)

destroy​

(no description) (Inherited from AlphaSynthBase )

destroy(): void

exportAudio​

Creates a new audio exporter, initialized with the given data.

exportAudio(options: AudioExportOptions, midi: MidiFile, syncPoints: BackingTrackSyncPoint[], mainTranspositionPitches: Map<number, number>): IAlphaSynthAudioExporter
ParameterSummary
optionsAll

The export options to use. The track volume and transposition pitches must lists must be filled with midi channels.

midiAll

The midi file to use.

syncPointsAll

The sync points to use

mainTranspositionPitchesAll

(no description)

loadBackingTrack​

(no description) (Inherited from AlphaSynthBase )

loadBackingTrack(_score: Score): void
ParameterSummary
_scoreAll

(no description)

loadMidiFile​

Loads the given midi file for playback. (Inherited from AlphaSynthBase )

loadMidiFile(midi: MidiFile): void
ParameterSummary
midiAll

The midi file to load

loadSoundFont​

(no description) (Inherited from AlphaSynthBase )

loadSoundFont(data: Uint8Array, append: boolean): void
ParameterSummary
dataAll

(no description)

appendAll

(no description)

pause​

(no description) (Inherited from AlphaSynthBase )

pause(): void

play​

(no description) (Inherited from AlphaSynthBase )

play(): boolean

playOneTimeMidiFile​

(no description) (Inherited from AlphaSynthBase )

playOneTimeMidiFile(midi: MidiFile): void
ParameterSummary
midiAll

(no description)

playPause​

(no description) (Inherited from AlphaSynthBase )

playPause(): void

resetChannelStates​

(no description) (Inherited from AlphaSynthBase )

resetChannelStates(): void

resetSoundFonts​

(no description) (Inherited from AlphaSynthBase )

resetSoundFonts(): void

setChannelMute​

(no description) (Inherited from AlphaSynthBase )

setChannelMute(channel: number, mute: boolean): void
ParameterSummary
channelAll

(no description)

muteAll

(no description)

setChannelSolo​

(no description) (Inherited from AlphaSynthBase )

setChannelSolo(channel: number, solo: boolean): void
ParameterSummary
channelAll

(no description)

soloAll

(no description)

setChannelTranspositionPitch​

(no description) (Inherited from AlphaSynthBase )

setChannelTranspositionPitch(channel: number, semitones: number): void
ParameterSummary
channelAll

(no description)

semitonesAll

(no description)

setChannelVolume​

(no description) (Inherited from AlphaSynthBase )

setChannelVolume(channel: number, volume: number): void
ParameterSummary
channelAll

(no description)

volumeAll

(no description)

stop​

(no description) (Inherited from AlphaSynthBase )

stop(): void

updateSyncPoints​

(no description) (Inherited from AlphaSynthBase )

updateSyncPoints(_syncPoints: BackingTrackSyncPoint[]): void
ParameterSummary
_syncPointsAll

(no description)