Show Posts
Pages: 1 2 3 [4] 5
46  Forum 2005-2010 (read only) / Troubleshooting / Can I pay someone to write a sketch for me? on: August 30, 2009, 01:08:35 am
I'm having a hell of a time with this, and I'm not a programmer.  I bought a duemilanove thinking there was enough documentation to do what I want to do so I could easily learn, but i'm seeing this is not the case.  

I'm in a band and I just need to get something built and working well.  I don't want to spend a long time learning programming just to get this to work.  

My needs are simple I think:

1) receive midi signals
2) make those midi signals light specific LEDs depending on their information.

I will use a max2771 for the led matrix.

I want to go midi input via USB ideally.

The midi note information will control which LED is being affected.  The velocity information will determine the state of the LED (on, off, or blinking).

That's it.  There are 32 independant LEDs.  If someone could get me up and running on two leds, I can figure out the rest.  

Please email me at joel@rattletree.com and tell me if you can do this, and how long it'd take and what you'd charge me.
Thanks!
47  Forum 2005-2010 (read only) / Troubleshooting / Seriously...can I PLEASE just pay you to finish? on: September 02, 2009, 12:50:00 am
Please take a look at this thread: http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1251612515.

As someone who has spent many years building audio electronics, I can fully appreciate the desire to teach someone to fish rather than to give them a fish...but I am absolutely not a fisherman. ;D I'm a musician that has spent 16 hours a day for the last four days trying to get this to work.  Yes, I am very close! But I really really need to be doing other things right now. I would be honored if someone would be willing to button this code up for me (at least getting two LEDs to do the required settings and showing me how to do the other 30). I'd be more than honored-I'd be happy to compensate you for your time. I can imagine this would take an experienced coder 15 minutes. ;D

Thanks for considering.
You can email me direct at Joel (at) Rattletree (dot) com
sincerely,
Joel
48  Forum 2005-2010 (read only) / Syntax & Programs / Re: Very newbe question on millis() for blinking led on: September 01, 2009, 09:16:15 pm
A couple questions:

In this bit:
Code:
if(incomingByte==127)
        {  //if velocity is 127 then clip is playing and LED is on
        }
        else
          if(incomingByte==1)
          { //if velocity is 1 then clip is looping and LED is still on
            lc.setLed(0,3,3,true);
          }

Should I have:
Code:
if(incomingByte==127)
        {  //if velocity is 127 then clip is playing and LED is on
      lc.setLed(0,3,3,true);
         }
        else
          if(incomingByte==1)
          { //if velocity is 1 then clip is looping and LED is still on
            lc.setLed(0,3,3,true);
          }
Does that matter?

Any advice on how to get this LED to blink:

Code:
if(incomingByte==126)
            { //if velocity is 126 then clip is launched but not yet playing LED is blinking...but how???
              lc.setLed(0,3,3,true); //this is probably wrong?
              delay(1000);  //this is probably wrong?
            }

Thank you!
Joel
49  Forum 2005-2010 (read only) / Syntax & Programs / Very newbe question on millis() for blinking led on: September 01, 2009, 03:01:22 pm
Hi folks,
I have been getting alot of help here.  I really appreciate it.  I have an LED that needs to respond differently to four different pieces of midi velocity information.  I'm brand new to programming, so trying to work this out with if else commands.  I can't get the LED to blink...If you can, please take a look and tell me what I'm doing wrong!  Thank you!

I do have a basic question, in an "if else" statement if I do an "if" and it is false, does it jump straight to the else, or does it just go to the next "if" if there are a string of "if"s before the "else"?

For example, in my code below, if the incoming byte is not 144, how do I get the LED to turn off if it is already on?



Code:
void loop () {

 if (Serial.available() > 3) { //if serial incoming
    incomingByte = Serial.read(); //read it

    if (incomingByte==144){ // analyse the first byte (status) : 144 is note on ch1


      incomingByte = Serial.read(); //read the next byte

      if (incomingByte==60){ // analyse the second byte (note) : 60 is middle C
        incomingByte = Serial.read(); //read the next byte
        if(incomingByte==127){  //if velocity is 127 then clip is playing and LED is on
        }else if(incomingByte==1){ //if velocity is 1 then clip is looping and LED is still on
          lc.setLed(0,3,3,true);
         }else if(incomingByte==126){ //if velocity is 126 then clip is launched but not yet playing LED is blinking...but how???
          lc.setLed(0,3,3,true); //this is probably wrong?
          delay(1000);  //this is probably wrong?


        }else{ //clip is stopped and LED is off
          lc.setLed(0,3,3,false);

        }

      }


    }
 }
    }

50  Forum 2005-2010 (read only) / Interfacing / Re: MIDI Input via USB.  Possible or do I need max? on: September 01, 2009, 02:16:13 pm
Thank you guys for your replies.  That Serial to midi converter works great.  I got the basics working for this project...now I need to figure out how to make all these if else statements work!

Thanks again,
Joel
  
51  Forum 2005-2010 (read only) / Interfacing / MIDI Input via USB.  Possible or do I need max? on: August 30, 2009, 12:56:04 am
Title says it all.  I need to get midi note and velocity into Arduino.  Can Arduino read this information via usb, or do I need to go through Max?
52  Forum 2005-2010 (read only) / Interfacing / Receiving MIDI info via usb on: August 27, 2009, 10:14:29 pm
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!  Pardon the double post (I posted this in the hardware section as well)  I didn't see this software section until just now.

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
53  Forum 2005-2010 (read only) / Interfacing / Re: works: MIDI-IN: code + schematics on: September 04, 2009, 02:28:38 am
Haven't seen it mentioned here, but I combined this sketch with teh serial to midi converter and it worked just taking the midi in through USB.  Thanks for the sketch!  I finally got my ableton clips triggering and flasing a LED at me when launched.  Nice!
54  Forum 2005-2010 (read only) / Interfacing / Re: Requesting help on sketch midi- on: August 28, 2009, 03:06:38 pm
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.  
55  Forum 2005-2010 (read only) / Interfacing / Re: Requesting help on sketch midi- on: August 27, 2009, 03:14:27 pm
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
56  Forum 2005-2010 (read only) / Interfacing / Requesting help on sketch midi- on: August 27, 2009, 02:11:48 pm
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

57  Forum 2005-2010 (read only) / Interfacing / Re: Newbe question-which Arduino do I need? 32 LEDs on: August 19, 2009, 11:51:23 am
I've got some samples of the MAX7221 on the way.
58  Forum 2005-2010 (read only) / Interfacing / Re: Newbe question-which Arduino do I need? 32 LEDs on: August 17, 2009, 01:16:19 am
OK-reading a little more on that max7221 it looks like this is something I can use for this project...
59  Forum 2005-2010 (read only) / Interfacing / Re: Newbe question-which Arduino do I need? 32 LEDs on: August 17, 2009, 12:25:35 am
Hi,
Thanks for the reply.  I've seen these LED matrix boxes...I'm looking for something pretty different.   Let me clarify more what I need:

Here is a picture of one of the triggers:


I have a pen in there so you can get a general idea of the size.  Now there are four of those around the stage and connected with DB9 cables to the midi controller.  So on each of those individual pads, I want to mount an LED that will turn on when activated that pad has been activated and is receiving the MIDI feedback messages from ableton...

I'll have the Arduino in a rack and connect the LEDS with their own DB9 cables.

I'm good with audio electronics but still very green with all of this computing stuff.  Would I just use an arduino and then have some sort of driver circuit that is controlled with one of the above mentioned drivers?

Cheers,
Joel
60  Forum 2005-2010 (read only) / Interfacing / Newbe question-which Arduino do I need? 32 LEDs on: August 16, 2009, 12:21:00 am
Hi folks,
Brand new to Arduino.  I need to control 32 individual LEDs that will either blink, be on,  or be off depending on which midi note numbers are received...

From what I can tell, I will need the Arduino Mega for this, is that correct?  I see the mega has 54 digital i/o.  Does that mean I can hook 54 LEDs, or 27?

This will be a project where it will be built and then live inside a rack, so is there any way to use one of the cheaper boards and just add more outputs?

Thank you!
Pages: 1 2 3 [4] 5