controlling a KORG monotron with an arduino (need help with analogue outputs.)

using a LPF worked out great for controlling the synth. now i am having problems with code.. basically what i want to do is have 10 analogue inputs from photoresistors which are bombarded with lasers. as each beam is broken i would like the program to change the resistance value to the monotron... effectively creating a laser keyboard.

Glad you've got that working!

[ BTW The indentation/nesting is hard to follow in that last snippet ]

So to keep things easier to follow, how about read all the inputs, then decide what to do, then finally do it - much less scope for confusion than doing each in turn and let one overwrite the output of a previous one. Since you have many inputs use an array to store the input values?