Music Generator

This is a program which generates sounds intended to be music-like based on input from a random number generator. It does this, both note selection and sound synthesis, in 193 lines of C, and uses no libraries or external data, however it does use the deprecated Linux OSS API. Some day I intend to switch this to a portable sound library and maybe even provide a Windows version.

The source code can be downloaded here. It can be compiled on Linux with the command cc -o mg -lm mg.c. On newer Linux systems you might get a message about not opening or finding "/dev/dsp". Sometimes this can be fixed by closing other sound programs or running the command sudo modprobe snd-pcm-oss.


Home

You can contact me by email at william (at) haddonthethird (dot) net.