Skip to content

A small piece of software that tries to downconvert midi files into something that can be played using only delays and playing a single note at a specific frequency

Notifications You must be signed in to change notification settings

TotalKrill/midi-beeper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Midi Beeper

This is a simplistic tool to try and create rust formatted melodies from MIDI files. What it means is that it will help in creating (duration, frequency) tables of tones, so that they can be played on the simplest way in embedded systems.

If you want to play more advanced sounds on such system, it is better to just use WAV files and play those on some kind of speaker instead. Advanced files usually fails in this tool, since the song

Installing or building

On ubuntu, libasound2-dev is needed

apt-get install libasound2-dev

Usage

Many midi files are quite advanced, this tool is not. So to get a sound we will use the trial and error method. MIDI files contains many "tracks" of sound often. This tool will only use one of them, set with the "--track" flag wich defaults to 0.

The speed variable is also used to set the playback speed, since this tool does not handle all the tempochanges that the MIDI files uses, use -s/--speed

example usage to create a usable rust array from a .mid file with odd speeds.

midi-beeper midi_file/mario.mid --speed 7 --track 2 -u 82 -q --output mario.rs

About

A small piece of software that tries to downconvert midi files into something that can be played using only delays and playing a single note at a specific frequency

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages