Я хочу создать MIDI-файл с проектом AlphaTab в C#.
var score = LoadScoreFromBytes(File.ReadAllBytes("d:\\1.gp5"), new AlphaTab.Settings());
var newMidi = new MidiFile();
var generator = new MidiFileGenerator(
score,
new AlphaTab.Settings(),
new AlphaSynthMidiFileHandler(newMidi));
generator.Generate();
var midiBinary = newMidi.ToBinary();
// Here , I want to write byte[] to a midi file and play that.