buffer~ with variable length
I making a patch, where a part of it is loading samples from the hard drive to the buffer~. This is supposed to work for stereo samples of a variable length, so the buffer~ changes length, according to the samples being loaded in.
I’ve red the tutorials and searched the forums – but can’t find a solution to exactly this one. How do I do that?
I really need this to get on – so help would be really, really appreciated! :-)
Here is the important part of my patch:
-- Pasted Max Patch, click to expand. --Copy all of the following text. Then, in Max, select New From Clipboard.----------begin_max5_patcher---------- 623.3ocyVErbaBCD8L9qXGtzwy35Ag.rStzo2ZO0dn25joiLrFqVPhADMNIS 72dAAjfaLXno3VePfdrV58dZWI8vLCyMx8XlIbM7Uvv3gYFFZnR.i59Flwr8 9QrLcXl9x3XTnLWT8MEtWowclCePdKDHgOBwrefvl7sawzCf+NlHDAt5MYPD JBU6.kDT6vldxs.CD3sQ2AxDAF.Yr3jH7cMSQDWf9xbgddbpAE4wbQDpzjh7 LnLW0fZUitUJTBVLpo46S4rnlQlGnwja99asavRXJ+cbQ32RQeUkwPItKsV. DZ0CWqxGd1Ksfap+SaB8kQxzpvIke1pUyJWu0dzmBtjOY7607gTLJknONaVY yhW4h.YN7k7TAHE.KOfKu1bhrKhSe9kV2jqprKKseXa0xtlPGfNG9bD6toS3 zdDtWkvszB2y4Rpa64vmRPArkGgSm36qJwot5nrck2Tnc79.l+gSJN6dEWaI X0iDHdtsxbcdpEt4OfswXVFKDewJk0HDPyZVEj5tDrhnllG4qmcg6p9Dc81Z UYsT6ktEcV+2ckqX28BZ7BqHiGd.HiHasS+nXjDEJebtxp9bk0sqkcnSQ9bG tRXpT9S7P8wff8I8G5I8G5Y7mEm3sw4YdCn7oIgZR1DnqxpTjE7Onxxc.UVU EVUueYJrZt6UcJDwp3WGIRmtPytK6YajjoJyd1TbqtQ5Uzy6U0GhPWMlTGcL 5qI9a2jUOOk3G6fYx7T+FAUu8H77LEfYJtfo3RQqX7NJlc7f.Tz9LlXdPhjK T0TniiLFJiV8eGi7F.iJOb8BSIxPnD4hQI2A3RzWgIUz4wY+Bnu3u3. -----------end_max5_patcher-----------
Use "replace" instead of the "read" message. It automatically resizes the [buffer~] to fit the length of the new file. Have a look in the [buffer~] object reference for more details.
Thank you so very, very much! Just what I needed! :-) Thanx!
By the way – is there a way to get length info of a file loaded into the [buffer~]?
I really need this as well to get my patch up and running! :-)
The help files that are available for every Max object have a pull-down See Also menu in the lower right that lists objects that are similar or work with the object whose help file you’re looking at. You’ll notice that the buffer~ help file’s pull-down includes the object called info~ that you might find useful. This is often a good place to check for answers to your questions, as well as a way to discover Max objects you may not know about.
You’re right Gregory. So I wonder why poke~ disappeared from the buffer~‘s See Also: section…
interesting question. I think it should return, and I’m in a position to fix it. :-)
Thank you very very much!
I’ll take a closer look around next time :-)
Forums > MaxMSP