Skip to content

sendPitchBend problem/bug with DefaultSettings #30

@bastenhoor

Description

@bastenhoor

Hi,

When using:

struct MySettings : public midi::DefaultSettings
{
   static const bool UseRunningStatus = false; // Messes with my old equipment!
};
MIDI_CREATE_CUSTOM_INSTANCE(HardwareSerial, Serial2, midi, MySettings);

I get an error when trying to sendPitchBend:

C:\Program Files (x86)\arduino\Arduino\libraries\MIDI/MIDI.hpp:282:57: error: 'Toto' is not a member of 'MySettings'
     const int value = inPitchValue * MIDI_PITCHBEND_MAX * Settings::Toto;

My guess is that MIDI_PITCHBEND_MAX is not yet added to the DefaultSettings section and
Toto is a typo for Todo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions