Autocomp is an accompaniment generator written in Perl and Csound.
It takes as input a text file containing chord changes, plus time signature and bpm information, and outputs a Csound .sco file containing a simple arrangement of those changes.
A sample Csound .orc file containing a bass instrument, a selection of keyboard instruments, and a small sample-based drumkit is provided.
· Perl (http://www.perl.org)
· Csound (http://www.csounds.com).
autocomp.pl [-v -h] -i [-s -o ]
[-d -b -k -r -c ]
-v - prints version number and exits
-h - prints help info and exits
-i - sets input filename
-s - optionally set style (defaults to Swing)
-o - optionally set output filename (defaults to input filename with the extension stripped and .sco appended)
-d - drums toggle (0 - off, 1 - on, default on)
-b - bass toggle (0 - off, 1 - on, default on)
-k - keys switch (0 - no keys, 1 - rhodes, 2 - wurlitzer, 3 - hammond, 4 - vibes, default rhodes)
-r - number of times to repeat whole tune (default 0)
-c - number of bars count-in (default 0)
autocomp.pl -i autumnleaves.txt
This creates a .sco file called autumnleaves.sco with the default Swing style.
To hear the file, you need to invoke csound on it, something like:
csound -o devaudio comp.orc autumnleaves.sco