!- Converted with LaTeX2HTML 0.6.4 (Tues Aug 30 1994) by Nikos Drakos (email@example.com), CBLU, University of Leeds ->
Object audio-player allows the use of other sound generation tools with little modification to the AFL primitives. PLAY-NOTES is a simple C program that plays a short beep when called with a set of arguments. A foreign function interface to this C function provides the Lisp counterpart:
To create an audio player that uses the above to generate sounds, we can write:
We can now turn this object on or off, and also change the note that is played by executing:
Finally, we can implement a new component space around this audio-player object, called the play-notes-space, with its local state etc., and manipulate it using AFL constructs.