Go Down

Topic: Chord memory function with basspedal and midi-shield (Read 2030 times) previous topic - next topic

TheRebell3110

That's fine!!!

When you have time you can help me with the exact programming!


TheRebell3110

pinMode(<pin number>, INPUT_PULLUP);

ex. pinMode(D2, INPUT_PULLUP);        1-16 channel

digitalRead(<pin number>);

ex. digitalRead(D2);

and

pinMode(<pin number>, INPUT_PULLUP);

ex. pinMode(D3, INPUT_PULLUP);        16-1 channel

digitalRead(<pin number>);

ex. digitalRead(D3);

TheRebell3110

Hello Pieter P,

it's me again, have you time to finish the last steps?
Greetings
Marco

TheRebell3110

is this ok:

private:
    const IChord *chord;
    const IChord *newChord;
    Button button;
    const uint8_t note;
    const uint8_t channel;

changing in

private:
    const IChord *chord;
    const IChord *newChord;
    Button button;
    uint8_t note;
    uint8_t channel;

and add a channel?

Thanks

PieterP

#19
Apr 15, 2019, 11:58 pm Last Edit: Apr 16, 2019, 12:12 am by PieterP
I've just merged a PR into my Control Surface library that adds chord functionality.

(Incomplete) documentation can be found here: https://tttapa.github.io/Control-Surface/Doc/Doxygen/d8/d9d/classBankable_1_1NoteChordButton.html
and an example as well: https://tttapa.github.io/Control-Surface/Doc/Doxygen/db/d12/NoteChordButton_8ino-example.html

I'm still very busy at the moment, so I might have missed some bugs. Feel free to open an issue on GitHub in that case, because I don't visit the forum very often.

Pieter

Go Up