Monday, August 23, 2010

RhythmSample

Here is a small project I did which lets you play several samples at several frequencies - quarter notes, eighth notes and sixteenth notes. The GUI is written in Java using Processing as a library. The audio generation is done using PureData, driven by messages sent from the Java GUI over a socket.

Here is the code. To run it, first open the PureData patch (you can use the startPd.sh script for this or do it manually), then run the Java program. The Java code communicates to the PureData patch over a socket.


rhythmSample_pd

rhythmSample_window

Here is how it sounds when played:
RhythmSample-sound by curran

0 comments: