Csound::Orchestra

SYNOPSIS

use Csound::Orchestra;

my $orchestra=Csound::Orchestra->new();

DESCRIPTION

An orchestra consists of instruments

An orchestra should be created by a Csound::Score.

METHODS

new

An orchestra should not be created by the end user. The user should rather use a Csound::Score.

use_instrument

$orc -> use_instrument($instr);

Add $instr to the instruments. An instrument can be added multiple times, for example by "play" in Csound::Score.

write

$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 …).

_write_header

An internal function.

http://www.csounds.com/manual/html/OrchTop.html#OrchHeader

_write_instruments

An internal function.

Copyright

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