Browse Source

Set default pitch to 0V for MIDI-1, add RGBLight

tags/v0.6.1
Andrew Belt 6 years ago
parent
commit
2b96117ccb
2 changed files with 9 additions and 1 deletions
  1. +8
    -0
      include/componentlibrary.hpp
  2. +1
    -1
      src/Core/MIDIToCVInterface.cpp

+ 8
- 0
include/componentlibrary.hpp View File

@@ -445,6 +445,14 @@ struct RedGreenBlueLight : GrayModuleLightWidget {
}
};

struct RGBLight : ModuleLightWidget {
RGBLight() {
addBaseColor(nvgRGBf(1, 0, 0));
addBaseColor(nvgRGBf(0, 1, 0));
addBaseColor(nvgRGBf(0, 0, 1));
}
};


/** Based on the size of 5mm LEDs */
template <typename BASE>


+ 1
- 1
src/Core/MIDIToCVInterface.cpp View File

@@ -36,7 +36,7 @@ struct MIDIToCVInterface : Module {

uint8_t mod = 0;
ExponentialFilter modFilter;
uint16_t pitch = 0;
uint16_t pitch = 8192;
ExponentialFilter pitchFilter;
PulseGenerator retriggerPulse;
PulseGenerator clockPulses[2];


Loading…
Cancel
Save