summaryrefslogtreecommitdiff
path: root/libs/midi++2/midnam_patch.cc
diff options
context:
space:
mode:
authorHans Baier <hansfbaier@googlemail.com>2008-12-06 00:07:07 +0000
committerHans Baier <hansfbaier@googlemail.com>2008-12-06 00:07:07 +0000
commit110170db95aa455794cc8d8ca8ed53b8a31119a5 (patch)
tree15aee50affca6160c26cfc0ff74569be473a7c9d /libs/midi++2/midnam_patch.cc
parent4f185b3f36850fae70f80af545f40f0211f7164e (diff)
* Added MIDI::Name::Note
git-svn-id: svn://localhost/ardour2/branches/3.0@4292 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/midi++2/midnam_patch.cc')
-rw-r--r--libs/midi++2/midnam_patch.cc20
1 files changed, 20 insertions, 0 deletions
diff --git a/libs/midi++2/midnam_patch.cc b/libs/midi++2/midnam_patch.cc
index 624701bcde..dbde6e240c 100644
--- a/libs/midi++2/midnam_patch.cc
+++ b/libs/midi++2/midnam_patch.cc
@@ -40,6 +40,26 @@ Patch::set_state (const XMLNode& node)
}
XMLNode&
+Note::get_state (void)
+{
+ XMLNode* node = new XMLNode("Patch");
+ node->add_property("Number", _number);
+ node->add_property("Name", _name);
+
+ return *node;
+}
+
+int
+Note::set_state (const XMLNode& node)
+{
+ assert(node.name() == "Patch");
+ _number = node.property("Number")->value();
+ _name = node.property("Name")->value();
+
+ return 0;
+}
+
+XMLNode&
PatchBank::get_state (void)
{
XMLNode* node = new XMLNode("PatchBank");