Skip to content

Feat: pitch bend and vibrado#14

Merged
nathansbradshaw merged 3 commits into
mainfrom
feat-pitch-bend
Jun 13, 2026
Merged

Feat: pitch bend and vibrado#14
nathansbradshaw merged 3 commits into
mainfrom
feat-pitch-bend

Conversation

@nathansbradshaw

@nathansbradshaw nathansbradshaw commented Jun 13, 2026

Copy link
Copy Markdown
Collaborator

closes #2

Introduce pitch-bend handling from two ADC sensors: add constants for sensor indices, max delta, hysteresis and rate limit. Add a PitchBend event variant and last_pitch_bend state, initialize it to center, and include it in the TIM2 task locals. Sample and filter the two bend sensors, compute a 14-bit combined pitch-bend value (center snap when idle), apply hysteresis and rate limiting, enqueue PitchBend events, and send MIDI pitch-bend messages when changes exceed the threshold. Also wire diagnostic logging for pitch-bend messages.
@nathansbradshaw
nathansbradshaw merged commit c252fa2 into main Jun 13, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement pitch bend and mod bend (keyboard keyboard)

1 participant