diff options
Diffstat (limited to 'src/midimapper.h')
-rw-r--r-- | src/midimapper.h | 16 |
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__*/ |