I am working on a MIDI Keyboard app for iPad and iPhone. I am already able to send note on
/note off
MIDI messages, but only with a fixed velocity. (I could give the users a slider to adjust that velocity, but that would not be optimal either.)
I would like detect the velocity of a touch, e.g. how hard the user taps on the screen. (I do not mean the velocity of a swipe gesture, which is of course something completely different. I also don't mean the force of a 3D Touch.)
I am sure that it's possible, even on devices that do not have 3D Touch. Apple use this in their GarageBand app, and it works quite well: when you touch the screen softly, you hear a soft note, and when you hit the screen hard, you get a harder sound.
So I would like to do the same thing in my app. Would anyone have a suggestion on how to realize this? Thanks in advance!