X-Git-Url: https://code.delx.au/virtualtones/blobdiff_plain/fea523e103dc13f1f80f71d75fe4f88686566584..186e6de6a52f293a6169a5f7790ff03c6790c733:/stringinstrument.h diff --git a/stringinstrument.h b/stringinstrument.h index e88d29f..e7ca238 100644 --- a/stringinstrument.h +++ b/stringinstrument.h @@ -1,5 +1,5 @@ // stringinstrument.h - A stringed instrument simulator -// Written by James Bunton +// Written by James Bunton // Licensed under the GPL, see COPYING.txt for more details @@ -9,6 +9,11 @@ #include #include #include +#include +#include +#include +#include +#include #include "instrument.h" @@ -21,6 +26,9 @@ Q_OBJECT StringInstrument(QWidget *parent); ~StringInstrument(); + private slots: + void emitSounds(); + protected: QString generateHelp(); void paintEvent(QPaintEvent *); @@ -28,12 +36,9 @@ Q_OBJECT void keyReleaseEvent(QKeyEvent *); - void zeroArray(bool array[4][4]); - void zeroArray(bool array[4]); - void zeroArray(int array[4]); virtual void setNotes(int array[4])=0; // Set the base string notes - void copyArray(int source[4], int dest[4]); - void emitSounds(); + + QPixmap background; // Keys bool down[4][4];