diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2013-04-04 21:19:58 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2013-04-04 21:19:58 +0200 |
commit | 77b3943b751bed43d230de6db322a750bfd1fc8e (patch) | |
tree | cd7d98bc8c06c660558a52f2b6b6ed73982efdf2 /src/audioinputenginemidi.cc | |
parent | 0e436ebcd7faacb557ab94952765cb6bcfd7d259 (diff) |
New message system. New common midi input class. Some compiler warning fixes. New ListBoxBasic class used by both LustBox and ComboBox. New embossed font.
Diffstat (limited to 'src/audioinputenginemidi.cc')
-rw-r--r-- | src/audioinputenginemidi.cc | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/audioinputenginemidi.cc b/src/audioinputenginemidi.cc index 5986471..6aa9d45 100644 --- a/src/audioinputenginemidi.cc +++ b/src/audioinputenginemidi.cc @@ -26,15 +26,23 @@ */ #include "audioinputenginemidi.h" -void InputLV2::loadMidiMap(std::string f) +#include "midimapparser.h" + +#include <hugin.hpp> + +void AudioInputEngineMidi::loadMidiMap(std::string f, Instruments &instruments) { + DEBUG(mmap, "loadMidiMap(%s, i.size() == %d)\n", f.c_str(), + instruments.size()); if(f == "") return; MidiMapParser p(f); if(p.parse()) {/*return false;*/} + + mmap.clear(); mmap.midimap = p.midimap; - for(size_t i = 0; i < instruments->size(); i++) { - mmap.instrmap[(*instruments)[i]->name()] = i; + for(size_t i = 0; i < instruments.size(); i++) { + mmap.instrmap[instruments[i]->name()] = i; } } |