Code to Share: Here are various pieces of code and bits of wisdom that I've written as part of my coursework. As an open-source enthusiast, I am making them available to the general community. If you use them, please keep my name in the comments and drop me an email. If you improve them, please let me know - and send me a copy of the updated code. Enjoy!
PD Patches and abstractions
Pure Data website
- sampletrigger~.pd: loads and plays back a wav file sample, with optional looping
- clamp_lower.pd: imposes a lower bound (clamp) on incoming numbers.
- clamp_upper.pd: imposes an upper bound (clamp) on incoming numbers.
- clamp_range.pd: imposes a lower and upper bound (clamps) on incoming numbers. (note : the built-in [clip] object does this, oh well)
- squareosc.tar: square wave
generator (someone sent this to me - can't remember who..)
- joystick.zip: Joystick external for Win32
Crossbow ADXL232 Accelerometer board utilities
- ADXL.zip: java classes for polling and handling data from the ADXL232 evaluation board device
note: To use the ADXL classes, you will need the Java serial communication library for win32, which you can download this from the following page at SUN Microsystems. If you have trouble getting Java talking to the comport in win32, have a look at this. extras.
Tactile Trackpoint utilities
- Java library for pulsing the tactile trackpoint under program control.
- Sample program for demonstrating synchronous audio, video, and tactile interactivity (written in C).
- Sample program for tactile visualization of height information in an image (uses the above Java library).
trackpoint notes:
- tactile trackpoint utilities require that you have a tactile trackpoint device.
- You also need to install the latest trackpoint driver, which can be found here
- If you are using the handheld tactile trackpoint, plug it in after you start Windows
Microcontroller code for handling PS/2 communication
C header files for the Pod 2.0 and MIDI
- this file will aid in any software project that controls the Line6 Pod 2.0 via MIDI
- this file will aid in any software project that uses MIDI
Graphics Stuff