The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

Csound - Create Csound scores and instruments

SYNOPSIS

    use Csound::Composition;
    use Csound::Instrument;

    my $composition    = Csound::Composition->new();
    my $instrument_one = Csound::Instrument->new(…);
    my $instrument_two = Csound::Instrument->new(…);

    # go from there …

METHODS

is_note

    $is_a_note     = Csound::is_note('d5');
    $is_a_note     = Csound::is_note('f11');
    $is_a_note     = Csound::is_note('c♯4');
    $is_a_note     = Csound::is_note('b♭9');

    $is_not_a_note = Csound::is_note('foo');

note_to_pch

    my $pch = Csound::note_to_pch('d♯4'); # returns 4.03

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

Source Code

The source code is on github. Meaningful pull requests are welcome.