tttapa / MIDI_controller

This is a library for creating a MIDI controller using an Arduino or Teensy board.
GNU General Public License v3.0
399 stars 68 forks source link

Octave change for multiplexer buttons #113

Open hajozo opened 3 years ago

hajozo commented 3 years ago

Hey,

Awesome library! Thanks.

I have built my first midi keyboard with 2 octaves (piano layout, 24 keys). I am using two multiplexers to get all the inputs for my arduino pro micro.

My first code was constructed from your multiplexer example. I made the multiplexer pinscorrespond the midi values for piano keys. This worked perfect, but what I would love to do is have a 3- way switch to change between octaves (add or substract 12 from each key value that is given for the multiplexers buttons) I tried to make "if" and "else" functions to the code...but because the loop function only has the midi_controller.refresh command, I dont understand how to make the uint8_t variables to change keys.

I this kind of a octave change possible in the main code or does this require sone tweaks on the library?

Wish to hear from you all though this library is quite old 😁.

From Finland (sorry my bad english)

tttapa commented 3 years ago

As mentioned in the readme, I no longer offer support for the MIDI_Controller library.

Please see https://tttapa.github.io/Control-Surface-doc/Doxygen/da/d2d/Transposer_8ino-example.html.

hajozo commented 3 years ago

This is exactly what I tried to do! Thank you very mutch!!!!!

Harri from Finland

ma 7. kesäk. 2021 klo 19.32 Pieter P @.***) kirjoitti:

As mentioned in the readme, I no longer offer support for the MIDI_Controller library.

Please see https://tttapa.github.io/Control-Surface-doc/Doxygen/da/d2d/Transposer_8ino-example.html .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tttapa/MIDI_controller/issues/113#issuecomment-856086199, or unsubscribe https://github.com/notifications/unsubscribe-auth/AULQNEGH6LCYDKKAN3QG2YTTRTYAJANCNFSM46EOPRUA .

tttapa commented 3 years ago

For future reference: https://forum.arduino.cc/t/midi-controller-octave-changer/871731/13

hajozo commented 3 years ago

I am hajaxo and made that thread!

Big thanks again...awesome library!

ma 7. kesäk. 2021 klo 21.01 Pieter P @.***> kirjoitti:

For future reference: https://forum.arduino.cc/t/midi-controller-octave-changer/871731/13

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tttapa/MIDI_controller/issues/113#issuecomment-856146740, or unsubscribe https://github.com/notifications/unsubscribe-auth/AULQNEGLKOQWNH4FQOW4GXLTRUCO3ANCNFSM46EOPRUA .