populate coll with symbols and spaces?

Jan 29, 2011 at 10:37am

populate coll with symbols and spaces?

Hi
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);

etc

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. –

Brendan

#54655
Jan 29, 2011 at 11:31am

Hi Brendan,

Here it is with sprintf:

best,
Zachary

– Pasted Max Patch, click to expand. –
#196856
Jan 29, 2011 at 11:52am

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.

Thanks
Brendan

#196857
Jan 29, 2011 at 12:07pm

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
Brendan

edit
ignore me……I guess d=decimal

Brendan

#196858

You must be logged in to reply to this topic.