Audacity Bug Summary
••• Introduction •••
••• Keywords •••
    Audacity 3.0.3 development began 19th April 2021

Audacity Bugzilla



Bug 1687 - Import MIDI sizing is inconsistent with Import Audio
Import MIDI sizing is inconsistent with Import Audio
Status: RESOLVED QUICKFIXED
Product: Audacity
Classification: Unclassified
Component: MIDI
2.2.0
Per OS Other
: P4 Repeatable
Assigned To: Default Assignee for New Bugs
: test_single_OS
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-07-16 07:36 UTC by Peter Sampson
Modified: 2018-08-20 11:51 UTC (History)
8 users (show)

See Also:
Steps To Reproduce:
1) New project 2) import a MIDI file (3 minutes) with File>Import MIDI 3) note that the project is not fit to window - but is default zoom level 4) new project 5) import a MIDI file (3 minutes) with File>Import Audio 6) now note that the project is zooned to "fit in window" 7) new project 8) import a WAV file (3 minutes) with File>Import Audio 9) note that the project is zoomed to "fit in window"
Release Note:
First Git SHA:
Group: ---
Workaround:
Closed: 2018-08-20 00:00:00
james.k.crook: Test‑OK‑Win+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Sampson 2017-07-16 07:36:03 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"
Comment 1 Paul L 2017-07-17 09:23:06 UTC
Is the real bug that importing MIDI as audio is wrongly permitted?
Comment 2 Steve Daulton 2017-07-17 09:33:27 UTC
(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.
Comment 3 Paul L 2017-07-19 21:16:42 UTC
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
Comment 4 Paul L 2017-07-19 21:17:30 UTC
Therefore steps to reproduce as stated can't now be done, but the problem remains as per Comment 2
Comment 6 James Crook 2017-07-20 09:47:59 UTC
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
Comment 7 Paul L 2017-07-20 09:51:58 UTC
You mean the vertical scrollbar?


(In reply to James Crook from comment #6)
Comment 8 James Crook 2017-07-20 09:57:05 UTC
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.