Music::PitchNum::ABC - note name and pitch number roles for ABC notation
package MyCleverMouse; use Moo; with('Music::PitchNum::ABC'); ...
Then elsewhere:
use MyCleverMouse; my $x = MyCleverMouse->new; $x->pitchname(69); # A $x->pitchnum('A'); # 69
A Music::PitchNum implementation specifically for the ABC notation, which varies from the other notation forms by using case sensitive letters to denote octave indications, otherwise falling back to the Helmholtz form outside the range around middle C (via , and ' marks). Oh, and the accidental notation is also totally different from the other forms.
,
'
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.
This method accepts an optional ignore_octave parameter that if true will strip the octave information from the pitch name.
Returns the pitch number for the given ABC 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 the ABC notation support.
Music::PitchNum
http://abcnotation.com/examples
thrig - Jeremy Mates (cpan:JMATES) <jmates at cpan.org>
<jmates at cpan.org>
Copyright (C) 2014-2016 by Jeremy Mates
This module is free software; you can redistribute it and/or modify it under the Artistic License (2.0).
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.