News for hackers. Stuff that matters.
Re:Show HN: MidiPad 2 – A customizable Midi Pad Controller by mikewhy on Monday July 03, 2017 @11:37AM (#14689014)
Garage Band for iOS did it on release back in 2011. Using the accelerometer it's possible to simulate some sort of velocity.
Re:Show HN: MidiPad 2 – A customizable Midi Pad Controller by thedjinn on Monday July 03, 2017 @11:50AM (#14689135)
Exactly. The general idea is that you get a measurement of the applied force, so integrating that value gives you an approximate velocity.
Re:Show HN: MidiPad 2 – A customizable Midi Pad Controller by mikewhy on Monday July 03, 2017 @01:28PM (#14689957)
Assuming you worked on the app based on your other replies. Is 3D Touch applicable here?
Re:Show HN: MidiPad 2 – A customizable Midi Pad Controller by thedjinn on Monday July 03, 2017 @01:48PM (#14690099)
Yes, that works. However, you would be facing the same problems. You can read out the pressure of a touch but the initial pressure is not the strongest since the finger is still in motion. Additionally, 3D touch is not supported on all devices.

Another interesting thing is that there are also private APIs for reading out the estimated finger size of a touch. This can give you even more information to determine the velocity from, as light touches are usually done with the fingertips.