Now it's also NuRAD firmware! Set define for compile option NURAD in hardware.h to switch. Added a new little thing for NuEVI too: releasing the rollers leaves octave in current one instead of going to bottom octave unless coming down from first roller. This is helpful against bass hum from filter leak when setting the EVI aside, using pitch CV from NuEVI and synth with no VCA in use or gate open (drone mode).
This commit is contained in:
parent
03fc99f2b5
commit
4decdf1d72
8 changed files with 418 additions and 20 deletions
|
|
@ -12,8 +12,19 @@
|
|||
//***********************************************************
|
||||
|
||||
extern Adafruit_SSD1306 display;
|
||||
#if defined(NURAD)
|
||||
extern Adafruit_MPR121 touchSensorRH;
|
||||
extern Adafruit_MPR121 touchSensorLH;
|
||||
extern Adafruit_MPR121 touchSensorRollers;
|
||||
#else
|
||||
extern Adafruit_MPR121 touchSensor;
|
||||
#endif
|
||||
extern byte cursorNow;
|
||||
#if defined(NURAD)
|
||||
extern int calOffsetRollers[6];
|
||||
extern int calOffsetRH[12];
|
||||
extern int calOffsetLH[12];
|
||||
#endif
|
||||
|
||||
//***********************************************************
|
||||
// Variables used for the adjust menu
|
||||
|
|
@ -225,6 +236,26 @@ void plotSensorPixels(){
|
|||
int pos = map(constrain(exSensor, extracLoLimit, extracHiLimit), extracLoLimit, extracHiLimit, 28, 118);
|
||||
redraw = updateSensorPixel(pos, -1);
|
||||
}
|
||||
#if defined(NURAD)
|
||||
else if(adjustOption == 4) {
|
||||
display.drawLine(28,37,118,37,BLACK);
|
||||
for (byte i=0; i<12; i++){
|
||||
int pos = map(constrain(touchSensorRH.filteredData(i) - calOffsetRH[i], ctouchLoLimit, ctouchHiLimit), ctouchLoLimit, ctouchHiLimit, 28, 118);
|
||||
display.drawPixel(pos, 37, WHITE);
|
||||
}
|
||||
display.drawLine(28,38,118,38,BLACK);
|
||||
for (byte i=0; i<12; i++){
|
||||
int pos = map(constrain(touchSensorLH.filteredData(i) - calOffsetLH[i], ctouchLoLimit, ctouchHiLimit), ctouchLoLimit, ctouchHiLimit, 28, 118);
|
||||
display.drawPixel(pos, 38, WHITE);
|
||||
}
|
||||
display.drawLine(28,39,118,39,BLACK);
|
||||
for (byte i=0; i<6; i++){
|
||||
int pos = map(constrain(touchSensorRollers.filteredData(i) - calOffsetRollers[i], ctouchLoLimit, ctouchHiLimit), ctouchLoLimit, ctouchHiLimit, 28, 118);
|
||||
display.drawPixel(pos, 39, WHITE);
|
||||
}
|
||||
redraw = 1;
|
||||
}
|
||||
#else //NuEVI
|
||||
else if(adjustOption == 4) {
|
||||
display.drawLine(28,39,118,39,BLACK);
|
||||
for (byte i=0; i<12; i++){
|
||||
|
|
@ -242,6 +273,7 @@ void plotSensorPixels(){
|
|||
|
||||
redraw = 1;
|
||||
}
|
||||
#endif
|
||||
if (redraw){
|
||||
display.display();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue