Hi,
this is my first post in this forum.
My skills in arduino programming on a scale from 0 to 10 is between 0 and 1. So I am a real beginner in that matter. My General PC skills are medium.
I spent about 3 hours of time searching in this forum and the pjrc Forum for a solution but I got not the right information for me.
For example I have carefully read the lower link for a teensy board but I have no chance to transform the code into my needs for the micro because I really understand nothing!
My hardware:
PC with Win 10 and a Arduino micro
So here is what I want to have:
A simple MIDI Bass Pedal with 5 non-velocity-sensitive Switches.
Functions:
- The pedals should send note on when pressed and note off when unpressed
- For each pedal I wanna have 2 small switches. The first one to transpose the Note Number for Pedal No. 1 down, the second one to transpose it up.
For the other 4 pedals I wish to have also 2 extra switches per each pedal.
So I will have 5 pedal switches and 10 transpose switches
The transpose steps should work in one seminote by click and the range, let's say about 2 octaves down and 2 octaves up
Here is the code I started with (For simplicity I only programmed one pedal):
- /
#include <MIDI_Controller.h> // This lets the microcontroller speak "MIDI"
const uint8_t velocity = 0b1111111; // This sets default velocity to 100% (127 value)
const uint8_t C4 = 60; // Name the note you want to play when the button is pushed(can be anything, C3...D5...E2)
Digital button1(2, 60, 1, velocity); // Format is this: button[number] (pin, note, channel, velocity)
void setup() {
// put your setup code here, to run once: nothing to put here this time
}
void loop() {
// put your main code here, to run repeatedly:
MIDI_Controller.refresh();
}
Function No1 is working well:
If pedal is pressed the synth in my DAW makes a sound, when pedal is unpressed the sound turns off.
Now my big question:
How can I implement function No. 2 ?
Thanks for every help!
Sascha