Hi! I've recently seen this project and i think it's awesome. I post here because I have some problems with ttymidi.
I've done some changes to ardumidi_test.pde to check how other instruments sound (apart from piano):
/*
This file is public domain. Use it as you like.
*/
#include <ardumidi.h>
int ledPin = 13;
int note_on = 0;
byte [glow]count[/glow] = 0;
void setup()
{
Serial.begin(115200);
pinMode(ledPin, OUTPUT);
}
void loop()
{
if (!note_on)
{
[glow]midi_program_change(0, count); //Change instrument
count++; //in each note[/glow]
// play a Cminor chord on channel 0, at maximum volume (127)
midi_note_on(0, MIDI_C, 127);
midi_note_on(0, MIDI_E + MIDI_FLAT + MIDI_OCTAVE, 127);
midi_note_on(0, MIDI_G + MIDI_OCTAVE, 127);
// The MIDI_* macros were created to make your life easier, but you
// don't have to use them. You may enter numbers instead if you know
// what you're doing.
note_on = 1;
digitalWrite(ledPin, HIGH);
}
else
{
// stop the Cminor chord
midi_note_off(0, MIDI_C, 127);
midi_note_off(0, MIDI_E + MIDI_FLAT + MIDI_OCTAVE, 127);
midi_note_off(0, MIDI_G + MIDI_OCTAVE, 127);
note_on = 0;
digitalWrite(ledPin, LOW);
}
delay(500);
}
Then I use ttymidi and timidity as shown in your web, but I only hear some instruments, not all. Some of them don't work, like 116 and 117 (and many others). I don't know if i'm doing something bad or is a problem of the program, but cheking instruments one by one gives me the same result.
I'm using arduino-0012 in a kubuntu 8.10.
Thank you very much for your help, and excuse me for my english, i'm kind of a rookie
