This directory contains examples of Cscore programs to massage score files.
Each can be invoked either as a Standalone program or as part of Csound:

	cscore scorename > outfilename
or	csound -C [otherflags] orchname scorename

A) To create a standalone program, you should first compile one of these
modules (or write your own), then link it with certain Csound I/O modules.
If the compile step cannot find "cscore.h", try something like
-I/usr/local/include, or else just copy the module from the Csound directory
into your own.  If your Csound installation has created a libcscore.a,
you can now type
	cc -o cscore cscore_xxx.c -lcscore

Else set an environment variable to a Csound directory containing the
already compiled modules, then invoke them explicitly:
	setenv CSOUND /u/bv/csound
	cc -o cscore cscore_xxx.c $CSOUND/cscoremain.o $CSOUND/cscorefns.o \
				 $CSOUND/rdscor.o $CSOUND/memalloc.o
You can now invoke this new cscore as shown above.

B) To operate from Csound, proceed as above but then link your module with the
entire Csound system.  If your Csound installation has created a libcsound.a,
you can do this by typing
	cc -o mycsound cscore_xxx.c -lcsound -lX11 -lm  (X11 if in installation)

Else copy *.h, *.c and Makefile from the Csound directory, replace cscore.c by
your own module, then run 'make csound'.  You can now invoke this new csound
as shown above.  The -C flag will invoke the cscore program after the input
score is sorted into 'score.srt'.  The orchestra can be invoked with a cscore
lplay().  With no lplay, your cscore output will be sent first to 'scsort'
then to the orchestra for performance.  These stages of scorefile development
can be examined in 'cscore.out' and cscore.srt'.

For more information on Cscore, see Appendix II of the Csound Manual.
