Forums > MaxMSP

populate coll with symbols and spaces?

Jan 29 2011 | 10:37 am

I cobbled a patch together in response to a recent post, and would be interested to see if anyone with experience of [sprintf] and [regexp] etc would be able to suggest how to insert any text into a coll. In other languages I would just say:

print ("Val = ");
println (val, DEC);


but I’m afraid the above mentioned Max objects are still a mystery to me (no solid programming background). The attached patch collects peak values and frequencies from a number stream and packs them to a coll – I’d just like to insert some text/symbols too.

— Pasted Max Patch, click to expand. —


Jan 29 2011 | 11:31 am

Hi Brendan,

Here it is with sprintf:


— Pasted Max Patch, click to expand. —
Jan 29 2011 | 11:52 am

Hi Zachary
perfect, and thanks for the ‘tidyness’ of the [t b b 1 0]; I always forget this extremely useful little obejct whenever I patch in a hurry.


Jan 29 2011 | 12:07 pm

Did a quick google for the C version printf; I’m a little clearer now on [sprintf], %f, %s; but what exactly does %d and %ld mean or signify?

Ta ta

ignore me……I guess d=decimal


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

Forums > MaxMSP