commit 08a871272aa04681a64272f690d5e744414c8a95
parent 73ef15d6d1419e002babeb55470ba3be57a9286b
Author: paulnasca <paulnasca>
Date: Sun, 8 Feb 2004 14:13:43 +0000
*** empty log message ***
Diffstat:
1 file changed, 13 insertions(+), 0 deletions(-)
diff --git a/src/Misc/XMLwrapper.C b/src/Misc/XMLwrapper.C
@@ -22,6 +22,7 @@
#include "XMLwrapper.h"
#include <stdio.h>
+#include "../globals.h"
int XMLwrapper_whitespace_callback(mxml_node_t *node,int where){
const char *name=node->value.element.name;
@@ -48,6 +49,18 @@ XMLwrapper::XMLwrapper(){
node=root=mxmlNewElement(tree,"ZynAddSubFX-data");
+ //save zynaddsubfx specifications
+ beginbranch("SPECIFICATIONS");
+ addpar("max_midi_parts",NUM_MIDI_PARTS);
+ addpar("max_kit_items_per_instrument",NUM_KIT_ITEMS);
+
+ addpar("max_system_effects",NUM_SYS_EFX);
+ addpar("max_insertion_effects",NUM_INS_EFX);
+ addpar("max_instrument_effects",NUM_PART_EFX);
+
+ addpar("max_addsynth_voices",NUM_VOICES);
+ endbranch();
+
};
XMLwrapper::~XMLwrapper(){