From 34ea89b44eb9c4b1f45dfd1ec22381dacc5d81c0 Mon Sep 17 00:00:00 2001 From: Nils Brederlow <62596379+dingodoppelt@users.noreply.github.com> Date: Fri, 4 Feb 2022 21:03:54 +0100 Subject: Add test for CC to note to midimappertest.cc --- test/midimappertest.cc | 22 ++++++++++++++++++++-- 1 file 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 { -- cgit v1.2.3