NAME
MIDI::Util - MIDI Utilities
VERSION
version 0.0100
SYNOPSIS
use MIDI::Util;
my $score = MIDI::Util::setup_midi( bpm => 120, etc => '...', );
# ...
MIDI::Util::set_chan_patch( $score, 0, 1 );
DESCRIPTION
MIDI::Util
comprises a couple handy MIDI utilities.
FUNCTIONS
setup_midi()
$score = MIDI::Util::setup_midi(
lead_in => 4,
volume => 120,
bpm => 100,
channel => 16,
patch => 42,
octave => 4,
);
Set basic MIDI parameters and return a MIDI::Simple score object. If given a lead_in, play a hi-hat for that many beats.
Named parameters and defaults:
lead_in: 4
volume: 120
bpm: 100
channel: 0
patch: 0
octave: 4
set_chan_patch()
MIDI::Util::set_chan_patch( $score, $channel, $patch );
Set the MIDI channel and patch.
Positional parameters and defaults:
score: undef (required)
channel: 0
patch: 0
SEE ALSO
AUTHOR
Gene Boggs <gene@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2019 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.