[maxmsp] Error when restoring function settings from XML file
Arjen
arieschut at hotmail.com
Thu Jan 17 02:48:56 MST 2008
- Previous message: [maxmsp] Re: NYC-ers please help prevent my imminent cranial implosion!
- Next message: [maxmsp] Re: Error when restoring function settings from XML file
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi, I'm working on a patch that contains function objects inside a poly~. To save these function settings for every instance of the object inside the poly~, I use autopattr. There is one pattrstorage in the mainpatch, and it's presets are written to a XML file. Okay, now it's kind of difficult to explain my problem clearly, but here goes: When I have a function with four breakpoints, (0. 0.) (500. 0.) (500. 1.) and (1000. 0.), so y=0 for 0<=x<=500 and y=1 for x=500 (which should be impossible, for there are 2 values for x=500, this probably IS the problem), it restores this setting incorrectly from the XML file. What should be stored looks like this: _|\ , but what is restored looks like this: /|_ This is what is stored inside the XML: <pattr name="breakp1" value="1000. 0. 1. 0. 0. 0 500. 0. 0 500. 1. 0 1000. 0. 0" /> So the second and third point are switched on restore. I've noticed that depending on which breakpoint is moved, you can OR cannot place 2 points directly beneath eachother. I suppose it shouldn't be possible, but somehow it sometimes is. Functions that are saved with a patch restore correctly, but the ones that have to restore from an XML don't in this case. Am I the only one with this problem? It's really inconvenient. Greetings, Arjen
- Previous message: [maxmsp] Re: NYC-ers please help prevent my imminent cranial implosion!
- Next message: [maxmsp] Re: Error when restoring function settings from XML file
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
