Csound::Orchestra
use Csound::Orchestra; my $orchestra=Csound::Orchestra->new();
An orchestra consists of instruments
An orchestra should be created by a Csound::Score.
a header section
The header section specifies global options for instrument performance. It is written with "_write_header".
an optional list of user defined opcodes
User defined opcodes are built with the opcodes opcode and endop.
opcode
endop
instrument definitions
An orchestra should not be created by the end user. The user should rather use a Csound::Score.
$orc -> use_instrument($instr);
Add $instr to the instruments. An instrument can be added multiple times, for example by "play" in Csound::Score.
$orc->write('filename.orc', $score);
This method should not be called directly by the end user. The end user should call "write" in Csound::Score instead.
$score is needed because some instruments need access to the score (notably for the table functions f1 8192 10 …).
$score
f1 8192 10 …
An internal function.
http://www.csounds.com/manual/html/OrchTop.html#OrchHeader
Copyright © 2017 René Nyffenegger, Switzerland. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the the Artistic License (2.0). You may obtain a copy of the full license at: http://www.perlfoundation.org/artistic_license_2_0
To install Csound, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Csound
CPAN shell
perl -MCPAN -e shell install Csound
For more information on module installation, please visit the detailed CPAN module installation guide.