summaryrefslogtreecommitdiff
path: root/plugingui/drumkittab.h
diff options
context:
space:
mode:
authorAndré Nusser <andre.nusser@googlemail.com>2018-06-09 17:37:23 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2018-08-12 11:13:51 +0200
commit31dd927c43f72e76ecb61ea02a7832698b7a9496 (patch)
treec5edd7e3d698a95812e4b752c1a387899d6d1cd5 /plugingui/drumkittab.h
parent873a12d313541e6c82ec9995473bb6f43e7667e8 (diff)
Add map to get instrument name from colour.
Diffstat (limited to 'plugingui/drumkittab.h')
-rw-r--r--plugingui/drumkittab.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugingui/drumkittab.h b/plugingui/drumkittab.h
index c53d3f5..5fe234a 100644
--- a/plugingui/drumkittab.h
+++ b/plugingui/drumkittab.h
@@ -26,6 +26,7 @@
*/
#pragma once
+#include <unordered_map>
#include <memory>
#include <string>
@@ -59,6 +60,7 @@ public:
private:
float current_velocity = .5;
+ std::unordered_map<Colour, std::string, ColourHasher> colour_to_instrument;
std::unique_ptr<Image> drumkit_image;
std::unique_ptr<Image> map_image;