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

[ENCHANCEMENT] Pitch bend visualization #160

Open
spessasus opened this issue Jun 19, 2024 · 0 comments
Open

[ENCHANCEMENT] Pitch bend visualization #160

spessasus opened this issue Jun 19, 2024 · 0 comments

Comments

@spessasus
Copy link

The idea

This visualizer already looks very cool, but i think it could be even cooler if the notes would shift according to the pitch wheel (and the pitch bend range).

Suggestion

Assuming that the pitch bend ranges from -8192 to 8192, my suggestion would be shifting the note by:
pitch bend / 8192 * pitch bend range * key width

Example:

  • pitch bend range is 2 semitones (2 keys)
  • The pitch bend value is 4096
  • that gives us 4096 / 8192 = 0.5
  • 0.5 * 2 semitones = 1
  • so the note would shift 1 key to the right

Test MIDI file

This is a midi file which demonstrates the pitch bend and pitch bend range.
bendy.zip

Possible implementation

I've implemented the described pitch visualization in my program. If you play the midi there, you can see my implementation the line of code responsible

Alternatives

The whole keyboard could shift, or the note could change colors.

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