|
MIDI Elements
Library to simplify handling of components for MIDI controllers
|
Class for handling endless encoders. More...
#include <MIDIEncoder.h>
Public Member Functions | |
| MIDIEncoder (uint8_t pin1, uint8_t pin2) | |
| MIDIEncoder (uint8_t pin1, uint8_t pin2, byte c, byte n) | |
| MIDIEncoder (uint8_t pin1, uint8_t pin2, byte c, byte n, bool a) | |
| MIDIEncoder (uint8_t pin1, uint8_t pin2, byte c, byte n, bool a, bool d) | |
| int32_t | read () |
| void | write (int32_t p) |
Static Public Attributes | |
| static MIDIEncoder_internal_state_t * | interruptArgs [ENCODER_ARGLIST_SIZE] |
Class for handling endless encoders.
Reused Paul Stoffregen's Encoder Library code. Debugging will enable output to the serial instead of MIDI. Enable Ableton mode for optimized use of encoders in Ableton. When mapping in Ableton set to BinOffset.
|
inline |
constructor with pin numbers.
| pin1 | encoder pin number A |
| pin2 | encoder pin number B |
|
inline |
constructor with pin numbers, midi channel and cc number.
| pin1 | encoder pin number A |
| pin2 | encoder pin number B |
| c | midi channel |
| n | cc number |
|
inline |
constructor with pin numbers, midi channel, cc number and ableton mode.
| pin1 | encoder pin number A |
| pin2 | encoder pin number B |
| c | midi channel |
| n | cc number |
| a | enable ableton mode |
|
inline |
constructor with pin numbers, midi channel, cc number, ableton mode and debugging.
| pin1 | encoder pin number A |
| pin2 | encoder pin number B |
| c | midi channel |
| n | cc number |
| a | enable ableton mode |
| d | enable debugging |
|
inline |
read the values and send a midi message if the encoder changed. use in main loop
|
inline |
write the encoder position manually
| p | position number |
|
static |