Mnkyvsalien

Okay I got this to work and the sound from logic is getting to analog pin 0. But Idk how to get them to work together or which par the original code I was using (not the arduino example) works with the ldr.

If it reads "previously defined here: doesn't it mean it was already there.

Yes.

You should get a grip of at least the very basics of programming, it is hard to help you when you don't know what the help means.It is like helping some one to do a hurdles race and finding out they can't stand up yet.

Mnkyvsalien

Okay, I hear ya grumpy mike. I shall read your article and learn the basics. But just for the record this thing is actually working! The ldr is triggering sounds from logic. The only problem is it's only working in the dark?!(any thoughts?)It says also that I need to share the 5v line for the other ldrs. Does that mean I put multiple jumpercables in the same input on arduino?

//*******************************************************************************************************************// Internal Use Variables//// You should tweak here if it's not optimal yet. // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^// Those values work perfectly when using the small LDR and 1K Resistor. So used it!////*******************************************************************************************************************

boolean activePad[6] = {0,0,0,0}; // Array of flags of pad currently playingint PinPlayTime[6] = {0,0,0,0}; // Counter since pad started to play

//*******************************************************************************************************************// Main Program//*******************************************************************************************************************

Mnkyvsalien

Yes, I don't understand it either. The hole breadboard has to be covered or only "dimly lit" for the arduino to be triggered. For example, I have to have my hand over the breadboard(to shield from light) then totally cover the ldr with me finger for it to trigger the midi.

Mnkyvsalien

Okay, so i don't know what happened but the ldr stopped working, the sound is still getting to te arduino but not the ldr. I didn't even get a chance to try changing tose values or any of the code. I will post back when the ldr starts working. I am determined to get this thing working!

Mnkyvsalien

Okay guys. Just for an update, the ldr is still working but only in dim settings (doesnt work at all in the morning). Which I'm cool with so long as I can get 5-6 ldrs working. Had no luck figuring out how the arrays work or printing values. Just wanna keep this thread going and see it through so any future project doers can consider this a sure thing.