![]() |
Audacity 3.2.0
|
Data used to display a note track. More...
#include <NoteTrack.h>
Public Member Functions | |
NoteTrackDisplayData (const NoteTrack *track, const wxRect &r) | |
int | GetPitchHeight (int factor) const |
int | GetNoteMargin () const |
int | GetOctaveHeight () const |
int | IPitchToY (int p) const |
int | GetOctaveBottom (int oct) const |
int | PitchToY (double p) const |
int | YToIPitch (int y) const |
int | GetNotePos (int p) const |
int | GetBlackPos (int i) const |
int | GetWhitePos (int i) const |
Private Types | |
enum | { MinPitchHeight = 1 , MaxPitchHeight = 25 } |
Private Attributes | |
float | mPitchHeight |
int | mBottom |
int | mMargin |
Data used to display a note track.
Definition at line 264 of file NoteTrack.h.
|
private |
NoteTrackDisplayData::NoteTrackDisplayData | ( | const NoteTrack * | track, |
const wxRect & | r | ||
) |
Definition at line 1137 of file NoteTrack.cpp.
References NoteTrack::GetBottomNote(), GetNoteMargin(), GetNotePos(), GetOctaveHeight(), GetPitchHeight(), NoteTrack::GetTopNote(), MaxPitchHeight, mBottom, min(), MinPitchHeight, mMargin, and mPitchHeight.
|
inline |
Definition at line 300 of file NoteTrack.h.
References GetNotePos().
|
inline |
Definition at line 279 of file NoteTrack.h.
References mMargin.
Referenced by NoteTrackDisplayData().
|
inline |
Definition at line 297 of file NoteTrack.h.
References GetPitchHeight().
Referenced by GetBlackPos(), IPitchToY(), and NoteTrackDisplayData().
|
inline |
Definition at line 285 of file NoteTrack.h.
References GetPitchHeight(), and IPitchToY().
|
inline |
Definition at line 280 of file NoteTrack.h.
References GetPitchHeight().
Referenced by GetWhitePos(), IPitchToY(), NoteTrackDisplayData(), and YToIPitch().
|
inline |
Definition at line 277 of file NoteTrack.h.
References mPitchHeight.
Referenced by GetNotePos(), GetOctaveBottom(), GetOctaveHeight(), and NoteTrackDisplayData().
|
inline |
Definition at line 304 of file NoteTrack.h.
References GetOctaveHeight().
int NoteTrackDisplayData::IPitchToY | ( | int | p | ) | const |
Definition at line 1175 of file NoteTrack.cpp.
References GetNotePos(), GetOctaveHeight(), and mBottom.
Referenced by GetOctaveBottom(), and PitchToY().
|
inline |
Definition at line 289 of file NoteTrack.h.
References IPitchToY().
int NoteTrackDisplayData::YToIPitch | ( | int | y | ) | const |
Definition at line 1178 of file NoteTrack.cpp.
References GetOctaveHeight(), mBottom, and mPitchHeight.
Referenced by NoteTrack::Zoom(), and NoteTrack::ZoomTo().
|
private |
Definition at line 270 of file NoteTrack.h.
Referenced by IPitchToY(), NoteTrackDisplayData(), and YToIPitch().
|
private |
Definition at line 271 of file NoteTrack.h.
Referenced by GetNoteMargin(), and NoteTrackDisplayData().
|
private |
Definition at line 266 of file NoteTrack.h.
Referenced by GetPitchHeight(), NoteTrackDisplayData(), and YToIPitch().