buffer~ with variable length

Dec 7, 2009 at 2:58pm

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. –
#47088
Dec 7, 2009 at 3:15pm

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.

lh

#169279
Dec 8, 2009 at 1:25pm

Thank you so very, very much! Just what I needed! :-) Thanx!

#169280
Dec 8, 2009 at 2:05pm

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! :-)

#169281
Dec 8, 2009 at 3:14pm

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.

#169282
Dec 8, 2009 at 4:45pm

You’re right Gregory. So I wonder why poke~ disappeared from the buffer~‘s See Also: section…

p

#169283
Dec 8, 2009 at 8:41pm

interesting question. I think it should return, and I’m in a position to fix it. :-)

#169284
Dec 16, 2009 at 1:20pm

Thank you very very much!

I’ll take a closer look around next time :-)

#169285

You must be logged in to reply to this topic.