💾 Archived View for thrig.me › music › midi captured on 2024-02-05 at 10:34:16. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-11-04)

➡️ Next capture (2024-03-21)

🚧 View Differences

-=-=-=-=-=-=-

MIDI

MIDI reference information gleaned from elsewhere. Not all MIDI devices nor SoundFont files honor the conventions that follow: drum placements might be mixed up or different, and some SoundFont do not put the drums on channel 9/bank 128/program 0, or may have weird or incomplete instrument lists. However the following are probably a good starting point.

specification

MIDI drum note numbers

MIDI general instruments

a very small MIDI writer library for Common LISP

Example

The drum channel is usually 9. A conventional drumtrack might involve a bass drum, high-hat, and hand clap, which may involve MIDI pitch 36, 44, and 39. However 44 was pretty inaudible on the SoundFonts I tried, so I switched that to 42. The velocities of the various parts may need better balancing. YMMV.

standard.pl

standard.midi

standard.mp3

Debugging

With the Perl MIDI module installed, MIDI files can be inspected by using the "dump tracks" option.

    #!/usr/bin/env perl
    use MIDI;
    my $file = shift;
    die "Usage: dump.pl midi-file\n" unless defined $file;
    MIDI::Opus->new( { from_file => $file } ) ->dump( { dump_tracks => 1 } );

dump.pl

Related

../soundfont/

https://www.vgmusic.com/music/console/nintendo/gameboy/