Changing Buffer Reference in RNBO Gen

SSingh's icon

I am trying to modify the RNBO Wavetable Synth example to dynamically change the Buffer reference in the Gen code. I want to do it from within RNBO so I can change the Wavetables from within a plugin when I export it. The Wavetable Synth example comments say: "Requires a buffer named osc_wavetable_buf or new references in the gen~ patcher". I can easily change the reference a single time within the code itself, or from outside RNBO in the Max patch with Peek/Poke. Peek/Poke does not seem to be working from within RNBO for some reason. Am I missing something? Is there another way to do this?

SSingh's icon

Ok, seems I figured it out. The signal Peek/Poke objects don't work for some reason in RNBO, even though I had them setup exactly as I do in Max (is this a bug? or is there something I'm not understanding?). I just tried the standard Peek/Poke to change the wavetable buffer within RNBO and it finally works. If there are any other better suggestions about this, I am curious to know!

SSingh's icon

Now I'm beginning to think my problems have all just been bug related: when I start my RNBO patch fresh, the peek/poke does not work. When I copy and repaste the peek/paste objects again after freshly reopening the patch, they work as expected. Many hours of solid frustration because of this! Am I missing something here, or is this a bug?

SSingh's icon

Ok, it was a bug. The newest RNBO update fixes sample initialization. Still curious to know if there are any other ways to change the reference of a named buffer in Gen within RNBO. Are there other ways than peek/poke?