drumstick 2.3.1
pianokeybd.cpp
Go to the documentation of this file.
1/*
2 Virtual Piano Widget for Qt5
3 Copyright (C) 2008-2021, Pedro Lopez-Cabanillas <plcl@users.sf.net>
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 3 of the License, or
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License along
16 with this program; If not, see <http://www.gnu.org/licenses/>.
17*/
18
19#include <QApplication>
21#include "pianoscene.h"
22
34namespace drumstick { namespace widgets {
35
40 {Qt::Key_Z, 12},
41 {Qt::Key_S, 13},
42 {Qt::Key_X, 14},
43 {Qt::Key_D, 15},
44 {Qt::Key_C, 16},
45 {Qt::Key_V, 17},
46 {Qt::Key_G, 18},
47 {Qt::Key_B, 19},
48 {Qt::Key_H, 20},
49 {Qt::Key_N, 21},
50 {Qt::Key_J, 22},
51 {Qt::Key_M, 23},
52 {Qt::Key_Q, 24},
53 {Qt::Key_2, 25},
54 {Qt::Key_W, 26},
55 {Qt::Key_3, 27},
56 {Qt::Key_E, 28},
57 {Qt::Key_R, 29},
58 {Qt::Key_5, 30},
59 {Qt::Key_T, 31},
60 {Qt::Key_6, 32},
61 {Qt::Key_Y, 33},
62 {Qt::Key_7, 34},
63 {Qt::Key_U, 35},
64 {Qt::Key_I, 36},
65 {Qt::Key_9, 37},
66 {Qt::Key_O, 38},
67 {Qt::Key_0, 39},
68 {Qt::Key_P, 40}
69};
70
75#if defined(Q_OS_LINUX)
76 {94, 11},
77 {52, 12},
78 {39, 13},
79 {53, 14},
80 {40, 15},
81 {54, 16},
82 {55, 17},
83 {42, 18},
84 {56, 19},
85 {43, 20},
86 {57, 21},
87 {44, 22},
88 {58, 23},
89 {59, 24},
90 {46, 25},
91 {60, 26},
92 {47, 27},
93 {61, 28},
94
95 {24, 29},
96 {11, 30},
97 {25, 31},
98 {12, 32},
99 {26, 33},
100 {13, 34},
101 {27, 35},
102 {28, 36},
103 {15, 37},
104 {29, 38},
105 {16, 39},
106 {30, 40},
107 {31, 41},
108 {18, 42},
109 {32, 43},
110 {19, 44},
111 {33, 45},
112 {20, 46},
113 {34, 47},
114 {35, 48}
115#endif
116
117#if defined(Q_OS_WIN)
118 {86, 11},
119 {44, 12},
120 {31, 13},
121 {45, 14},
122 {32, 15},
123 {46, 16},
124 {47, 17},
125 {34, 18},
126 {48, 19},
127 {35, 20},
128 {49, 21},
129 {36, 22},
130 {50, 23},
131 {51, 24},
132 {38, 25},
133 {52, 26},
134 {39, 27},
135 {53, 28},
136
137 {16, 29},
138 {3, 30},
139 {17, 31},
140 {4, 32},
141 {18, 33},
142 {5, 34},
143 {19, 35},
144 {20, 36},
145 {7, 37},
146 {21, 38},
147 {8, 39},
148 {22, 40},
149 {23, 41},
150 {10, 42},
151 {24, 43},
152 {11, 44},
153 {25, 45},
154 {12, 46},
155 {26, 47},
156 {27, 48}
157#endif
158
159#if defined(Q_OS_MAC)
160 {50, 11},
161 {6, 12},
162 {1, 13},
163 {7, 14},
164 {2, 15},
165 {8, 16},
166 {9, 17},
167 {5, 18},
168 {11, 19},
169 {4, 20},
170 {45, 21},
171 {38, 22},
172 {46, 23},
173 {43, 24},
174 {37, 25},
175 {47, 26},
176 {41, 27},
177 {44, 28},
178
179 {12, 29},
180 {19, 30},
181 {13, 31},
182 {20, 32},
183 {14, 33},
184 {21, 34},
185 {15, 35},
186 {17, 36},
187 {22, 37},
188 {16, 38},
189 {26, 39},
190 {32, 40},
191 {34, 41},
192 {25, 42},
193 {31, 43},
194 {29, 44},
195 {35, 45},
196 {27, 46},
197 {33, 47},
198 {30, 48}
199#endif
200};
201
202class PianoKeybd::PianoKeybdPrivate {
203public:
204 PianoKeybdPrivate(): m_rotation(0), m_scene(nullptr), m_rawMap(nullptr)
205 { }
206 ~PianoKeybdPrivate() = default;
207
208 int m_rotation;
209 PianoScene *m_scene;
210 KeyboardMap *m_rawMap;
211};
212
220PianoKeybd::PianoKeybd(QWidget *parent)
221 : QGraphicsView(parent), d(new PianoKeybdPrivate())
222{
223 initialize();
225}
226
235PianoKeybd::PianoKeybd(const int baseOctave, const int numKeys, const int startKey, QWidget *parent)
236 : QGraphicsView(parent), d(new PianoKeybdPrivate)
237{
238 initialize();
239 initScene(baseOctave, numKeys, startKey);
240}
241
246{
247 d->m_scene->setRawKeyboardMode(false);
248 setKeyboardMap(nullptr);
249}
250
259{
260 return d->m_scene->getPianoHandler();
261}
262
272{
273 d->m_scene->setPianoHandler(handler);
274}
275
281{
282 return d->m_scene->getHighlightPalette();
283}
284
292{
293 d->m_scene->setHighlightPalette(p);
294}
295
301{
302 return d->m_scene->getBackgroundPalette();
303}
304
310{
311 d->m_scene->setBackgroundPalette(p);
312}
313
320{
321 return d->m_scene->getForegroundPalette();
322}
323
330{
331 d->m_scene->setForegroundPalette(p);
332}
333
339{
340 return d->m_scene->showColorScale();
341}
342
347void PianoKeybd::setShowColorScale(const bool show)
348{
349 d->m_scene->setShowColorScale(show);
350}
351
361void PianoKeybd::useCustomNoteNames(const QStringList &names)
362{
363 d->m_scene->useCustomNoteNames(names);
364}
365
371{
372 d->m_scene->useStandardNoteNames();
373}
374
380{
381 return d->m_scene->customNoteNames();
382}
383
389{
390 return d->m_scene->standardNoteNames();
391}
392
399{
400 d->m_scene->retranslate();
401}
402
410void PianoKeybd::initScene(int base, int num, int strt, const QColor& c)
411{
412 d->m_scene = new PianoScene(base, num, strt, c, this);
413 d->m_scene->setKeyboardMap(&g_DefaultKeyMap);
414 connect(d->m_scene, &PianoScene::noteOn, this, &PianoKeybd::noteOn);
415 connect(d->m_scene, &PianoScene::noteOff, this, &PianoKeybd::noteOff);
416 connect(d->m_scene, &PianoScene::signalName, this, &PianoKeybd::signalName);
417 setScene(d->m_scene);
418}
419
425{
426 setAttribute(Qt::WA_AcceptTouchEvents);
427 setAttribute(Qt::WA_InputMethodEnabled, false);
428 setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
429 setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
430 setViewportUpdateMode(MinimalViewportUpdate);
431 setRenderHints(QPainter::Antialiasing|QPainter::TextAntialiasing|QPainter::SmoothPixmapTransform);
432#if (QT_VERSION < QT_VERSION_CHECK(5,15,0))
433 setOptimizationFlag(DontClipPainter, true);
434#endif
435 setOptimizationFlag(DontSavePainterState, true);
436 setOptimizationFlag(DontAdjustForAntialiasing, true);
438}
439
445void PianoKeybd::resizeEvent(QResizeEvent *event)
446{
447 QGraphicsView::resizeEvent(event);
448 fitInView(d->m_scene->sceneRect(), Qt::KeepAspectRatio);
449}
450
457void PianoKeybd::setNumKeys(const int numKeys, const int startKey)
458{
459 //qDebug() << Q_FUNC_INFO << numKeys << startKey;
460 if ( numKeys != d->m_scene->numKeys() || startKey != d->m_scene->startKey() )
461 {
462 QByteArray dataBuffer;
463 int baseOctave = d->m_scene->baseOctave();
464 QColor color = d->m_scene->getKeyPressedColor();
465 PianoHandler* handler = d->m_scene->getPianoHandler();
466 KeyboardMap* keyMap = d->m_scene->getKeyboardMap();
467 d->m_scene->saveData(dataBuffer);
468 delete d->m_scene;
469 initScene(baseOctave, numKeys, startKey, color);
470 d->m_scene->loadData(dataBuffer);
471 d->m_scene->setPianoHandler(handler);
472 d->m_scene->setKeyboardMap(keyMap);
473 d->m_scene->hideOrShowKeys();
474 d->m_scene->refreshKeys();
475 d->m_scene->refreshLabels();
476 fitInView(d->m_scene->sceneRect(), Qt::KeepAspectRatio);
477 }
478}
479
485{
486 if (r != d->m_rotation) {
487 d->m_rotation = r;
488 resetTransform();
489 rotate(d->m_rotation);
490 fitInView(d->m_scene->sceneRect(), Qt::KeepAspectRatio);
491 }
492}
493
499{
500 return mapFromScene(sceneRect()).boundingRect().size();
501}
502
503// RAWKBD_SUPPORT
505{
506 if (d->m_scene->isKeyboardEnabled() && d->m_rawMap != nullptr && d->m_rawMap->contains(keycode)) {
507 d->m_scene->keyOn(d->m_rawMap->value(keycode));
508 return true;
509 }
510 return false;
511}
512
514{
515 if (d->m_scene->isKeyboardEnabled() && d->m_rawMap != nullptr && d->m_rawMap->contains(keycode)) {
516 d->m_scene->keyOff(d->m_rawMap->value(keycode));
517 return true;
518 }
519 return false;
520}
521
528void PianoKeybd::setKeyPicture(const bool natural, const QPixmap &pix)
529{
530 d->m_scene->setKeyPicture(natural, pix);
531}
532
538QPixmap PianoKeybd::getKeyPicture(const bool natural)
539{
540 return d->m_scene->getKeyPicture(natural);
541}
542
547void PianoKeybd::setUseKeyPictures(const bool enable)
548{
549 d->m_scene->setUseKeyPictures(enable);
550}
551
557{
558 return d->m_scene->getUseKeyPictures();
559}
560
566int PianoKeybd::baseOctave() const
567{
568 return d->m_scene->baseOctave();
569}
570
575void PianoKeybd::setBaseOctave(const int baseOctave)
576{
577 d->m_scene->setBaseOctave(baseOctave);
578}
579
585int PianoKeybd::numKeys() const
586{
587 return d->m_scene->numKeys();
588}
589
595{
596 return d->m_scene->startKey();
597}
598
604{
605 return d->m_rotation;
606}
607
613{
614 return d->m_scene->getKeyPressedColor();
615}
616
624{
625 d->m_scene->setKeyPressedColor(c);
626}
627
632{
633 d->m_scene->resetKeyPressedColor();
634}
635
641LabelVisibility PianoKeybd::showLabels() const
642{
643 return d->m_scene->showLabels();
644}
645
652{
653 d->m_scene->setShowLabels(show);
654}
655
662{
663 return d->m_scene->alterations();
664}
665
672{
673 d->m_scene->setAlterations(use);
674}
675
681LabelOrientation PianoKeybd::labelOrientation() const
682{
683 return d->m_scene->getOrientation();
684}
685
692{
693 d->m_scene->setOrientation(orientation);
694}
695
701LabelCentralOctave PianoKeybd::labelOctave() const
702{
703 return d->m_scene->getOctave();
704}
705
712{
713 d->m_scene->setOctave(octave);
714}
715
722{
723 return d->m_scene->getTranspose();
724}
725
732{
733 d->m_scene->setTranspose(t);
734}
735
741{
742 return d->m_scene->getChannel();
743}
744
749void PianoKeybd::setChannel(const int c)
750{
751 d->m_scene->setChannel(c);
752}
753
760{
761 return d->m_scene->getVelocity();
762}
763
769void PianoKeybd::setVelocity(const int v)
770{
771 d->m_scene->setVelocity(v);
772}
773
779{
780 return d->m_scene->isKeyboardEnabled();
781}
782
787void PianoKeybd::setKeyboardEnabled(const bool enable)
788{
789 d->m_scene->setKeyboardEnabled(enable);
790}
791
797{
798 return d->m_scene->isMouseEnabled();
799}
800
805void PianoKeybd::setMouseEnabled(const bool enable)
806{
807 d->m_scene->setMouseEnabled(enable);
808}
809
815{
816 return d->m_scene->isTouchEnabled();
817}
818
823void PianoKeybd::setTouchEnabled(const bool enable)
824{
825 d->m_scene->setTouchEnabled(enable);
826}
827
833{
834 return d->m_scene->velocityTint();
835}
836
841void PianoKeybd::setVelocityTint(const bool enable)
842{
843 //qDebug() << Q_FUNC_INFO << enable;
844 d->m_scene->setVelocityTint(enable);
845}
846
851{
852 d->m_scene->allKeysOff();
853}
854
860{
861 d->m_scene->setKeyboardMap(m);
862}
863
869{
870 return d->m_scene->getKeyboardMap();
871}
872
877{
878 d->m_rawMap = &g_DefaultRawKeyMap;
879}
880
886{
887 return d->m_scene->getRawKeyboardMode();
888}
889
895{
896 d->m_scene->setRawKeyboardMode(b);
897}
898
903{
904 d->m_scene->setKeyboardMap(&g_DefaultKeyMap);
905}
906
912{
913 d->m_rawMap = m;
914}
915
921{
922 return d->m_rawMap;
923}
924
931void PianoKeybd::showNoteOn(const int note, QColor color, int vel)
932{
933 d->m_scene->showNoteOn(note, color, vel);
934}
935
941void PianoKeybd::showNoteOn(const int note, int vel)
942{
943 d->m_scene->showNoteOn(note, vel);
944}
945
951void PianoKeybd::showNoteOff(const int note, int vel)
952{
953 d->m_scene->showNoteOff(note, vel);
954}
955
960void PianoKeybd::setFont(const QFont &font)
961{
962 QWidget::setFont(font);
963 d->m_scene->setFont(font);
964 d->m_scene->refreshLabels();
965}
966
967} // namespace widgets
968} // namespace drumstick
The QGraphicsView class provides a widget for displaying the contents of a QGraphicsScene.
The PianoHandler class callbacks.
Definition: pianokeybd.h:72
void initScene(int base, int num, int ini, const QColor &c=QColor())
Creates and initializes a new PianoScene instance and assigns it to this widget.
Definition: pianokeybd.cpp:410
void allKeysOff()
Forces all active notes to silence.
Definition: pianokeybd.cpp:850
virtual ~PianoKeybd()
Destructor.
Definition: pianokeybd.cpp:245
void resetKeyPressedColor()
Assigns the default highlight palette colors and assigns it to the scene.
Definition: pianokeybd.cpp:631
bool handleKeyReleased(int keycode) override
handleKeyReleased handles low level computer keyboard reelase events
Definition: pianokeybd.cpp:513
void setNumKeys(const int numKeys, const int startKey=DEFAULTSTARTINGKEY)
This method changes the number of displayed keys and the starting key number, keeping the other setti...
Definition: pianokeybd.cpp:457
PianoKeybd(QWidget *parent=nullptr)
Constructor.
Definition: pianokeybd.cpp:220
void setBackgroundPalette(const PianoPalette &p)
Assigns the palette used to paint the keys' background.
Definition: pianokeybd.cpp:309
void setRawKeyboardMode(const bool b)
Enables or disables the low level computer keyboard mode.
Definition: pianokeybd.cpp:894
void setFont(const QFont &font)
Assigns a typographic font for drawing the note labels over the piano keys.
Definition: pianokeybd.cpp:960
void initialize()
This method is called from the available constructors to initialize some widget attributes,...
Definition: pianokeybd.cpp:424
QSize sizeHint() const override
Overrides QGraphicsView::sizeHint() providing a size value based on the piano scene.
Definition: pianokeybd.cpp:498
void useStandardNoteNames()
Disables the custom note names usage as labels over the keys, and restores the standard note names in...
Definition: pianokeybd.cpp:370
bool isKeyboardEnabled() const
Returns whether the computer keyboard is enabled.
Definition: pianokeybd.cpp:778
void resetKeyboardMap()
Resets the low level computer keyboard note map to the default one.
Definition: pianokeybd.cpp:902
void setKeyPressedColor(const QColor &c)
Assigns a single color for key highlight.
Definition: pianokeybd.cpp:623
void setChannel(const int c)
Assigns the MIDI Channel (0-15).
Definition: pianokeybd.cpp:749
PianoPalette getForegroundPalette() const
Returns the palette used to paint texts over the keys like the note names or custom labels.
Definition: pianokeybd.cpp:319
bool getUseKeyPictures() const
Returns whether pictures are used to paint the keys.
Definition: pianokeybd.cpp:556
void setHighlightPalette(const PianoPalette &p)
Assigns the palette used for highlighting the played keys.
Definition: pianokeybd.cpp:291
void setShowColorScale(const bool show)
Enables or disables the color scale background palette.
Definition: pianokeybd.cpp:347
void setPianoHandler(PianoHandler *handler)
Assigns a PianoHandler pointer for processing note events.
Definition: pianokeybd.cpp:271
void setLabelOctave(const LabelCentralOctave octave)
Assigns the octave label policy.
Definition: pianokeybd.cpp:711
bool showColorScale() const
Returns true if the color scale background palette is assigned and active.
Definition: pianokeybd.cpp:338
void signalName(const QString &name)
signalName is emitted for each note created, and contains a string with the MIDI note number and the ...
void setKeyboardEnabled(const bool enable)
Enables or disables the computer keyboard note input.
Definition: pianokeybd.cpp:787
KeyboardMap * getRawKeyboardMap()
Returns the low level computer keyboard note map.
Definition: pianokeybd.cpp:920
PianoPalette getBackgroundPalette() const
Returns the palette used to paint the keys' background.
Definition: pianokeybd.cpp:300
void setRawKeyboardMap(KeyboardMap *m)
Assigns the low level computer keyboard note map.
Definition: pianokeybd.cpp:911
int getChannel() const
Returns the MIDI Channel (0-15).
Definition: pianokeybd.cpp:740
void setBaseOctave(const int baseOctave)
Assigns the base octave number.
Definition: pianokeybd.cpp:575
void setForegroundPalette(const PianoPalette &p)
Assigns the palette used to paint texts over the keys like the note names or custom labels.
Definition: pianokeybd.cpp:329
void setVelocityTint(const bool enable)
Enables or disables the note MIDI velocity influencing the highlight color tint.
Definition: pianokeybd.cpp:841
void setLabelAlterations(const LabelAlteration use)
Assigns the label alterations policy.
Definition: pianokeybd.cpp:671
void setKeyPicture(const bool natural, const QPixmap &pix)
Assigns a custom picture to the white or black keys that will be used as a texture to paint the keys.
Definition: pianokeybd.cpp:528
bool velocityTint() const
Returns whether the note MIDI velocity influences the highlight color tint.
Definition: pianokeybd.cpp:832
QColor getKeyPressedColor() const
Returns the key highlight color.
Definition: pianokeybd.cpp:612
void resizeEvent(QResizeEvent *event) override
This method overrides QGraphicsView::resizeEvent() to keep the aspect ratio of the keys scene when th...
Definition: pianokeybd.cpp:445
void noteOff(int midiNote, int vel)
This signal is emitted for each Note Off MIDI event created using the computer keyboard,...
bool handleKeyPressed(int keycode) override
handleKeyPressed handles low level computer keyboard press events
Definition: pianokeybd.cpp:504
void setKeyboardMap(KeyboardMap *m)
Assigns the computer keyboard note map.
Definition: pianokeybd.cpp:859
void showNoteOff(const int note, int vel=-1)
Shows inactive one note key with the specified velocity.
Definition: pianokeybd.cpp:951
void setShowLabels(const LabelVisibility show)
Assigns the label visibility policy.
Definition: pianokeybd.cpp:651
LabelAlteration labelAlterations() const
Returns the label alterations policy.
Definition: pianokeybd.cpp:661
PianoPalette getHighlightPalette() const
Returns the palette used for highlighting the played keys.
Definition: pianokeybd.cpp:280
QStringList standardNoteNames() const
Returns the list of standard note names.
Definition: pianokeybd.cpp:388
void noteOn(int midiNote, int vel)
This signal is emitted for each Note On MIDI event created using the computer keyboard,...
void resetRawKeyboardMap()
Resets the computer keyboard note map to the default one.
Definition: pianokeybd.cpp:876
PianoHandler * getPianoHandler() const
Gets the PianoHandler pointer to the note receiver.
Definition: pianokeybd.cpp:258
void setLabelOrientation(const LabelOrientation orientation)
Assigns the labels orientation policy.
Definition: pianokeybd.cpp:691
bool isMouseEnabled() const
Returns whether the mouse note input is enabled.
Definition: pianokeybd.cpp:796
bool getRawKeyboardMode() const
Returns the low level computer keyboard note map.
Definition: pianokeybd.cpp:885
void showNoteOn(const int note, QColor color, int vel=-1)
Highlights one note key with the specified color and velocity.
Definition: pianokeybd.cpp:931
void setRotation(int r)
Rotates the keyboard view an angle clockwise.
Definition: pianokeybd.cpp:484
QPixmap getKeyPicture(const bool natural)
Returns the custom picture used to paint the corresponding keys.
Definition: pianokeybd.cpp:538
void retranslate()
Updates the standard names of notes according to the currently active program language translation.
Definition: pianokeybd.cpp:398
int startKey() const
Returns the starting key note: C=0, A=9 and so on.
Definition: pianokeybd.cpp:594
void setTouchEnabled(const bool enable)
Enables or disables the touch screen note input.
Definition: pianokeybd.cpp:823
void useCustomNoteNames(const QStringList &names)
Assigns a list of custom text labels to be displayer over the keys.
Definition: pianokeybd.cpp:361
void setMouseEnabled(const bool enable)
Enables or disables the mouse note input.
Definition: pianokeybd.cpp:805
KeyboardMap * getKeyboardMap()
Returns the computer keyboard note map.
Definition: pianokeybd.cpp:868
void setUseKeyPictures(const bool enable)
Enables or disables a picture to paint the keys.
Definition: pianokeybd.cpp:547
int getRotation() const
Returns the rotation angle in degrees, clockwise, of the piano view.
Definition: pianokeybd.cpp:603
void setTranspose(int t)
Assigns the transpose amount in semitones.
Definition: pianokeybd.cpp:731
QStringList customNoteNames() const
Returns the list of custom note names.
Definition: pianokeybd.cpp:379
int getVelocity() const
Returns the MIDI note velocity.
Definition: pianokeybd.cpp:759
void setVelocity(const int v)
Assigns the MIDI note velocity.
Definition: pianokeybd.cpp:769
bool isTouchEnabled() const
Returns whether the touch screen note input is enabled.
Definition: pianokeybd.cpp:814
int getTranspose() const
Returns the transpose amount in semitones.
Definition: pianokeybd.cpp:721
The PianoPalette class.
Definition: pianopalette.h:61
The PianoScene class is a QGraphicsScene composed by a number of graphics items: the piano keys.
Definition: pianoscene.h:46
void noteOff(int n, int v)
This signal is emitted for each Note Off MIDI event created using the computer keyboard,...
void signalName(const QString &name)
signalName is emitted for each note created, and contains a string with the MIDI note number and the ...
void noteOn(int n, int v)
This signal is emitted for each Note On MIDI event created using the computer keyboard,...
LabelAlteration
Labels for Alterations.
Definition: pianokeybd.h:118
DRUMSTICK_EXPORT KeyboardMap g_DefaultKeyMap
Global Key Map Variable.
Definition: pianokeybd.cpp:39
LabelCentralOctave
Labels Central Octave.
Definition: pianokeybd.h:145
LabelVisibility
Labels Visibility.
Definition: pianokeybd.h:108
const int DEFAULTNUMBEROFKEYS
Default number of piano keys.
Definition: pianokeybd.h:103
LabelOrientation
Labels Orientation.
Definition: pianokeybd.h:127
const int DEFAULTSTARTINGKEY
Default starting key (A)
Definition: pianokeybd.h:101
QHash< int, int > KeyboardMap
KeyboardMap.
Definition: pianokeybd.h:96
DRUMSTICK_EXPORT KeyboardMap g_DefaultRawKeyMap
Global Raw Key Map Variable.
Definition: pianokeybd.cpp:74
const int DEFAULTBASEOCTAVE
Default base octave.
Definition: pianokeybd.h:102
Drumstick common.
Definition: alsaclient.cpp:68
Piano Keyboard Widget.
PianoScene class declaration.