Home › Forums › General › Panels, Components, Macros › Generic Sysex Recorder Utility for Ableton Live › Reply To: Generic Sysex Recorder Utility for Ableton Live
October 12, 2015 at 10:20 am
#60009
This is a very basic example. Let’s say you have a MemoryBlock called PatchData you want to save. You have to create a method for “Called when Ctrlr state is saved”
saveValueTree = function(stateData)
stateData:setProperty("RefName", PatchData:toHexString(1), nil)
end
To restore data on project loading, create another method for “Called when Ctrlr is loaded”
loadValueTree = function(stateData)
stringHexData = stateData:getProperty("RefName")
PatchData:loadFromHexString(stringHexData)
end