Juce 5 Midi File unrecognizable


#1

I’m not able to produce a recognizable Midi file with Huckleberry. I had to revert to Grapefruit. Can anyone reproduce this? Has something change with midiFile?

	MidiFile midiFile;
	midiFile.addTrack(*midiMessageSequence);
	midiFile.setTicksPerQuarterNote(960);

	FileOutputStream outputStream(savedFile);
	midiFile.writeTo(outputStream);

#3

I am seeing similar behavior.

With JUCE 5, after creating a midi file using WriteTo, when I try to read it using ReadFrom, JUCE crashes with an access violation from a memcpy in MidiMessage while it is trying to readNextTrack.


#4

Try reverting this commit:

Rail


#5

My issue has been fixed after this change was committed today:

https://github.com/WeAreROLI/JUCE/commit/171aa9421573b8b712f146b5eee2da06794d4460