Music::PitchNum::German - note name and pitch number roles for BACH
package MyCleverMozart; use Moo; with('Music::PitchNum::German'); ...
Then elsewhere:
use MyCleverMozart; my $x = MyCleverMozart->new; $x->pitchname(70); # b $x->pitchname(69); # a $x->pitchname(72); # c $x->pitchname(71); # h $x->pitchnum(q{aes'}); # 68 $x->pitchnum(q{g'}); # 67 $x->pitchnum(q{b'}); # 70 $x->pitchnum(q{a'}); # 69
A Music::PitchNum implementation specifically for BACH, whereby H represents what other systems term B natural and B represents B flat. Otherwise, the implementation is Helmholtz-based, or the one typically seen in lilypond, with accidentals in the Dutch or German style (es, is), and octave indications using , and '.
H
B
lilypond
es
is
,
'
This module is expected to be used as a Role from some other module; Moo::Role may be informative.
Returns the pitch name for the given integer, though will throw an exception if passed something that is not a number.
Returns the pitch number for the given note name, or undef if the note could not be parsed.
undef
Please report any bugs or feature requests to bug-music-pitchnum at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Music-PitchNum.
bug-music-pitchnum at rt.cpan.org
Patches might best be applied towards:
https://github.com/thrig/Music-PitchNum
None known for BACH.
Music::PitchNum
http://lilypond.org/doc/v2.18/Documentation/web/manuals - LilyPond Notation Reference, "Note names in other languages"
thrig - Jeremy Mates (cpan:JMATES) <jmates at cpan.org>
<jmates at cpan.org>
Copyright (C) 2014 by Jeremy Mates
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.20 or, at your option, any later version of Perl 5 you may have available.
To install Music::PitchNum, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Music::PitchNum
CPAN shell
perl -MCPAN -e shell install Music::PitchNum
For more information on module installation, please visit the detailed CPAN module installation guide.