MIDI::Bassline::Walk - Generate walking basslines
version 0.0101
use MIDI::Bassline::Walk; my $bassline = MIDI::Bassline::Walk->new(verbose => 1); my $notes = $bassline->generate('C7b5', 4); # MIDI: # $score->n('qn', $_) for @$notes;
MIDI::Bassline::Walk generates randomized, walking basslines.
MIDI::Bassline::Walk
$verbose = $bassline->intervals;
Allowed intervals passed to Music::VoiceGen.
Default: -3 -2 -1 1 2 3
-3 -2 -1 1 2 3
$octave = $bassline->octave;
Lowest MIDI octave.
Default: 2
2
$verbose = $bassline->verbose;
Show progress.
Default: 0
0
$bassline = MIDI::Bassline::Walk->new( intervals => $intervals, octave => $octave, verbose => $verbose, );
Create a new MIDI::Bassline::Walk object.
$notes = $bassline->generate; $notes = $bassline->generate($chord, $n);
Generate n MIDI pitch numbers given the given chord.
Defaults:
chord: C n: 4
Data::Dumper::Compact
Carp
List::Util
Music::Chord::Note
Music::Note
Music::Scales
Music::VoiceGen
Moo
strictures
namespace::clean
Gene Boggs <gene@cpan.org>
This software is Copyright (c) 2021 by Gene Boggs.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
To install MIDI::Bassline::Walk, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MIDI::Bassline::Walk
CPAN shell
perl -MCPAN -e shell install MIDI::Bassline::Walk
For more information on module installation, please visit the detailed CPAN module installation guide.