25 static const int pianoWidth = 40;
26 static const int keyHeight = 13;
51 virtual void paintEvent(QPaintEvent*);
52 virtual void mousePressEvent(QMouseEvent*);
53 virtual void mouseReleaseEvent(QMouseEvent*);
54 virtual void mouseMoveEvent(QMouseEvent* event);
55 virtual void leaveEvent(QEvent*);
61 void pitchChanged(
int);
62 void keyPressed(
int pitch);
63 void keyReleased(
int pitch);
66 void setYpos(
int val);
67 void setMag(
double,
double);
71 Piano(QWidget* parent = 0);
static QPixmap * mk3
Definition: piano.h:48
int curKeyPressed
Definition: piano.h:43
int y2pitch(qreal y, ClefType clef, qreal _spatium)
Definition: utils.cpp:404
static QPixmap * mk1
Definition: piano.h:46
static QPixmap * mk4
Definition: piano.h:49
double _ymag
Definition: piano.h:38
static QPixmap * octave
Definition: piano.h:45
PianoOrientation
Definition: piano.h:28
Definition: aeolus.cpp:26
int yRange
Definition: piano.h:41
int _ypos
Definition: piano.h:39
int curPitch
Definition: piano.h:42
static QPixmap * mk2
Definition: piano.h:47
int pitch2y(int pitch, int enh, int clefOffset, int key, int &prefix, const char *tversatz)
PianoOrientation _orientation
Definition: piano.h:37