đž Archived View for tilde.pink âş ~ssb22 âş midi-beeper.gmi captured on 2022-04-28 at 17:30:34. Gemini links have been rewritten to link to archived content
âŹ ď¸ Previous capture (2022-03-01)
âĄď¸ Next capture (2023-01-29)
-=-=-=-=-=-=-
MIDI beeper is a Python 2 program to play MIDI files on Linux/BSD by beeping through the computerâs beeper instead of using proper sound circuits.âIf you try to play chords or polyphony, it will rapidly switch between alternate notes like an old office telephone.âIt sounds awful, but it might be useful when you really have to play a MIDI file but have no sound device attached.âIt should work on any machine that has the âbeepâ command (install âbeepâ package from your Linux/Unix package manager).âIt has been tested on a PC speaker and on an NSLU2âs internal speaker.
On the NSLU2, playing music with beep works in Debian 4 (Etch, 2007) but not so well in Debian 5 (Lenny, 2012); you can try compiling this modified beep.c instead (remember the chmod 4755 mentioned in the man page).âI havenât tried it on more recent distros because my NSLU2 power supply failed and I upgraded to a Raspberry Pi.âMIDI beeper can also generate polyphonic square waves itself and feed them to aplay, which might be useful if you need a small MIDI player on a Raspberry Pi running Linux, although too many sound channels can slow this down as itâs only a Python script.
If you need to know what a MIDI file sounds like while using a âvanillaâ RISC OS machine, edit midi-beeper and set riscos_Maestro to turn it into a converter from MIDI files to Acorn Maestro files.âRather than rapidly switching between notes, this uses true polyphony of up to 8 channels, although Maestro can struggle with rhythm when playing more than 4Â channels.âThe music may not *look* good in Maestro (which is not a good program for typesetting anyway), but at least it plays.â
Alternatively you can use a BBC Micro emulator (or a real BBC Micro if you still have one from the 1980s) and set MIDI beeper to generate BBC Micro code.âThis uses 3-channel polyphony and can multiplex up to 9 via envelope arpeggiation (3 on the Electron).âThe tuning can be a bit âwobblyâ.âHereâs an example SSD of short compositions (~60k for ~33½mins).
All material Š Silas S. Brown unless otherwise stated. Debian is a trademark owned by Software in the Public Interest, Inc. Linux is the registered trademark of Linus Torvalds in the U.S. and other countries. Python is a trademark of the Python Software Foundation. Raspberry Pi is a trademark of the Raspberry Pi Foundation. RISC OS is a trademark of Pace Micro Technology Plc which might now have passed to RISC OS Ltd but I was unable to find definitive documentation. Unix is a trademark of The Open Group. Any other trademarks I mentioned without realising are trademarks of their respective holders.