There's a lot of O(n^2) calculations going on in finding the BPM of the score at each bar when doing MIDI playback and export, due to the repeated use of bpmAtMeasureByIndex. It should be possible to do some sort of memoization or something to make this a bit more efficient.
There's a lot of O(n^2) calculations going on in finding the BPM of the score at each bar when doing MIDI playback and export, due to the repeated use of bpmAtMeasureByIndex. It should be possible to do some sort of memoization or something to make this a bit more efficient.