-
Notifications
You must be signed in to change notification settings - Fork 158
Open
Labels
Description
Hi!
I'm trying something experimental and perhaps going about this the completely wrong way. I want to change the volume of tracks (in Logic Pro X) through a rotary encoder in the MCU bank. I've got an almost working version, but it only sends absolute values through pitch bend - i.e. min or max values.
I've implemented this through a 'Bankable' rotary encoder that sends Pitch bends and want to know what is the best method of handling relative changes.
BEGIN_CS_NAMESPACE
namespace Bankable {
class CustomRotaryEncoder
: public MIDIRotaryEncoder<SingleAddress, PitchBendSender<14>>
{
public:
CustomRotaryEncoder(
OutputBankConfig<> config, const EncoderPinList &pins, const MIDIChannelCN &address,
int16_t multiplier = 1, uint8_t pulsesPerStep = 4)
: MIDIRotaryEncoder({config, address}, pins, multiplier, pulsesPerStep, {}) {}
};
}
END_CS_NAMESPACE
Please let me know your thoughts on this, as I'm happy to attempt a different approach if it's simpler.