20 #ifndef __PIANO_KEYBOARD_H__ 21 #define __PIANO_KEYBOARD_H__ 29 static const int PIANO_KEYBOARD_WIDTH = 100;
30 static const int BLACK_KEY_WIDTH = PIANO_KEYBOARD_WIDTH * 9 / 14;
int _ypos
Definition: pianokeyboard.h:46
Global staff data not directly related to drawing.
Definition: staff.h:62
int noteHeight
Definition: pianokeyboard.h:48
void keyReleased(int pitch)
Staff * staff()
Definition: pianokeyboard.h:72
int curKeyPressed
Definition: pianokeyboard.h:51
void setOrientation(PianoOrientation)
Definition: pianokeyboard.cpp:335
const double X_ZOOM_RATIO
Definition: pianokeyboard.h:35
virtual void leaveEvent(QEvent *)
Definition: pianokeyboard.cpp:311
PianoOrientation _orientation
Definition: pianokeyboard.h:45
void keyPressed(int pitch)
int curPitch
Definition: pianokeyboard.h:50
void setNoteHeight(int)
Definition: pianokeyboard.cpp:223
void setStaff(Staff *staff)
Definition: pianokeyboard.cpp:325
void setYpos(int val)
Definition: pianokeyboard.cpp:211
void setPitch(int)
Definition: pianokeyboard.cpp:235
PianoOrientation
Definition: piano.h:28
Definition: aeolus.cpp:26
const int MIN_KEY_HEIGHT
Definition: pianokeyboard.h:32
Staff * _staff
Definition: pianokeyboard.h:52
const int BEAT_WIDTH_IN_PIXELS
Definition: pianokeyboard.h:34
virtual void mousePressEvent(QMouseEvent *)
Definition: pianokeyboard.cpp:247
const int DEFAULT_KEY_HEIGHT
Definition: pianokeyboard.h:33
const int MAX_KEY_HEIGHT
Definition: pianokeyboard.h:31
virtual void paintEvent(QPaintEvent *)
Definition: pianokeyboard.cpp:60
virtual void mouseMoveEvent(QMouseEvent *event)
Definition: pianokeyboard.cpp:274
int yRange
Definition: pianokeyboard.h:49
static const QString pitchNames[]
Definition: pianokeyboard.h:43
virtual void mouseReleaseEvent(QMouseEvent *)
Definition: pianokeyboard.cpp:264
Definition: pianokeyboard.h:40
const double X_ZOOM_INITIAL
Definition: pianokeyboard.h:36
PianoKeyboard(QWidget *parent=0)
Definition: pianokeyboard.cpp:38