Browse Source

Modernize Core's Rack API calls

tags/v1.0.0
Andrew Belt 5 years ago
parent
commit
c984651b2a
6 changed files with 13 additions and 6 deletions
  1. +2
    -1
      src/Core/AudioInterface.cpp
  2. +1
    -1
      src/Core/Blank.cpp
  3. +2
    -1
      src/Core/MIDICCToCVInterface.cpp
  4. +3
    -1
      src/Core/MIDIToCVInterface.cpp
  5. +2
    -1
      src/Core/MIDITriggerToCVInterface.cpp
  6. +3
    -1
      src/Core/QuadMIDIToCVInterface.cpp

+ 2
- 1
src/Core/AudioInterface.cpp View File

@@ -119,7 +119,8 @@ struct AudioInterface : Module {
DoubleRingBuffer<Frame<AUDIO_INPUTS>, 16> inputBuffer;
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();
}



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

@@ -103,7 +103,7 @@ struct BlankWidget : ModuleWidget {
json_t *toJson() override {
json_t *rootJ = ModuleWidget::toJson();

// // width
// width
json_object_set_new(rootJ, "width", json_real(box.size.x));

return rootJ;


+ 2
- 1
src/Core/MIDICCToCVInterface.cpp View File

@@ -27,7 +27,8 @@ struct MIDICCToCVInterface : Module {
int learningId = -1;
int learnedCcs[16] = {};

MIDICCToCVInterface() : Module(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS, NUM_LIGHTS) {
MIDICCToCVInterface() {
setup(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS, NUM_LIGHTS);
onReset();
}



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

@@ -57,7 +57,9 @@ struct MIDIToCVInterface : Module {
bool pedal;
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();
}



+ 2
- 1
src/Core/MIDITriggerToCVInterface.cpp View File

@@ -28,7 +28,8 @@ struct MIDITriggerToCVInterface : Module {
uint8_t learnedNotes[16] = {};
bool velocity = false;

MIDITriggerToCVInterface() : Module(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS, NUM_LIGHTS) {
MIDITriggerToCVInterface() {
setup(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS, NUM_LIGHTS);
onReset();
}



+ 3
- 1
src/Core/QuadMIDIToCVInterface.cpp View File

@@ -51,7 +51,9 @@ struct QuadMIDIToCVInterface : Module {
int rotateIndex;
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();
}



Loading…
Cancel
Save