Sensor/midi interface programming examples Kevin Scott kcscott@cc.gatech.edu (kevin@rcenter.com) ********************************************************** Before running any demo... Make sure the I-Cube box is plugged into an O2 - serial port #2 %startmidi -d/dev/ttyd2 ********************************************************** Files and executables.... agviewer* - A Glut Viewer provides view and navigation routines for GL programs midiIO* - a slight abstraction above the SGI midi libraries provides event read polling and initializations fileio.c/assist.h are used to read .vla data files - a simple 3d format vw - view 3d files with brightness controlled by the rotating knob sensor on the I-Cube, or touching pressure pad 1. sample - echo events generated by the software synthesizer or I-Cube demo - play midi notes on the four touch pads, change instruments with the dial knob simon - play a (slow) game of "simon says" Other helpfull stuff: /usr/share/src/dmedia/midi/simple /usr/include/dmedia/midi.h ********************************************************** Default I-Cube setup for all demos... Ports 1-4: touch pads: control change message: channel 0: controls 16-19 port 24: rotation sensor: control change message: channel 0: control 75 These settings can be modified by using the I-CubeX software installed on the machine STARE, or on a PC with the I-CubeX software and a pc-midi interface box. ********************************************************** Sample Run parameters for the various programs. %vw shuttle.vla %sample "Serial Port 2" "Software Synth" %sample "Software Synth" "Serial Port 2" %demo %simon