An implementation of Bach's Prelude in C, BWV 846.
- Expore making music with programming
- Learn about audio APIs
- Learn how to write a multiplatform C program
- It would be nice if it actually sounds good
- My favorite recording of Prelude in C is this performance by Martha Goldstein on the harpsichord. This little program doesn't sound as good as that, but it's enough to make me smile.
- The music is defined as an array of integers that are MML note numbers. For more details, see the source code of prelude.c or consult a BSD man page for the speaker device.
- I want to port it to every free operating system I can get my hands on.
- No third-party libraries. I actually want to learn the platform-specific APIs.
- It's in a file called prelude.c!
./configure
make
./prelude