1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-19 17:40:15 +02:00

NoteTrack, extreme vertical zoom-in: limit top & bottom margin height

This commit is contained in:
Paul Licameli 2017-07-19 11:28:14 -04:00
parent d256bfedd2
commit bba9b9986d

View File

@ -134,7 +134,7 @@ class AUDACITY_DLL_API NoteTrack final
void Zoom(const wxRect &rect, int y, int amount, bool center);
void ZoomTo(const wxRect &rect, int start, int end);
int GetNoteMargin(int height) const
{ return std::min(height / 3, (mPitchHeight + 1) / 2); }
{ return std::min(height / 4, (mPitchHeight + 1) / 2); }
int GetOctaveHeight() const { return mPitchHeight * 12 + 2; }
// call this once before a series of calls to IPitchToY(). It
// sets mBottom to offset of octave 0 so that mBottomNote