From 3948032d0a2e439069d9a6859f7f35eebb54944d Mon Sep 17 00:00:00 2001 From: Florian Jung Date: Wed, 25 May 2011 17:27:35 +0000 Subject: 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 --- muse2/muse/midiedit/dcanvas.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'muse2/muse/midiedit/dcanvas.h') 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); -- cgit v1.2.3