- SEE ALSO
- COPYRIGHT AND LICENSE
Music::PitchNum::ABC - note name and pitch number roles for ABC notation
package MyCleverMouse; use Moo; with('Music::PitchNum::ABC'); ...
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
' 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.
- pitchname pitchnumber
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.
- pitchnum pitchname
Returns the pitch number for the given ABC note name, or
undefif the note could not be parsed.
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.
Patches might best be applied towards:
None known for the ABC notation support.
thrig - Jeremy Mates (cpan:JMATES)
<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).