| Christopher Neese wrote:
>I would like to be able to use include files, like in C or C++ to support
>code reuse and to simplify my orc files. I think my suggestion is probably
>best implemented using a parser. I'm sure people that have been working on
>the parser have been thinking along these lines already, so I hope I'm not
>repeating anyone.
>Anyway the format I would like to see is something like this:
[...]
I agree with Christopher Neese about his suggestions. In fact I
implemented this kind of thing in a program that comes with my WCShell;
it is called ORCMACRO.EXE (only for Win95, sorry SGIfolks, Macfolks and
so on...)
and is a sort of preprocessor to Csound.
Its syntax is this.
Definition:
;@funcname(arg1, arg2, arg3,....)
;
;...
;...
;@end
and you use it by calling with real arguments, i.e.
@funcname(aout1, aout2, kin1, 34.67, ...)
or you can include an external file, i.e.
;#include funcname.orx
and use it exactly like above.
OK, it'a turnaround, and slows things a little, but it works, and
without modifying Csound.
Bye,
Riccardo
--
Riccardo Bianchini, Professor
Scuola di Musica Elettronica
Conservatorio "S.Cecilia", Roma (Italy)
http://www.geocities.com/Heartland/Acres/4768
|