summaryrefslogtreecommitdiff
path: root/src/midimapper.cc
diff options
context:
space:
mode:
authordeva <deva>2008-08-05 08:43:35 +0000
committerdeva <deva>2008-08-05 08:43:35 +0000
commit90d1466d82e01fd7e5e2d2b49977e2dccaac9e33 (patch)
treec5a3a1dcdf4425340cb469baf54dc8096e298e76 /src/midimapper.cc
parent733e8c2efaee6ac3e0c6cfe81f09171af6a14303 (diff)
Forgot to put eXpat in configure
Diffstat (limited to 'src/midimapper.cc')
-rw-r--r--src/midimapper.cc5
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);