The pages below provide the source code for blog articles on Audio Programming. See also github. The current focus is development of sf2sound.py, a tool to convert solfa text into to sound. For example, the following, written as a single line,
% sf2sound x 'fundamental:261 allegro: f:
| q do mi sol fa | p: re ti_ h do |'
produces the audio file:
The second argument of sf2sound is a melodic fragment written in the SF language, an extension of solfa. See the blog articles in the Code category for more information.
- tfork.c: the basic C sound generating program from The Audio Programming Book by Richard Boulanger and Victor Lazzarini. This is a fantastic reference and is highly recommended. All of the book’s code examples are on the accompanying CD. You will need the code for text2sf in order to work the examples presented here. some errata.
- sf2sound.py This program replaces solfa2sf and uses a better back-end built on quad2samp.
- solfa2sf, version 1 | solfa2sf, version 2: a Python program for converting a text string like “do re mi re do” into a sound file. Uses tfork.c
- quad.c, quad2samp . Converts a fileĀ of quadruples (frequency, duration, decay factor, amplitude) into a .wav file. quad2samp is the new version.
Some good links I am saving here for now:
- Arduino | Pasig HOBBYist Blog
- Core Audio: Getting Started | Core Audio on iPhone
This page has the following sub pages.