Skip to content

Is it possible to send relative PB changes in MCU using a rotary encoder? #328

@mrmike12333

Description

@mrmike12333

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions