Skip to content

An implementation of Bach's Prelude in C

License

Notifications You must be signed in to change notification settings

xordspar0/prelude-in-c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prelude in C

An implementation of Bach's Prelude in C, BWV 846.

Goals

  • 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

Design

  • 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!

How to run it

./configure
make
./prelude

About

An implementation of Bach's Prelude in C

Resources

License

Stars

Watchers

Forks

Releases

No releases published