< Back to IRCAM Forum

Setting the number of buffers in javascript

Assuming I have a valid js object referencing a mubu buffer how can I change the number of buffers for that object?

I essentially want the equivalent of sending the message: numbuffers 3 via the javascript interface, for example.

Similarly, how would one send the bufferindex 2 message to a valid js mubu object?

And after trying the most obvious solution (which apparently didn’t work the first time) it is as simple as assigning the value I want to the numbuffers member (:

Thanks for helping me rubberduck ircam forum