< Back to IRCAM Forum

String concatenation for receiver name

I am using the new Antescofo language for a new piece with Macros who will be sending messages to Poly~ in Max.

I want to reconstruct the receiver names using arguments. While string concatenation for message content seem to work, I receive errors once I use it for the “receiver name symbol”. Is there a way to enable this?!

Simplified example:

@MACRO_DEF Clockwise($sourcenum)
{
print my name is (“src”+$sourcenum+"-spat") ; works well sending to [r print] in Max/Pd
(“src”+$sourcenum+"-spat") 0. 0. 0. 0. 0. ; leads to parser error. Same error if I put a fake 0.0 delay in the beginning of the line
}

You have to use the keyword @command(…):

@command(“src”+$sourcenum+"-spat") 0. 0. 0. 0. 0.

Thanks! Works perfectly… :wink:

I just updated the Antescofo Reference Document (link) to reflect this… also rewrote the “Action” chapters a bit to make it more “musician friendly” :slight_smile: