summaryrefslogtreecommitdiff
path: root/libs/midi++2/midnam_patch.cc
diff options
context:
space:
mode:
authorHans Baier <hansfbaier@googlemail.com>2008-12-15 11:05:41 +0000
committerHans Baier <hansfbaier@googlemail.com>2008-12-15 11:05:41 +0000
commit5e7ae490c1616696a733287b62c08416726653ae (patch)
tree9d9d933e7c4afacbb8608cce17e7de779be0b0fe /libs/midi++2/midnam_patch.cc
parentbf7e792e3e499b665c20fc196e53cf05bb99e0c7 (diff)
* first working prototype of changing program changes by scroll wheel (still some automation points issues)
git-svn-id: svn://localhost/ardour2/branches/3.0@4324 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/midi++2/midnam_patch.cc')
-rw-r--r--libs/midi++2/midnam_patch.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/midi++2/midnam_patch.cc b/libs/midi++2/midnam_patch.cc
index 555e19fc63..acbf9208a8 100644
--- a/libs/midi++2/midnam_patch.cc
+++ b/libs/midi++2/midnam_patch.cc
@@ -79,6 +79,7 @@ Patch::set_state (const XMLNode& node)
}
//cerr << "deserialized Patch: name: " << _name << _id.msb << " lsb: " << _id.lsb << " program " << _id.program_number << endl;
+ // TODO: handle that more gracefully
assert(_id.is_sane());
return 0;
@@ -230,6 +231,7 @@ ChannelNameSet::set_state (const XMLNode& node)
patch != patches.end();
++patch) {
_patch_map[(*patch)->patch_primary_key()] = *patch;
+ _patch_list.push_back((*patch)->patch_primary_key());
}
// cerr << "after PatchBank pushback" << endl;
}