I’m building a sample player which is going to be part of a generative soundscape mixer. Now, if you do not define a size for buffer~ then load a file into it (using the read message) it automatically sets the buffer to the size of the file. This is great, but if you then load another sound of a different length the buffer size does not change.
Is there a simple way of having buffer~ adapt it’s size to whatever sound you load into it?
I’ve checked out the system used in X-player, but it seems very complicated and I don’t quite understand it.