Send analogRead peak values with MIDI

Hi folks,

I’m making a MIDI controller for my final year college project. I’m having issues reading peak values from the Piezo sensors I’m using. I have it outputting MIDI data to MIDI-OX, the main issue is that when I use the controller with a DAW (Ableton Live 9) the piezo triggers the sample for every reading up to the max and down to the minimum.

I’m a bit of a novice when it comes to code, I tried to incorporate the code in this thread but I don’t know how to merge the two.

I understand that my code is probably very basic but if anybody can shed some light on my situation it would be really appreciated!

Piezo_Test_3.ino (353 Bytes)