Pages: [1]   Go Down
Author Topic: Requesting help on sketch midi-  (Read 417 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 64
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi folks,
I am brand new to Arduino.  I just got my duemilanove in the mail and got it set up and ran one of the basic example sketches and I'm good to go! Yea!

I got this for a specific need:

I will be sending midi note and velocity information from ableton into the Arduino and it will turn on and off LEDs depending on the information.  I'm using this scheme using a max7221:
http://www.arduino.cc/playground/Main/MAX72XXHardware

Each LED is controlled by a different midi note number.  The velocity value of that note number determines the state of the LED (on, off, or blinking)

Here is the midi note information sent from Ableton (this would be for each individual LED):

a) clip has been triggered but is not yet playing:

message type: NOTE ON
velocity: 126 (LED is BLINKING)

b) clip is playing:
message type: NOTE ON
velocity: 127 (LED is ON)

c) clip is looping:
message type: NOTE ON
velocity: 1 (LED is ON)

d) clip has been stopped:
message type: NOTE OFF
velocity: 0 (LED is OFF)

So If someone could walk me through a sketch of controlling one led in this way, I think I could get all 32 done.

Thank you for your help!
Joel

« Last Edit: August 27, 2009, 02:36:50 pm by mbira » Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 618
Posts: 33943
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

If you look at my project:-
http://www.thebox.myzen.co.uk/Hardware/Glockenspiel.html

You can easily change it to light LEDs instead of firing solenoids.
Logged

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 64
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

To my inexperienced eye, the interaction of the arduino to your driver looks different enough that I don't think I can easily do this.  Check out that arduino link I set up...that's how it interacts with the max7221.  

I'm sure it'd be easy for someone that already knows what to do to modify, but I'm afraid, I'm not that guy yet.

 smiley-sad
Logged

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 64
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi Mike,
I'm still hoping for a solution with this.  Looking closer at your project, I have a question:
Do I need to receive midi via a standard midi cable, or can I receive it through the usb cable?  The usb cable will also be powerin gthe LEDS and the arduino, but Iknow I have plenty of current for that.  
Logged

Pages: [1]   Go Up
Jump to: