< Back to IRCAM Forum

Mubu buffer management suggestions

Hello,

I just find a bit painful the following behavior of mubu objects:

-by default, there is a a buffer named “1”, even after clearall, so when I add new buffers, I always have to check wether it is there or not

  • a “clearbuffers” message, in anaolgy with the “cleartrack” one would be very nice, other wise I have to manually delete each buffer one by one if I have to preserve the track structure

One other thing:

If there is no tracks in the mubu object, it does not respond to “gettracks” whereas we would expect somethings like “tracks empty” to be sent in response.

hello,
the choice to always have a buffer even when the container is empty, is historical and was made to simplify the basic actions (such as adding a mubu and loading a file) which otherwise should be always preceded by a createBuffer. In some cases it can actually create discomfort, but in general it is more the positive than the negative and therefore we have kept it.
To clear the buffers and keep the track structure you can use the message “numbuffers 1”.
best regards

You’re right for gettracks, it will be fixed for the next release. Thanks!