@@ -119,7 +119,8 @@ struct AudioInterface : Module { | |||||
DoubleRingBuffer<Frame<AUDIO_INPUTS>, 16> inputBuffer; | DoubleRingBuffer<Frame<AUDIO_INPUTS>, 16> inputBuffer; | ||||
DoubleRingBuffer<Frame<AUDIO_OUTPUTS>, 16> outputBuffer; | DoubleRingBuffer<Frame<AUDIO_OUTPUTS>, 16> outputBuffer; | ||||
AudioInterface() : Module(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS, NUM_LIGHTS) { | |||||
AudioInterface() { | |||||
setup(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS, NUM_LIGHTS); | |||||
onSampleRateChange(); | onSampleRateChange(); | ||||
} | } | ||||
@@ -103,7 +103,7 @@ struct BlankWidget : ModuleWidget { | |||||
json_t *toJson() override { | json_t *toJson() override { | ||||
json_t *rootJ = ModuleWidget::toJson(); | json_t *rootJ = ModuleWidget::toJson(); | ||||
// // width | |||||
// width | |||||
json_object_set_new(rootJ, "width", json_real(box.size.x)); | json_object_set_new(rootJ, "width", json_real(box.size.x)); | ||||
return rootJ; | return rootJ; | ||||
@@ -27,7 +27,8 @@ struct MIDICCToCVInterface : Module { | |||||
int learningId = -1; | int learningId = -1; | ||||
int learnedCcs[16] = {}; | int learnedCcs[16] = {}; | ||||
MIDICCToCVInterface() : Module(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS, NUM_LIGHTS) { | |||||
MIDICCToCVInterface() { | |||||
setup(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS, NUM_LIGHTS); | |||||
onReset(); | onReset(); | ||||
} | } | ||||
@@ -57,7 +57,9 @@ struct MIDIToCVInterface : Module { | |||||
bool pedal; | bool pedal; | ||||
bool gate; | bool gate; | ||||
MIDIToCVInterface() : Module(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS, NUM_LIGHTS), heldNotes(128) { | |||||
MIDIToCVInterface() { | |||||
setup(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS, NUM_LIGHTS); | |||||
heldNotes.resize(128, 0); | |||||
onReset(); | onReset(); | ||||
} | } | ||||
@@ -28,7 +28,8 @@ struct MIDITriggerToCVInterface : Module { | |||||
uint8_t learnedNotes[16] = {}; | uint8_t learnedNotes[16] = {}; | ||||
bool velocity = false; | bool velocity = false; | ||||
MIDITriggerToCVInterface() : Module(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS, NUM_LIGHTS) { | |||||
MIDITriggerToCVInterface() { | |||||
setup(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS, NUM_LIGHTS); | |||||
onReset(); | onReset(); | ||||
} | } | ||||
@@ -51,7 +51,9 @@ struct QuadMIDIToCVInterface : Module { | |||||
int rotateIndex; | int rotateIndex; | ||||
int stealIndex; | int stealIndex; | ||||
QuadMIDIToCVInterface() : Module(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS, NUM_LIGHTS), cachedNotes(128) { | |||||
QuadMIDIToCVInterface() { | |||||
setup(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS, NUM_LIGHTS); | |||||
cachedNotes.resize(128, 0); | |||||
onReset(); | onReset(); | ||||
} | } | ||||