I have just released Forsynth 0.1 “Stockhausen”:
You can build it using fpm or the build.sh script.
It’s more fun to compute
It is a translation of a C project I am using with my students. Music, like graphism, helps teaching programming: as Kraftwerk sung in 1981, “It’s more fun to compute”.
That first version is named “Stockhausen”, one of the first composer to investigate sound and music using sinusoidal generators. And that’s all you can do with that first version: play sinusoidal waves! I have around sixteen more C procedures to translate in Fortran: next ones will be add_note()
because a note is a sum of sinus (harmonics), and add_major_chord()
because a chord is a sum of notes.
But you can already have fun by using Frequency Modulation to create weird sounds. For example replace the sinus by sin(omega*(1.0+0.001*sin(t*500)) * t + phi)
and you should hear:
http://magnin.plil.net/IMG/ogg/fm2.ogg
FM synthesizers were a revolution in the early 80’s and invaded pop music.
Contributing
All comments, ideas and contributions are welcome. I would be happy to learn “new” Fortran paradigms if it brings interesting features in that small fun project.
License?
Concerning the license, if you are interested by the project, please tell me your opinion. I personally like the GPL but I know it can be perceived as an inconvenient.