[Csnd] Is there a limit on the number of macros that can be used in a Csound score?
Date | 2018-08-15 20:02 |
From | Oscar Pablo Di Liscia |
Subject | [Csnd] Is there a limit on the number of macros that can be used in a Csound score? |
Hello list: The subject of the email is the question, but I will repeat it here: Is there a limit on the number of macros that can be used in a Csound score? I have a large score with many macros, and the last ones does not seems to be recognized. That is: Csound replace the p-fields that are supposed to be filled with the values coming from the macros with "0" values and issues a message warning about that the instrument used is getting in the score fewer p-field values than the ones that it actually uses. No error on the macros is issued by Csound either.
I replaced the macros by plain code and it worked fine.
The score is very large, I can send it, but maybe someone of you have a hint on this issue without reading it. Many thanks in advance Pablo -- Dr. Oscar Pablo Di Liscia Profesor Titular Director Programa de Investigación "Sistemas Temporales y Síntesis Espacial de Sonido en el Arte Sonoro"Escuela Universitaria de Artes Universidad Nacional de Quilmes |
Date | 2018-08-15 20:16 |
From | jpff |
Subject | Re: [Csnd] Is there a limit on the number of macros that can be used in a Csound score? |
There is not supposed t mea limit on the number of macros but there may be a liit id how deeply they may test in expansion -- maybe 1024. Would need to study te score to be sure. There is a linear search fir finding a macro that is OK for snallish umbers but might creak fir tousandsof macros. ==John ff 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 |
Date | 2018-08-15 20:39 |
From | Oscar Pablo Di Liscia |
Subject | Re: [Csnd] Is there a limit on the number of macros that can be used in a Csound score? |
Many thanks for your quick answer John, I've found the error in the macro definition
(a copy/paste typo). It was my fault, sorry. The macro was defined initially as: #define FVA(va) #0 ' $va ' 0 ' 0 ' 0# which is clearly wrong, because it should be:
#define FVA(va) #0 $va 0 0 0# That is, without the " ' " characters. But if it is useful to somebody or to the Csound development team, it is worth to point out that this error was not detected by Csound but actually the macro was ignored in the score. I don't blame Csound for that because i'm not sure if this "should" be detected and/or it is worth to be detected. Best Pablo
2018-08-15 16:16 GMT-03:00 jpff <jpff@codemist.co.uk>: There is not supposed t mea limit on the number of macros but there may be a liit id how deeply they may test in expansion -- maybe 1024. Would need to study te score to be sure. -- Dr. Oscar Pablo Di Liscia Profesor Titular Director Programa de Investigación "Sistemas Temporales y Síntesis Espacial de Sonido en el Arte Sonoro"Escuela Universitaria de Artes Universidad Nacional de Quilmes |