Hello everybody,
I am currently making a USB MIDI controlled synthesizer. The microcontroller is a teensy 4.1. This should drive 2 dac Max11300 and 7 switch DG333.
I specify, I am new to programming, I learn a little more every day thanks to you
To drive the DG333 switches I use the teensy outputs. Each output is linked to a midi control, at the value 0 the output is at 0, at 127 the output is at 3.3v.
In the order the outputs are linked to the following midi controls:
outputs ( digital pins) : 11, 4, 23, 5, 7, 20, 17, 3, 35, 16, 30, 32, 34, 36
midi controls: 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95
The easiest (at my level) is to create a condition like:
void OnControlChange (byte channel, byte control, byte value) {
if (control == 82)
{
pinout = 11
}
else if (control == 83)
{
pinout = 4
}
else if ......... so on ....
the problem is, it's tedious and I'm sure there must be some other solution.
I am currently making a USB MIDI controlled synthesizer. The microcontroller is a teensy 4.1. This should drive 2 dac Max11300 and 7 switch DG333.
I specify, I am new to programming, I learn a little more every day thanks to you
To drive the DG333 switches I use the teensy outputs. Each output is linked to a midi control, at the value 0 the output is at 0, at 127 the output is at 3.3v.
In the order the outputs are linked to the following midi controls:
outputs ( digital pins) : 11, 4, 23, 5, 7, 20, 17, 3, 35, 16, 30, 32, 34, 36
midi controls: 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95
The easiest (at my level) is to create a condition like:
void OnControlChange (byte channel, byte control, byte value) {
if (control == 82)
{
pinout = 11
}
else if (control == 83)
{
pinout = 4
}
else if ......... so on ....
the problem is, it's tedious and I'm sure there must be some other solution.