Go Down

Topic: ttymidi - software for MIDI-through-USB for Linux (Read 8 times) previous topic - next topic

mellis


nrolland

I tried it (ubuntu FF) .
Great !!!

FYI (and future release) : I noticed a tipo in the README/COMPILE (not a big deal)
You mean apt-get install libasound2-dev when you say apt-get install libasound-dev  

Thank U for that (including the doc)

Did you try it in real time with a master midi keyboard ?

Nicolas

tvst

Thanks for catching that typo. I'll fix the file in a bit.

Quote
Did you try it in real time with a master midi keyboard ?

I used it in real time before, but not with a master midi keyboard.

bolloyo

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):
Code: [Select]
/*
 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  :-[

bolloyo

#9
Dec 03, 2008, 07:01 pm Last Edit: Dec 03, 2008, 07:02 pm by bolloyo Reason: 1
I forgot that to compile the sketchbook, i had to fix some problems with stdlib.h as shown in the first reply to this topic: http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1222985221/2

I don't know if it could be a problem

Go Up