summaryrefslogtreecommitdiff
path: root/src/midimapper.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2011-08-08 22:19:46 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2011-08-08 22:19:46 +0200
commit2289074fe008a0d1a8d05f44a12a405351aad506 (patch)
treef79089a47b6c7269a5d60b5d5b7608fef05135d6 /src/midimapper.h
parent08a41cf525193e90ce8f397476ac3825e5e9fdb8 (diff)
New midimapper.
Diffstat (limited to 'src/midimapper.h')
-rw-r--r--src/midimapper.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/midimapper.h b/src/midimapper.h
index c600d4f..74c268c 100644
--- a/src/midimapper.h
+++ b/src/midimapper.h
@@ -27,20 +27,18 @@
#ifndef __DRUMGIZMO_MIDIMAPPER_H__
#define __DRUMGIZMO_MIDIMAPPER_H__
-#include <jack/midiport.h>
-
-#include "drumkit.h"
-
#include <map>
+#include <string>
+
+typedef std::map<int, std::string> midimap_t;
+typedef std::map<std::string, int> instrmap_t;
class MidiMapper {
public:
- MidiMapper(DrumKit *drumkit);
-
- Sample *map(jack_midi_event_t event);
+ int lookup(int note);
-private:
- DrumKit *drumkit;
+ instrmap_t instrmap;
+ midimap_t midimap;
};
#endif/*__DRUMGIZMO_MIDIMAPPER_H__*/