Robin Schmidt
Robin Schmidt
> How do I write a new patch format number class AudioModule has a member patchFormatIndex. you can set this in the constructor of your subclass. when you then request...
whoa! wtf? i actually think, this: ```cpp String xmlStr = xmlState.createDocument(""); const juce::XmlElement newXml = XmlElement(xmlStr); ``` should be an identity operation, i.e. newXml should be equal to xmlState if...
XmlElement::createDocument has an optional boolean parameter "includeXmlHeader" which deafults to true. maybe you could try to pass false to that? > The patch must save the patch name in the...
hmm...ok...i see
let's figure out, where exactly these extra < /> are introduced. can you write the original xml and the intermediate string also to a file? how to write string to...
whoa! i figured it out. this time, juce is overcomplicating things. just passing the string to the xml constructor does NOT work. instead, you have to go through class XmlDocument....
convertXmlStateIfNecessary is supposed to take in the original XmlElement and return the converted version. it is called somewhere in the baseclass implementaion of setStateFromXml before using the xml. but i'm...
the class StateFileManager is actually a baseclass of AudioModule, so this "underlyingStateFileManager" variable probably *is* the audio module in this case. ...so you can probably just call loadNextFile/loadPreviousFile in the...
ok, nice. are you using a midi controller to walk through 127 files in some directory? ...maybe it can be done with program change messages and incorporated into the framework....
> trying to smooth the act of changing a preset hmmm....actually, switching a preset (potentially) changes the values of all parameters at once....sooo perhaps then a large number of smoothers...