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:
parent
d256bfedd2
commit
bba9b9986d
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user