idi - Easy, command-line MIDI
$ perl -Midi -E'x(qw(c1 f o5)); n(qw(qn Cs)); n("F"); n("Ds"); n(qw(hn Gs_d1))' | timidity - # Compare with: $ perl -MMIDI::Simple -E'new_score; noop qw(c1 f o5); n qw(qn Cs); n "F"; n "Ds"; n qw(hn Gs_d1); write_score shift()' idi.mid $ timidity idi.mid
Easy, command-line MIDI!
b(100)
Set BPM
c(15)
Channel
Default: 0
0
d(128)
Duration
Default: 96
96
e(0)
Play at end
Default: 1
1
Return the MIDI::Simple score object.
n(@note_spec)
Add note. See the MIDI::Simple documentation for what a "note_spec" is.
o(3)
Octave
Default: 5
5
p($channel, $patch_number)
Patch
Default: 0, 0 (channel 0, piano)
0, 0
r($note_duration)
Add rest. See the MIDI::Simple documentation for what "note_durations" are valid.
t("$numerator/$denominator")
Time signature
Default: none
none
v(127)
Volume
Default: 64
64
w("filename.mid")
Write score to a file.
No-op (with MIDI::Simple::noop)
MIDI::Simple::noop
The t/01-methods.t file in this distribution
Exporter
File::Slurper
File::Temp
MIDI::Simple
Music::Tempo
Moo
strictures
namespace::clean
Gene Boggs <gene@cpan.org>
This software is Copyright (c) 2022 by Gene Boggs.
This is free software, licensed under: The Artistic License 2.0 (GPL Compatible)
To install idi, copy and paste the appropriate command in to your terminal.
cpanm
cpanm idi
CPAN shell
perl -MCPAN -e shell install idi
For more information on module installation, please visit the detailed CPAN module installation guide.