NAME
Music::Duration - Add 32nd, 64th & odd fractional durations to MIDI-Perl
VERSION
version 0.0400
SYNOPSIS
# Compare:
# perl -MMIDI::Simple -MData::Dumper -e'$Data::Dumper::Sortkeys=1; print Dumper \%MIDI::Simple::Length'
# perl -MMusic::Duration -MData::Dumper -e'$Data::Dumper::Sortkeys=1; print Dumper \%MIDI::Simple::Length'
# In a program:
use MIDI::Simple;
use Music::Duration;
Music::Duration::fractional('z', 5);
# Create and set up a new_score, then for example:
n('zsn', 'n38') for 1 .. 5; # Add a snare sixteenth quintuplet
DESCRIPTION
This module adds thirty-second and sixty-fourth note divisions to MIDI::Simple. (These are 32nd: y, dy, ddy, ty and 64th: x, dx, ddx, tx.)
Also, this module allows the addition of non-standard note divisions with the fractional function, detailed below.
FUNCTION
fractional()
Music::Duration::fractional( 'z', 5 )
Add a fractional duration-division (or "tuple") for each duration of the MIDI::Simple Length
hash.
SEE ALSO
The "Parameters for n/r/noop" section in MIDI::Simple
The code in the t/
directory
AUTHOR
Gene Boggs <gene@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2018 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.