Help with multiple knock Sensors across 4 Analog pins...

UKHeliBob:
What are PD and Max (whatever they are) expecting to receive and by what method ?

PD - Pure Data
Max - Max MSP

Both are visual programming environments - Ultimately, I'll be using the little device I've built to control a virtual instrument (synth) that I've been asked to do the Sound Design for... Max and Pure Data are used as the 'interface' between the raw sensor data, and the midi data required by the software environments, smoothing the data and converting it to something more usable.

I'm trying to feed 4 inputs from the 4 analog pins (0-3) into PD/Max via Serial port. At present, the array code I posted (up there somewhere) is recognised, however, in my Pure Data patch (which has 4 'inlets' for the various analog pins) is only picking up data on one inlet - all 4 sensors are picked up here, when there should be 1 per inlet. This leads me to think that there is something missing in my Arduino code which will enable Pure Data (or MaxMSP) to read 4 separate lines of data.

The Pure Data patch is correct - I've had it working previously with a few analog inputs (Pots and lenses). One thing I have not tried is amending that Arduino code (for the pots) to recognise Knock sensors, so I'll try that now and if it fails, paste the code up.

Thanks again to anyone who's popped their head in and tried to help me unravel this!