Replies: 3 comments 2 replies
-
One additional note, my goal is something similar to discussion post 414 but using banks seems like a significant departure from the NoteButtons approach. |
Beta Was this translation helpful? Give feedback.
-
I think the Transposer example does what you're asking. To change the notes one octave at a time, use Transposer<-1, +1> transposer(12); (because there are 12 semitones in an octave). Keep in mind that the addresses you use when initializing the buttons are evaluated and then saved by value. So if you initialize a button using |
Beta Was this translation helpful? Give feedback.
-
/// Get the first MIDI note in the given octave. /// Get the MIDI note in the given octave. |
Beta Was this translation helpful? Give feedback.
-
Hello everyone, this library is amazing! This community has cut countless hours off of my project to use an old set of organ foot pedals into a midi controller.
I have the device working as it should as a single octave device with the octave called in variables section before void setup() using NoteButton.
I want to create an octaveUp and octaveDown button that change the octaves called in NoteButton but it seems like that would have to be in the loop section as it is in several examples of edge detection, debouncing, etcetera.
The below code includes the attempt to add the octave using the variable "count." The code is not complete because it will not compile when I change the number 4 in the NoteButton section to "count."
Should the NoteButton section be moved into the loop or is there a more graceful way to do this?
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions