Csound Csound-dev Csound-tekno Search About

[Csnd] score loop inside macro

Date2017-09-18 15:13
FromLuciano Zanatta
Subject[Csnd] score loop inside macro
Hi
I have some questions about the sintax of score loop. 

There's a technical reason for the kind of code below be illegal or it's just a design option?

#define MACROWITHLOOP (nRep)
#
{$nRep

some score statements

}
#

$MACROWITHLOOP(2)
$MACROWITHLOOP(5)
$MACROWITHLOOP(3)

Also, would be feasible have a third optional argument 'wait', which if used specify a time between loop repetitions? 

{NN Macro 5; wait 5 seconds before the loop repeats 

some code

}
 Could these be feature requests?

Cheers
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