summaryrefslogtreecommitdiff
path: root/lv2
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2011-10-05 19:48:18 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2011-10-05 19:48:18 +0200
commit71e1c617ba1756269dca9c5bc07c765077cc7b08 (patch)
treec3f6fdbbcdad01a95f08b5e0a7ee0e5df4d6e025 /lv2
parentef8f20cba7fc86ed4dd82d30d8527ba7c480ebdc (diff)
Get midimap file path from env.
Diffstat (limited to 'lv2')
-rw-r--r--lv2/input_lv2.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/lv2/input_lv2.cc b/lv2/input_lv2.cc
index 3092347..23e2c78 100644
--- a/lv2/input_lv2.cc
+++ b/lv2/input_lv2.cc
@@ -39,7 +39,7 @@ InputLV2::~InputLV2()
bool InputLV2::init(Instruments &instruments)
{
- MidiMapParser p("/home/deva/docs/c/drumgizmo/kits/test/midimap.xml");
+ MidiMapParser p(getenv("DRUMGIZMO_MIDIMAP"));
if(p.parse()) {/*return false;*/}
mmap.midimap = p.midimap;
@@ -88,7 +88,7 @@ event_t *InputLV2::run(size_t pos, size_t len, size_t *nevents)
int key = data[1];
int velocity = data[2];
- //printf("Event key:%d vel:%d\n", key, velocity);
+ printf("Event key:%d vel:%d\n", key, velocity);
int i = mmap.lookup(key);
if(velocity && i != -1) {