AWK Music

Sox and OSX are anagrams.

Comments are moderated. It may take a few minutes before your comment appears.
Markdown is supported in your comments.

The more complicated version grew out of this. The added features are triangle waves, two note chords, amplitude decay, and anti-pop. The last item needs a little explaining. Towards the end of the script there is a short loop, while(c!=128), which returns the interrupted triangle wave to center. Without it there will be a sharp popping sound between note transitions. An explanation of the scoping rules regarding the rate variable is left as an exercise for the reader.

Name:
Mail: (not shown)

Please type this: