Skip to content

Pitchbend - Unipolar mapping #1026

Answered by tttapa
thereisthe asked this question in Q&A
Mar 23, 2024 · 1 comments · 6 replies
Discussion options

You must be logged in to vote

any idea why 14 bit resolution runs an error with the Hysteresis?

This is indeed a bug in Control Surface, the const shouldn't be there, it's a copy-paste mistake from the line above it. (Usually this case doesn't happen, it's in the “no-op” version of the hysteresis class.) This should be fixed in the latest version.

Since you're interested in changing the output range (the MIDI values), and not the input range (the raw analog values), I think it makes most sense to do the mapping in the MIDI sender. You could try something like this:

#include <Control_Surface.h>

template <uint8_t InputPrecisionBits>
class PitchBendSenderMiddle {
  public:
    static void send(uint16_t value, MIDIAddr…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@thereisthe
Comment options

@thereisthe
Comment options

@tttapa
Comment options

Answer selected by thereisthe
@tttapa
Comment options

@thereisthe
Comment options

@tttapa
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants