NAME

Music::ChordBot::Opus::Section::Chord - ChordBot chords.

SYNOPSIS

use Music::ChordBot::Opus::Section::Chord;
$chord = Music::ChordBot::Section::Chord->new;
$chord->root("C");
$chord->type("Min7");
$chord->duration(4);

or

$chord = Music::ChordBot::Section::Chord->new("C Min7 4");

or

$chord = Music::ChordBot::Section::Chord->new("C", "Min7", 4);

METHODS

new [ args ]

Creates a new Music::ChordBot::Opus::Section::Chord object.

The chord key, type and duration may be passed as arguments to the constructor, either as three separate values, or as a string containing these values space separated.

Attributes:

root

The root (key) of the chord.

bass

An added bass note of the chord.

type

The type, e.g., "Maj" (major), "Min" (minor), "7" (seventh) and so on.

duration

The duration, in beats.

inversion

Thee inversion, if applicable.

root bass type duration inversion

Accessors can be used to set and/or get these attributes.

AUTHOR, COPYRIGHT & LICENSE

See Music::ChordBot.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 89:

You forgot a '=back' before '=head2'