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)