loading buffers into a polybuffer~

Felix Pastor's icon

Hi,

I'm buikding a patch with multiple buffers that I would like to store in a polybuffer~ object to keep everything neat and tidy. The buffers are generated in the patch and will have to be accessible for editing in performance. The ideal would be some sort of "addbuffer name_of_my_buffer" message that I could send to the polybuffer~ object but... At the moment I have two possible options:

  1. writing each buffer to disk and then loading it into the polybuffer~ with append. Should work but seems a bit overkill.

  2. forgetting about the polybuffer~ and simply having a poly~ with a buffer~. The problem might be tracking down the specific buffers.

Speed is not a huge issue in any case.

Any suggestions?

Thank you!

Felix Pastor's icon

Gotit!

  1. Create polybuffer~ foo.

  2. Fill polybuffer~ foo with empty buffers (appendempty dur chnls).

  3. Fill foo.n with peek~ foo.n etc.

Thanks ;)