Line message assembled via sprintf doesn't behave as expected

spectro's icon
Max Patch
Copy patch and select New From Clipboard in Max.

The patch pretty much says it all. I am tired, but I can't see any obvious reason for this. Max 6.0.8, Mac os 10.8.4. Thanks for any input.

Christopher Dobrian's icon
Max Patch
Copy patch and select New From Clipboard in Max.

I think perhaps you're misunderstanding the role of the comma (,). In a message box (not in a line object!), it serves to separate individual messages. So if (in a message box!) you have "10., 27. 3000" and you trigger that message box, it sends out the message "float 10." followed immediately by the message "list 27. 3000". The line object understands int, float, and list messages, but does not have any idea what to do with a comma.

brendan mccloskey's icon

Hi spectro
are you looking to get a comma into a dynamically variable message for [line]?

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

I stumbled across the use of [pak f , f f], connected to the right inlet of a message (or wherever you like I suppose):

Brendan

spectro's icon

Chris: Thanks, your explanation makes the distinction quite obvious now - got lost in a fog there I think... Brendan: Nice tip - didn't know that.

Cheers to you both.