- /* add port automation state */
- XMLNode *autonode = new XMLNode(port_automation_node_name);
- set<Evoral::Parameter> automatable = _plugins[0]->automatable();
-
- for (set<Evoral::Parameter>::iterator x = automatable.begin(); x != automatable.end(); ++x) {
-
- /*XMLNode* child = new XMLNode("port");
- snprintf(buf, sizeof(buf), "%" PRIu32, *x);
- child->add_property("number", string(buf));
-
- child->add_child_nocopy (automation_list (*x).state (full));
- autonode->add_child_nocopy (*child);
- */
- AutomationList* list = dynamic_cast<AutomationList*>(control(*x)->list().get());
- autonode->add_child_nocopy (list->state (full));
- }
-
- node.add_child_nocopy (*autonode);
-