I am confused about how I should access the pre- and also post-pannings and -volumes via lua. track:device(1) seems to be not always a “TrackVolPan” device, also the last one (track:device(#track.devices)) neither always is a “SendTrackVolPan” device…
I wonder if these mixed types of nodes actually break the XML standard… I tried now the opposite way, the library can back convert it, but then it’s not possible to keep the actual node order. Seems to be a flaw in the current dawproject definition. Do you think such mixed node types are standard in XML?
Internal zippy functionality would be indeed very nice… Since Renoise itself certainly uses ZIP for multiple purposes. This would save io.exec calls to system os specific zippy tools…
I don’t think there’s anything wrong with how Renoise uses XML. But the Document functions do appear to have limitations—which is understandable if a bit frustrating, as they’re not intended to be a full XML serializer library.
Can I load an vst3 .vstpreset into an empty instrument slot using lua api? It should be able to detect the plugin by the identifier written into the file header… The preset loading icon though is disabled if there is no instrument yet.
But now I seem to have to build an instrument xml by myself, injecting base64-encoded active_preset_data… I imagined I could “simply” load the preset now instead… Like
the base64 decoder that @OopsIFly has made available is really important for this.
i’ve used it to inject data into a Renoise Convolver.
what i would propose is first generating a xml you can inject via a script to the plugin, then work out how to dynamically replace the <ParameterChunk>.