NAME

Music::LilyPondUtil - utility methods for lilypond data

SYNOPSIS

use Music::LilyPondUtil;
my $lyu Music::LilyPondUtil->new;

$lyu->p2ly(60)  # c'

DESCRIPTION

Utility methods for interacting with lilypond.

METHODS

The module will throw errors via croak if an abnormal condition is encountered.

new optional params

Constructor. Optional parameters are mode to set absolute or relative mode, chrome to set the accidental style (sharps or flats), and p2n_hook to set a custom code reference for the pitch to note conversion (untested, see source for details).

chrome optional sharps or flats

Get/set accidental style.

mode optional relative or absolute

Get/set the mode of operation.

p2ly list of pitches or whatnot

Converts a list of pitches (integers or objects that have a pitch method that returns an integer) to a list of lilypond note names. Unknown data will be passed through as is.

SEE ALSO

http://www.lilypond.org/

AUTHOR

Jeremy Mates, <jmates@cpan.org>

COPYRIGHT AND LICENSE

Copyright (C) 2012 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.16.1 or, at your option, any later version of Perl 5 you may have available.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 171:

Unterminated C<...> sequence