MidiFile Class

Summary

Represents a midi file with a single track that can be played via AlphaSynth
Namespace
AlphaTab.Audio.Synth.Midi
Base Types
  • object
graph TD Base0["object"]-->Type Type["MidiFile"] class Type type-node

Syntax

public class MidiFile

Constructors

Name Summary
MidiFile() Initializes a new instance of the MidiFile class.

Properties

Name Value Summary
Division int
Gets or sets the division per quarter notes.
Events FastList<T>
Gets a list of midi events sorted by time.

Methods

Name Value Summary
AddEvent(MidiEvent) void
Adds the given midi event a the correct time position into the file.
ToBinary() byte[]
Writes the midi file into a binary format.
WriteTo(IWriteable) void
Writes the midi file as binary into the given stream.