so i have this and have had it for years - a way to load a PPG V2 XML as a preset. but now i wanna also do the same preset storing within a script for Native Devices. But…
But I just can’t figure out how to get the XML (which i just save from the terminal):
>>> oprint (renoise.song().selected_track.devices[2].active_preset_data)
<?xml version="1.0" encoding="UTF-8"?>
<FilterDevicePreset doc_version="13">
<DeviceSlot type="SendDevice">
<IsMaximized>true</IsMaximized>
<SendAmount>
<Value>0.0</Value>
</SendAmount>
<SendPan>
<Value>0.5</Value>
</SendPan>
<DestSendTrack>
<Value>0.0</Value>
</DestSendTrack>
<MuteSource>false</MuteSource>
<SmoothParameterChanges>true</SmoothParameterChanges>
<ApplyPostVolume>true</ApplyPostVolume>
</DeviceSlot>
</FilterDevicePreset>
to do anything but output this error, when i try to load it with
if s.selected_track.devices[checkline].name=="#Send" then
s.selected_track.devices[2].parameters[2].show_in_mixer=true
renoise.song().selected_track.devices[2].active_preset_data="Presets/PakettiSend.xml"
else end
i get this error:
*** exception: 'Failed to parse a memory XML file (^
*** )!'
*** stack traceback:
*** [C]: ?
*** [C]: in function '__newindex'
*** [string "do..."]:22: in function <[string "do..."]:9>
*** ./loaders.lua:230: in function 'loadnative'
*** ./loaders.lua:301: in function <./loaders.lua:301>
PakettiSend.xml (500 Bytes)
what should i do? how is this properly done?