Experimenting, I see that: #define EXAMPLE(ARG_1) # prints {{ Here I expect to see the value of ARG_1 but instead I get the following: }} prints "$ARG_1" prints {{%n%n}} works as you'd hope. (All I did was change the one line to normal quotes.) However 'prints "$"' throws an error! Sounds a bit like a bug to me... -- Pete -- On Sat, Jan 02, 2021 at 01:35:24PM -0500, Joseph Hughes wrote: > Does anyone here know the rules about using orchestra macros within multi > line strings ({{...}} )? I'm not getting the output I would expect. Here's > an example: > > #define EXAMPLE(ARG_1) # > prints {{ Here I expect to see the value of ARG_1 but instead I get the > following: }} > prints {{$ARG_1}} > prints {{%n%n}} > > prints {{ A dollar sign in a string block returns the name of the parent > macro: }} > prints {{$}} > prints {{%n%n}} > # > > $EXAMPLE(test) > > > The output for the above is: > > > Here I expect to see the value of ARG_1 but instead I get the following: > > $`EXAMPLE``ARG_1 > > > > A dollar sign in a string block returns the name of the parent macro: > > $`EXAMPLE`` > > > > Are there rules around multiline strings and macros that I'm unaware of? > Thanks for your time, everyone. > > Csound mailing list > Csound@listserv.heanet.ie > https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND > Send bugs reports to > https://github.com/csound/csound/issues > Discussions of bugs and features can be posted here Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here