Adjusted default breath cal offset value. Added inverted octave rollers option for NuEVI (EVR in fingering menu). Support for CME WIDI chip connected to Teensy underside pads. Alternate Serial2 TX pad 31 for separate MIDI output, jumper sensing between pads 27 and 28 and power control for WIDI using pad 33. The old "slow midi" function (touching pinky key when pressing enter to toggle on/off) now repurpused for WIDI power control (only available when pads 27 and 28 are bridged).
This commit is contained in:
parent
bc545cccc1
commit
822e15e33d
9 changed files with 86 additions and 31 deletions
14
NuEVI/midi.cpp
Executable file → Normal file
14
NuEVI/midi.cpp
Executable file → Normal file
|
@ -2,6 +2,7 @@
|
|||
|
||||
#include "midi.h"
|
||||
#include "hardware.h"
|
||||
#include "globals.h"
|
||||
|
||||
int midiChannel;
|
||||
|
||||
|
@ -75,6 +76,10 @@ void midiPanic() { // all notes off
|
|||
void midiInitialize(uint8_t channel) {
|
||||
MIDI_SERIAL.begin(31250); // start serial with midi baudrate 31250
|
||||
MIDI_SERIAL.flush();
|
||||
if(widiJumper){
|
||||
WIDI_SERIAL.begin(31250); // start serial with midi baudrate 31250
|
||||
WIDI_SERIAL.flush();
|
||||
}
|
||||
midiSetChannel(channel);
|
||||
}
|
||||
|
||||
|
@ -87,6 +92,11 @@ void midiSend3B(uint8_t midistatus, uint8_t data1, uint8_t data2) {
|
|||
MIDI_SERIAL.write(midistatus);
|
||||
MIDI_SERIAL.write(data1);
|
||||
MIDI_SERIAL.write(data2);
|
||||
if (widiJumper && widiOn){
|
||||
WIDI_SERIAL.write(midistatus);
|
||||
WIDI_SERIAL.write(data1);
|
||||
WIDI_SERIAL.write(data2);
|
||||
}
|
||||
}
|
||||
|
||||
//**************************************************************
|
||||
|
@ -95,6 +105,10 @@ void midiSend3B(uint8_t midistatus, uint8_t data1, uint8_t data2) {
|
|||
void midiSend2B(uint8_t midistatus, uint8_t data) {
|
||||
MIDI_SERIAL.write(midistatus);
|
||||
MIDI_SERIAL.write(data);
|
||||
if (widiJumper && widiOn){
|
||||
WIDI_SERIAL.write(midistatus);
|
||||
WIDI_SERIAL.write(data);
|
||||
}
|
||||
}
|
||||
|
||||
//**************************************************************
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue