Hi everybody !
I would like to make an electronic drum kit but I have problems to send MIDI data from my Arduino Uno REV3 to some MIDI software like Ableton live, Fruity Loop or Guitar pro.
I tried to use Serial-midi converter and s2midi to convert serial data from my arduino to MIDI data with MidiYoke/Loopbe1 to create a virtual MIDI port.
I tried to configure different Baud Rate (31250, 57600), but my software does not receive data, except Fruity Loop which detect a MIDI input activity in green (unhandled). So it is impossible to get a drum sound :~
Here is my test sketch :
// *****************************************************************************************************************
// * *
// * SpikenzieLabs.com *
// * *
// * Very Simple Serial to MIDI DEMO *
// * *
// *****************************************************************************************************************
//
// BY: MARK DEMERS
// May 2009
// VERSION: 0.1
//
// DESCRIPTION:
// Demo sketch to play notes from middle C in the 4th octave up to B in the 5th octave and then back down.
//
//
// HOOK-UP:
// 1. Plug USB cable from Arduino into your computer.
//
//
// USAGE:
// 1. Install and Set-up Serial MIDI Converter from SpikenzieLabs
// 2. Open, compile, and upload this sketch into your Arduino.
// 3. Run Serial MIDI Converter in the background.
// 4. Launch your music software such as Garage Band or Ableton Live, choose a software instrument and listen to the music.
//
//
// LEGAL:
// This code is provided as is. No guaranties or warranties are given in any form. It is up to you to determine
// this codes suitability for your application.
//int note = 0;
void setup()
{
Serial.begin(57600); // Default speed of the Serial to MIDI Converter serial port
}void loop()
{for(int note=60; note<=83; note++) // Going Up
{
MIDI_TX(144,note,127); // NOTE ON
delay(100);MIDI_TX(128,note,127); // NOTE OFF
delay(100);
}for(int note=82; note>=61; note--) // Coming Down
{
MIDI_TX(144,note,127); // NOTE ON
delay(250);MIDI_TX(128,note,127); // NOTE OFF
delay(250);
}}
void MIDI_TX(unsigned char MESSAGE, unsigned char PITCH, unsigned char VELOCITY)
{
Serial.write(MESSAGE);
Serial.write(PITCH);
Serial.write(VELOCITY);
}
I think I need some help :). Thanks in advance !