Closed nickho74 closed 4 years ago
In Control Surface, it's even easier:
https://github.com/tttapa/Control-Surface/blob/cd08dea14772fa4c57ee0d39d764ae19b8c44f2c/src/MIDI_Senders/RelativeCCSender.hpp#L45-L55
static void send(long delta, MIDICNChannelAddress address) {
while (delta != 0) {
// Constrain relative movement to +/-15 for
// Mackie Control Universal compatibility
long thisDelta = constrain(delta, -15, 15);
uint8_t msgVal = mapRelativeCC(thisDelta);
// send a Control Change MIDI event
Control_Surface.MIDI().sendCC(address, msgVal);
delta -= thisDelta;
}
}
ok Thanks for the reply. I will try the code.
Hi Pieter,
I was testing the Rotary Encoder.hpp and would like to suggest a function.
1 - Rotary Encoder : a) When turning Encoder to the Left, send a Note On. (direction +1) b) When turning Encoder to the Right, Send a differen Note On. (direction -1)
Can you advise me where to do modification on the code?
2 - Rotary Encoder to Multiplexer : a) Is it possible to assign Rotary Encoder to Multiplexer 16ch?
Please advise.
Thanks Nick Ho