Last active
February 26, 2023 20:41
-
-
Save NickCulbertson/7961bb91e27e93dc364bff97dbd79d7e to your computer and use it in GitHub Desktop.
Teensy Arcade Midi Controller
That's awesome! I'm not too sure about custom implementations of Control Surface. I think what you could try is instead of using NoteButton button1 {0, {MIDI_Notes::A(octave), CHANNEL_1}};
do something similar to how I'm handling analogRead in the loop using buttonState0 = digitalRead(0);
. Then change the CHANNEL_1 value based on the top button presses.
if (buttonState0 == HIGH && buttonPlaying0 == false) {
buttonPlaying0 = true;
if (bank == 1) {
midi.sendNoteOn({MIDI_Notes::A(octave-1), CHANNEL_1}, 127);
} else if (bank == 2) {
midi.sendNoteOn({MIDI_Notes::A(octave-1), CHANNEL_2}, 127);
}
} else {
buttonPlaying0 = false;
if (bank == 1) {
midi.sendNoteOff({MIDI_Notes::A(octave-1), CHANNEL_1}, 0);
} else if (bank == 2) {
midi.sendNoteOff({MIDI_Notes::A(octave-1), CHANNEL_2}, 0);
}
}
Thanks! Will try that
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi! With the help of your instructions I have build a controller, and it works! Photo attached. Thanks man!
![330729458_857153138686252_5511818870732890041_n](https://user-images.githubusercontent.com/125295272/218519185-b2d6c684-401a-464b-af58-feef1540b44a.png)
Could you help with the code in order to expand it's possibilities?
The top row of smaller buttons is intended for selection of 4 banks. Each bank changes the midi channel of the 16 pads below ( CH1,2,3,4). Control surface has a banking option, but i did not quite understood how to use it im my case. Thank you in advance!