Digital Sound & Music: Concepts, Applications, & Science, Chapter 3, last updated 6/25/2013
54
49 sourceDL.write(buf,0,1);
50 }
51
52 sourceDL.drain();
53 sourceDL.stop();
54 sourceDL.close();
55 }
56 }
Algorithm 3.4 Chord class
As another exercise, you can try to play and compare equal vs. just tempered scales, the
same program exercise linked in the C++ section above.
The last exercise associated with this section, you're asked to create a metronome-type
object that creates a beat sound according to the user's specifications for tempo. You may want
to borrow something similar to the code in the ChordApp class to create the graphical user
interface.
3.4 References
In addition to references listed in previous chapters:
Barzun, Jacques, ed. Pleasures of Music: A Reader's Choice of Great Writing about Music and
Musicians. New York: Viking Press, 1951.
Hewitt, Michael. Music Theory for Computer Musicians. Boston, MA: Course Technology
CENGAGE Learning, 2008.
Loy, Gareth. Musimathics: The Mathematical Foundations of Music. Cambridge, MA: The MIT
Press, 2006.
Roads, Curtis. The Computer Music Tutorial. Cambridge, MA: The MIT Press, 1996.
Swafford, Jan. The Vintage Guide to Classical Music. New York: Random House Vintage
Books.
Wharram, Barbara. Elementary Rudiments of Music. The Frederick Harris Music Company,
Limited, 1969.
Java
Programming
Exercise:
Equal vs. Just
Tempered
Scales in Java
Java
Programming
Exercise:
Creating a
Metronome in
Java
Previous Page Next Page