Forums > Dev

buffer~ examples


f.e
November 8, 2006 | 10:00 am

Is there any buffer~ manipulation examples somewhere ? And for groove~ ?
The xsample collection by Thomas Grill could be great but it is all in
Flext… The sdk projects examples are *really* stingy; index~ doesn’t
give much informations on how to work with buffers, and it’s not very
documented. Now that my object is bound to a buffer~ and i know i can
doubleclick to check it (super), i wonder how to do calculations on it…

cheers

f.e


November 8, 2006 | 11:10 am

On 8-Nov-2006, at 11:01, f.e wrote:
> Is there any buffer~ manipulation examples somewhere ?

Tap.Tools has one or two. I seem to remember a buffer~ normalization
thing.

– P.

————– http://www.bek.no/~pcastine/Litter/ ————-
Peter Castine +–> Litter Power & Litter Bundle for Jitter
Universal Binaries on the way
iCE: Sequencing, Recording &
Interface Building for |home | chez nous|
Max/MSP Extremely cool |bei uns | i nostri|
http://www.dspaudio.com/ http://www.castine.de


November 8, 2006 | 3:41 pm

On Nov 8, 2006, at 5:01 AM, f.e wrote:
> Is there any buffer~ manipulation examples somewhere ?

f.e

Since you were kind enough to port some of my other externals to
Windows for me, I would be more than willing to send you the source
for GTK objects. They use 2 buffers each. Simpler than that though
would be a sampler object that I have (never publicly released
though). Let me know if you want to take a crack at them.

Of course, I’l repeat that I have experienced general buffer
wackiness since working on a UB update. I’m at ICMC this week, so I
actually got to pick Tim and Gregory’s brains on this topic. We’ll
see what comes of it…

—–
Nathan Wolek
nw@nathanwolek.com

http://www.nathanwolek.com



f.e
November 8, 2006 | 4:51 pm

Hello Peter,

yes, i love peeping at these tt.blue codes, but i need to know more on
how to write ‘regular’ MSP objects before using advanced features like
the tt.blue objects… Just figure out i have a class which i use in
each of my externals and, shame on me, i’m still copying the whole of it
each time, because i’m just at the gate of modular programming ;-)

cheers

f.e

Peter Castine wrote:
> On 8-Nov-2006, at 11:01, f.e wrote:
>> Is there any buffer~ manipulation examples somewhere ?
>
> Tap.Tools has one or two. I seem to remember a buffer~ normalization
> thing.
>
> — P.
>
> ————– http://www.bek.no/~pcastine/Litter/ ————-
> Peter Castine +–> Litter Power & Litter Bundle for Jitter
> Universal Binaries on the way
> iCE: Sequencing, Recording &
> Interface Building for |home | chez nous|
> Max/MSP Extremely cool |bei uns | i nostri|
> http://www.dspaudio.com/ http://www.castine.de
>
>
>


November 10, 2006 | 3:13 pm

On Nov 8, 2006, at 10:52 AM, f.e wrote:

> yes, i love peeping at these tt.blue codes, but i need to know more
> on how to write ‘regular’ MSP objects before using advanced
> features like the tt.blue objects… Just figure out i have a class
> which i use in each of my externals and, shame on me, i’m still
> copying the whole of it each time, because i’m just at the gate of
> modular programming ;-)

There are two parts to TT – the ttblue open source project which has
it’s own type of buffers for internal use, and Tap.Tools Max objects
which use MSP’s standard buffers. Peter is referring to the latter.

Attached is the source code from tap.buffer.snap~ which snaps a float
or signal (representing location) to the nearest zero-crossing
location in a buffer. It contains some Tap.Tools specific stuff, but
if you look at the Pattr SDK then you should be able to figure out
the appropriate functions to substitute to make it compile. I wrote
this code a number of years ago, so I don’t remember much about it,
but perhaps it will help…

best wishes,
Tim



f.e
November 10, 2006 | 5:15 pm

Thanks you very much, Tim, that’s very nice. Buffer will have no secrets
for me in a while.

Speaking about the TTblue, i noticed the special buffer and spent a few
hours reading all sources. It seems to be a great and helpful ‘library’
which i’m impatient to use (after understanding regular msp tricks, i mean).

best regards

f.e

Tim Place wrote:
> On Nov 8, 2006, at 10:52 AM, f.e wrote:
>
>> yes, i love peeping at these tt.blue codes, but i need to know more
>> on how to write ‘regular’ MSP objects before using advanced features
>> like the tt.blue objects… Just figure out i have a class which i
>> use in each of my externals and, shame on me, i’m still copying the
>> whole of it each time, because i’m just at the gate of modular
>> programming ;-)
>
> There are two parts to TT – the ttblue open source project which has
> it’s own type of buffers for internal use, and Tap.Tools Max objects
> which use MSP’s standard buffers. Peter is referring to the latter.
>
> Attached is the source code from tap.buffer.snap~ which snaps a float
> or signal (representing location) to the nearest zero-crossing
> location in a buffer. It contains some Tap.Tools specific stuff, but
> if you look at the Pattr SDK then you should be able to figure out the
> appropriate functions to substitute to make it compile. I wrote this
> code a number of years ago, so I don’t remember much about it, but
> perhaps it will help…
>
> best wishes,
> Tim
>
> ————————————————————————
>
>


Viewing 6 posts - 1 through 6 (of 6 total)