scriptAudioWaveForm and updating contents
-
So I've done a super basic implementation of a waveform view in my pad sampler. All I'm doing is showing and hiding an AudioWaveform in the UI, based on a pad id integer.
But I was wondering if it was possible to switch the processorId in a script, and then tell the AudioWaveform to update its contents.
I did try this by calling AudioWaveform.updateContentPropertyInternal() and AudioWaveform.updateValueFromProcessorConnection()
But I don't really know if those are the right calls or not, or how they work. I looked through all of the example projects, but none of them seem to demonstrate these.
Any guidance on how to do something like this?
-
@Orvillain Did you try,
AudioWaveform.set("processorId", value);
? -
@d-healey said in scriptAudioWaveForm and updating contents:
@Orvillain Did you try,
AudioWaveform.set("processorId", value);
?Yeah I did, and it does update it based on a follow up AudioWaveform.get('processorId') call - but the UI component doesn't seem to update, and still shows data from the previous processorId. When I compile the script, then the UI updates one time... but not on subsequent calls to the set method.
I figured I needed to call some kind of update() function after setting the processorId, but no such luck so far.