Hello!
Is there an equivalent to Dbufwr or BufWr that writes a whole array into a buffer upon trigger?
Basically I want to have a LocalBuf inside a SynthDef and each time I trigger a Demand.kr, the whole array (which I pass as an argument) would be loaded to the LocalBuf in order later to be read by a BufRd which gives the values to the inputs of a DemandEnvGen Ugen (levels and durations).
I have tried [array].as(LocalBuf) but it seems that the array is loaded at initialisation and cannot be updated when I want, that is why I wanted to use Dbufwr, but when I use it I have the problem of needing to write each specific index to the buffer which later creates other issues. Basically I would like to update a LocalBuf whenever I send a trigger if this makes sense. I don’t want to use Dseq to read the array because in very fast triggers it seems it skips values every now and then when the arrays are updated which causes some clipping. I am working on NRT mode btw.
Any help would be greatly appreciated.
thank you!!