I've just got my hands on an Arduino and have started having a little play with it. I've followed this tutorial and managed to get that simple patch working. I've modified the PD patch a little to trigger the LED on port 9 when a bang connected to a kick drum is hit:
This works, but I've now hit a road block. I'd like 1 bang (Kick) to trigger 1 LED on port 9 as it is at the moment, but I'd also like another bang, connected to a snare to trigger another LED on port 8. I've absolutely no idea how to do this. I'm sure it's not too hard but I'm very inexperienced with coding. I've given it a go at writing the code but it's not working and I'm not sure what more I need to add to PD.
Here's what I've tried to do:
But it doesn't work.
Please please can someone help me out here?
Thanking you :)