alphaTab.midi.MidiFile
Represents a midi file with a single track that can be played via AlphaSynth
class MidiFilePropertiesโ
divisionโ
Gets or sets the division per quarter notes.
- JavaScript
- C#
- Kotlin
division: number;double Division { get; set; }var division: Doubleeventsโ
Gets a list of midi events sorted by time.
formatโ
Gets or sets the midi file format to use.
- JavaScript
- C#
- Kotlin
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.
- JavaScript
- C#
- Kotlin
tickShift: number;double TickShift { get; set; }var tickShift: Doubletracksโ
Gets a list of midi tracks.
Methodsโ
addEventโ
Adds the given midi event a the correct time position into the file.
| Parameter | Summary |
|---|---|
eAll | (no description) |
toBinaryโ
Writes the midi file into a binary format.
- JavaScript
- C#
- Kotlin
toBinary(): Uint8ArrayUint8Array ToBinary()fun toBinary(): Uint8ArrayReturnsโ
The binary midi file.
writeToโ
Writes the midi file as binary into the given stream.
- JavaScript
- C#
- Kotlin
| Parameter | Summary |
|---|---|
sAll | (no description) |
Returnsโ
The stream to write to.
writeVariableIntโ
(no description)
- JavaScript
- C#
- Kotlin
static writeVariableInt(s: IWriteable, value: number): voidstatic void WriteVariableInt(IWriteable s, double value)fun writeVariableInt(s: IWriteable, value: Double): Unit| Parameter | Summary |
|---|---|
sAll | (no description) |
valueAll | (no description) |