diff options
Diffstat (limited to 'src/midimapper.cc')
-rw-r--r-- | src/midimapper.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/midimapper.cc b/src/midimapper.cc index 10e038f..1d2c7a8 100644 --- a/src/midimapper.cc +++ b/src/midimapper.cc @@ -80,7 +80,10 @@ Sample *MidiMapper::map(jack_midi_event_t event) } printf("]\n"); */ - if(drumkit->instruments.find(key) == drumkit->instruments.end()) return NULL; + if(drumkit->instruments.find(key) == drumkit->instruments.end()) { + printf("Unknown intrsument %d\n", key); + return NULL; + } Velocity *v = drumkit->instruments[key]->getVelocity(velocity); |