hi im new to pure data and Arduino so please forgive me if i overlooked something obvious here.
im designing drum triggers using piezo mics connected into an Arduino uno the Arduino then outputs the code as PAD#:(then the current output of the piezo as a number) with it writing a new line for every pad. the signal is then sent to pure data using the comport object [comport 3 115200] it is receiving signal but it does not contain the PAD#: it just has numbers and using the serial monitor for Arduino i can see that the numbers are all over 100. were as the numbers being shown in pure data are under 100 is the signal getting compressed somewhere along the way.
I need the signals to output with the PAD#: because i have a route object after the comport to sort the individual drums to there specific sound.
any help at all would be greatly appreciated
Ardiuno code
const int padPins[6] = {A0, A1, A2, A3, A4, A5};
void setup() {
Serial.begin(115200);
void loop() {
for (int i = 0; i < 6; i++) {
int val = analogRead(padPins[i]);
Serial.print("PAD");
Serial.print(i + 1);
Serial.print(": ");
Serial.println(val);
delay(2);
}
delay(5);
}
pure data code