The Alternative Csound Reference Manual
Previous | The Csound Command | Next

# Score File Preprocessing

## The Extract Feature

This feature will extract a segment of a sorted numeric score file according to instructions taken from a control file. The control file contains an instrument list and two time points, from and to, in the form:

    instruments 1  2  from  1:27.5  to  2:2

The component labels may be abbreviated as i, f and t. The time points denote the beginning and end of the extract in terms of:

    [section no.] : [beat no.].

each of the three parts is also optional. The default values for missing i, f or t are:

    all instruments, beginning of score, end of score.

## Independent Pre-Processing with Scsort

Although the result of all score preprocessing is retained in the file score.srt after orchestra performance (it exists as soon as score preprocessing has completed), the user may sometimes want to run these phases independently. The command

    scot filename

will process the Scot formatted filename, and leave a standard numeric score result in a file named score for perusal or later processing.

The command

    scscort < infile > outfile

will put a numeric score infile through Carry, Tempo, and Sort preprocessing, leaving the result in outfile.

Likewise extract, also normally invoked as part of the Csound command, can be invoked as a standalone program:

    extract xfile < score.sort > score.extract

This command expects an already sorted score. An unsorted score should first be sent through Scsort then piped to the extract program:

        scsort < scorefile | extract xfile > score.extract

Previous | Home | Next
Unified File Format for Orchestras and Scores | Up | Syntax of the Orchestra