diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-05-14 11:56:44 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-05-14 11:56:44 +0200 |
commit | 7aff3e6c4736690b9bc3e900a61c8ab8d172bf26 (patch) | |
tree | dadc7409b0a6b51cbd6773c79cb62e0a8699686a /drumgizmo/input/midifile.cc | |
parent | 5fbb64651f6a6511fdd7b407b74c4a16c3bbae89 (diff) |
Temporary fix for midimap loading in command line tool.
Diffstat (limited to 'drumgizmo/input/midifile.cc')
-rw-r--r-- | drumgizmo/input/midifile.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drumgizmo/input/midifile.cc b/drumgizmo/input/midifile.cc index 76dff12..27a8e04 100644 --- a/drumgizmo/input/midifile.cc +++ b/drumgizmo/input/midifile.cc @@ -59,7 +59,7 @@ bool MidifileInputEngine::init(const Instruments& instruments) std::cerr << "[MidifileInputEngine] Missing midi filename\n"; return false; } - if(midimap == "") + if(midimap_file == "") { std::cerr << "[MidifileInputEngine] Missing midimap filename\n"; return false; @@ -71,10 +71,10 @@ bool MidifileInputEngine::init(const Instruments& instruments) << "'\n"; return false; } - if(!loadMidiMap(midimap, instruments)) + if(!loadMidiMap(midimap_file, instruments)) { std::cerr << "[MidifileInputEngine] Failed to parse midimap '" - << midimap << "'\n"; + << midimap_file << "'\n"; return false; } return true; @@ -103,7 +103,7 @@ void MidifileInputEngine::setParm(const std::string& parm, const std::string& va else if(parm == "midimap") { // apply midimap filename - midimap = value; + midimap_file = value; } else if(parm == "loop") { |