Two CDP Csound Utilities

Score Attenuation Score Division

CSNDATTN – rescales amplitude values in an existing Csound scorefile

Usage

csndattn csoundscore newscore fieldcnt ampfield attenuation

Parameters

csoundscore – input Csound scorefile
newscore – output Csound scorefile
fieldcnt – number of p-fields in score
ampfield – field number in which the amplitude parameter occurs attenuation – a multiplier: determines attenuation of amplitude required; may be numeric value or time value breakpoint file.

Description

CSNDATTN can be used to rescale the amplitude values in a Csound scorefile. It is particularly useful in massaging the output of a program such as WEDGE and other programs which can easily produce overmodulations in the score output.

Calculating the attenuation factor begins by observing the 'overall amps' message at the end of a Csound compilation. Divide 32000 by this number and the result is an attenuation factor which can be used to bring the amplitude within range – or boost it to full amplitude.

Return to top of file
Return to list of 'extra' programs
Return to Master Index

CSNDCHOP – divide up a Csound orchestra and scorefile each into 2 separate files

Usage

csndchop infile outfile -i | -e | -o [-sN]

Parameters

infile – the generic name of input Csound .orc & .sc files (just the name without an extension)
outfile – the generic name of output Csound .orc & .sc files
-i – divides the score by instruments
-e – divides the score by events events
-o – divides the score by note-overlaps
-sN – option which allows the number of instrument numbers stored by this program to be increased to N. The Default is 256

Description

CSNDCHOP means 'Csound chop'. It divides up large Csound .orc & .sc files each into two separate files. These files will be named outfile1.orc outfile1.sc outfile2.orc and outfile2.sc. These can be compiled by Csound and mixed together to form a single output soundfile with a PC batchfile such as:

csound -N -otest outfile1.orc outfile1.sc
ren test.wav test2.wav
csound -N -otest outfile2.orc outfile2.sc
mixtwo test test2
del test.wav
del test2.wav

and an Atari batchfile written in the form:

csound -N -otest outfile1.orc outfile1.sc
mvsf test test2
csound -N -otest outfile2.orc outfile2.sc
mixtwo test test2
rmsf test test2

Musical application

CSNDCHOP provides a way of dividing up Csound .sc files and the corresponding .orc (of the same name) when they have become so large that Csound will no longer accept them: they have become too large for the textspace available within Csound. This can easily happen when producing large scorefiles automatically with programs like WEDGE. If the output.sc scorefiles placed in the batchfile are still too large (i.e., they are rejected by Csound when the batchfile is run), rename them and run CSNDCHOP again to divide them up even further.

Return to top of file
Return to list of 'extra' programs
Return to Master Index

Converted to HTML 11 October 1998