Music::ChordBot::Opus::Section - ChordBot song section.
use Music::ChordBot::Opus::Section; my $sect = Music::ChordBot::Opus::Section->new; $sect->name("First movement"); $sect->set_style("Kubiac"); $sect->add_chord(...); $sect->add_chord(...);
Creates a new Music::ChordBot::Opus::Section object.
Initial attributes may be passed as a hash.
Attributes:
The name of the section.
An arrayref containing Music::ChordBot::Opus::Section::Chord objects, more commonly known as 'chords',
A hashref representing the attributes of a style. See Music::ChordBot::Opus::Section::Style.
Sets or gets the name of the section.
Adds a chord to the section.
chord must be a Music::ChordBot::Opus::Section::Chord object, or a string denoting a chord, e.g. "C Maj 4". For convenience, the three elements may also be passed separately, e.g., add_chord("C", "Maj", 4).
add_chord("C", "Maj", 4)
A bass note can be specified by adding the note to the key, separated by a slash, e.g., "C/B".
"C/B"
A newly created Music::ChordBot::Opus::Section object has a default style associated. Calling this method removes the style from the section.
Sets the style for the section.
style must be a Music::ChordBot::Opus::Section::Style object, or the name of a predefined (preset) style.
If style is omitted, the current style is removed from the section.
See Music::ChordBot.
1 POD Error
The following errors were encountered while parsing the POD:
You forgot a '=back' before '=head2'
To install Music::ChordBot, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Music::ChordBot
CPAN shell
perl -MCPAN -e shell install Music::ChordBot
For more information on module installation, please visit the detailed CPAN module installation guide.