diff options
author | Florian Jung <flo@windfisch.org> | 2011-05-25 17:27:35 +0000 |
---|---|---|
committer | Florian Jung <flo@windfisch.org> | 2011-05-25 17:27:35 +0000 |
commit | 3948032d0a2e439069d9a6859f7f35eebb54944d (patch) | |
tree | c4bb531ecdd05e21333cedacbf27ea01686e7b69 /muse2/muse/midiedit/dcanvas.h | |
parent | 5e47397a7d496b8dcc93e11b89cb0f9159f291e0 (diff) |
added step recording for drum edit
step-recording stuff has been put into a easy-to-use StepRec class
the midi-in and step-rec buttons are now fully functional again
Diffstat (limited to 'muse2/muse/midiedit/dcanvas.h')
-rw-r--r-- | muse2/muse/midiedit/dcanvas.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/muse2/muse/midiedit/dcanvas.h b/muse2/muse/midiedit/dcanvas.h index b86bc2d7..5a1fefeb 100644 --- a/muse2/muse/midiedit/dcanvas.h +++ b/muse2/muse/midiedit/dcanvas.h @@ -10,6 +10,7 @@ #include "ecanvas.h" #include "song.h" +#include "steprec.h" #define TH 18 @@ -40,7 +41,9 @@ class PianoRoll; //--------------------------------------------------------- class DrumCanvas : public EventCanvas { - + + StepRec* steprec; + // Cursor tool position QPoint cursorPos; int _stepSize; @@ -77,6 +80,9 @@ class DrumCanvas : public EventCanvas { signals: void newWidth(int); + private slots: + void midiNote(int pitch, int velo); + public slots: void mapChanged(int, int); void keyPressed(int, int); |