Music::Chord::Progression - Create network transition chord progressions
version 0.0001
use Music::Chord::Progression; my $prog = Music::Chord::Progression->new; my $notes = $prog->generate;
Music::Chord::Progression creates network transition chord progressions.
Music::Chord::Progression
The maximum number of chords to generate.
Default: 8
8
The network transitions between chords of the progression.
Default:
{ 1 => [qw( 1 2 3 4 5 6 )], 2 => [qw( 3 5 )], 3 => [qw( 2 4 6 )], 4 => [qw( 1 2 3 5 )], 5 => [qw( 1 )], 6 => [qw( 2 4 )] }
The chord name parts of each scale position.
The number of items in this list must be equal and correspond to the number of keys in the net.
Default: [ '', 'm', 'm', '', '', 'm' ]
[ '', 'm', 'm', '', '', 'm' ]
The name of the scale.
Default: major
major
The name of the scale starting note.
Default: C
C
The octave number of the scale.
Default: 4
4
Whether to start the progression with the tonic chord or not.
Default: 1
1
Whether to use flats instead of sharps in the chords or not.
Default: 0
0
The network transition graph.
Default: Graph::Directed
Graph::Directed
Show the progress of the generate method.
$prog = Music::Chord::Progression->new; $prog = Music::Chord::Progression->new( net => { 1 => [...], ... }, valence => ['m','','m','m','',''], scale_name => 'minor', scale_note => 'A', octave => 5, );
Create a new Music::Chord::Progression object.
Generate a new chord progression.
Data::Dumper::Compact
Moo
Music::Chord::Note
Music::Scales
Gene Boggs <gene@cpan.org>
This software is copyright (c) 2020 by Gene Boggs.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Music::Chord::Progression, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Music::Chord::Progression
CPAN shell
perl -MCPAN -e shell install Music::Chord::Progression
For more information on module installation, please visit the detailed CPAN module installation guide.