Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Midi Keyboard Key Velocity Example #933

Open
RandyRyanG opened this issue Jun 19, 2023 · 0 comments
Open

Midi Keyboard Key Velocity Example #933

RandyRyanG opened this issue Jun 19, 2023 · 0 comments

Comments

@RandyRyanG
Copy link

Would be very helpful to have an example sketch to add Keyboard velocity for a midi keybed that has 2 switches per key. That would measure the time from one switch to the next and then convert that measurement to the correct velocity.

  1. Key1 switch1 activated = start time
  2. Key1 switch2 activated (pressed harder) = stop time
  3. Calculate time from switch1 to switch2
  4. Convert time difference measurement to velocity
  5. Send Midi Note on Event with measured velocity

I have posted this question on the arduino forum in less detail and I received response from @tttapa
https://forum.arduino.cc/t/adding-velocity-to-25key-midi-keyboard/1138753

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant