summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNils Brederlow <62596379+dingodoppelt@users.noreply.github.com>2022-02-04 21:03:54 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2022-02-04 21:03:54 +0100
commit34ea89b44eb9c4b1f45dfd1ec22381dacc5d81c0 (patch)
tree94d472f351d68c5844e94b80cee99e58f83e542e
parent76d649620c321d94cf8fcbe8ee5f006ffd191b14 (diff)
Add test for CC to note to midimappertest.cc
-rw-r--r--test/midimappertest.cc22
1 files changed, 20 insertions, 2 deletions
diff --git a/test/midimappertest.cc b/test/midimappertest.cc
index 703c646..391045a 100644
--- a/test/midimappertest.cc
+++ b/test/midimappertest.cc
@@ -62,8 +62,17 @@ public:
{ "Hihat_closed", 4 },
};
+ ccmap_t ccmap
+ {
+ { 64, 51 },
+ { 65, 52 },
+ { 66, 53 },
+ { 67, 54 },
+ { 67, 55 },
+ };
+
MidiMapper mapper;
- mapper.swap(instrmap, midimap);
+ mapper.swap(instrmap, midimap, ccmap);
{
auto is = mapper.lookup(54);
@@ -119,8 +128,17 @@ public:
{ "Hihat_closed", 4 },
};
+ ccmap_t ccmap
+ {
+ { 64, 51 },
+ { 65, 52 },
+ { 66, 53 },
+ { 67, 54 },
+ { 67, 55 },
+ };
+
MidiMapper mapper;
- mapper.swap(instrmap, midimap);
+ mapper.swap(instrmap, midimap, ccmap);
// no such note id
{