accessing buffer~ data in an msp external

soundcyst's icon

hi all,

i couldn't find a straightforward reference on how to do this using google or scouring the forums..

i want to make a replacement for groove~ that allows time-stretch pitch shifting (like elastic~, but free so that it can be distributed with mlr).. i'd like to use the rubber band library (http://breakfastquay.com/rubberband/) which is in c++, so i expect i'll have to figure the whole c++/max/msp thing out too, but that at least seems documented.

does anyone have any useful pointers or references?

thanks!

mudang's icon

wow, this rubberband thingie looks (and sounds) amazing

You might want to have a look at the code of index~ in the SDK example folder.
Here's a nice introduction by timothy place:http://blog.74objects.com/2009/03/22/accessing-buffers/

good luck!
jan.

Graham Wakefield's icon

For C++ help, you could always try this:http://www.mat.ucsb.edu/~wakefield/maxcpp.htm

If you use the former, send me any questions by email, I'd be happy to help getting this rubbery thing into max.