single to double digit numbers

teqy's icon

hello

I am very likely doing this the long winded way. But i made a patch that converts all numbers that pass into double digits

for example 1,2,3,4,5 becomes 01,02,03,04,05 but also allows 11,12,13,14,15,16 to pass too ,

So everything between 0-99 becomes a double figure number.

the patch works fine , but when i try to pass numbers through very fast it , becomes jumbled up.

i think it is something to do with timing or positioning of objects? i used (deferlow) which helped a fair bit.

i've attached the patch. i'm hoping there is a more simple way , but hopefully someone can tell me what i did wrong.

Max Patch
Copy patch and select New From Clipboard in Max.

thanks. : )

teqy's icon

i found

(combine h @triggers 0 @padding 2) fed into a sprintf allowed me to build up the message i needed and at a very fast rate without a glitch.

: )