Skip to main content

alphaTab.midi.AlphaSynthMidiFileHandler

This implementation of the IMidiFileHandler generates a MidiFile object which can be used in AlphaSynth for playback.

 class AlphaSynthMidiFileHandler implements IMidiFileHandler

Properties​

tickShift​

An indicator by how many midi-ticks the song contents are shifted. Grace beats at start might require a shift for the first beat to start at 0. This information can be used to translate back the player time axis to the music notation.

tickShift: number;

Methods​

addBend​

(no description)

addBend(track: number, tick: number, channel: number, value: number): void
ParameterSummary
trackAll

(no description)

tickAll

(no description)

channelAll

(no description)

valueAll

(no description)

addControlChange​

(no description)

addControlChange(track: number, tick: number, channel: number, controller: ControllerType, value: number): void
ParameterSummary
trackAll

(no description)

tickAll

(no description)

channelAll

(no description)

controllerAll

(no description)

valueAll

(no description)

addNote​

(no description)

addNote(track: number, start: number, length: number, key: number, velocity: number, channel: number): void
ParameterSummary
trackAll

(no description)

startAll

(no description)

lengthAll

(no description)

keyAll

(no description)

velocityAll

(no description)

channelAll

(no description)

addNoteBend​

(no description)

addNoteBend(track: number, tick: number, channel: number, key: number, value: number): void
ParameterSummary
trackAll

(no description)

tickAll

(no description)

channelAll

(no description)

keyAll

(no description)

valueAll

(no description)

addProgramChange​

(no description)

addProgramChange(track: number, tick: number, channel: number, program: number): void
ParameterSummary
trackAll

(no description)

tickAll

(no description)

channelAll

(no description)

programAll

(no description)

addRest​

(no description)

addRest(track: number, tick: number, channel: number): void
ParameterSummary
trackAll

(no description)

tickAll

(no description)

channelAll

(no description)

addTempo​

(no description)

addTempo(tick: number, tempo: number): void
ParameterSummary
tickAll

(no description)

tempoAll

(no description)

addTickShift​

(no description)

addTickShift(tickShift: number): void
ParameterSummary
tickShiftAll

(no description)

addTimeSignature​

(no description)

addTimeSignature(tick: number, timeSignatureNumerator: number, timeSignatureDenominator: number): void
ParameterSummary
tickAll

(no description)

timeSignatureNumeratorAll

(no description)

timeSignatureDenominatorAll

(no description)

finishTrack​

(no description)

finishTrack(track: number, tick: number): void
ParameterSummary
trackAll

(no description)

tickAll

(no description)