Bugzilla – Bug 1687
Import MIDI sizing is inconsistent with Import Audio
Last modified: 2018-08-20 11:51:29 UTC
When importing MIDI as a MIDI file into a Note track it is not zoomed to "fit in window" which is the normal behavior for importing audio, rather it is imported and displayed at default zoom level. If you import the MIDI file as "Audio" it does get zoomed to "fit in Window"
Is the real bug that importing MIDI as audio is wrongly permitted?
(In reply to Paul L from comment #1) No, the bug is that: * On importing audio (any audio), Audacity automatically zooms to fit the project. * On importing MIDI, Audacity does not zoom to fit. As MIDI tracks are now playable tracks (on Windows), this appears inconsistent. I notice also that imported label tracks do not zoom to fit, which probably they should, though that is a less 'in your face' inconsistency as labels are not playable tracks.
Regardless, it was a loose end that we wanted to prohibit importing MIDI as audio, even when FFmpeg will do it without reporting errors, but making a bad rendering. That is done here. https://github.com/audacity/audacity/commit/cfab325af2b8f656945344d4e770604589341c92
Therefore steps to reproduce as stated can't now be done, but the problem remains as per Comment 2
And here's the actual fix. https://github.com/audacity/audacity/commit/cfeb7bced169f960e71275a90bfd6f3ad88e501c
Tested on Windows (and with/without importing audio too and wit/without an empty track). Track is correctly sized. Scrollbar gives more latitude to scroll than I would expect, but that is really not a problem worth reporting. RESOLVED QUICKFIXED
You mean the vertical scrollbar? (In reply to James Crook from comment #6)
Re Comment #7. No, the horizontal scrollbar. It gives a couple of TCP's width of extra scrolling. Just the same as 'Fit to Width'. Not an issue, and probably useful to have it, e.g. if subsequently making edits and additions.