Browse Source

Add configInput/Output for some modules.

tags/v2.0.1
Andrew Belt 5 years ago
parent
commit
3af8fe5fc7
2 changed files with 15 additions and 0 deletions
  1. +7
    -0
      src/ADSR.cpp
  2. +8
    -0
      src/VCMixer.cpp

+ 7
- 0
src/ADSR.cpp View File

@@ -54,6 +54,13 @@ struct ADSR : Module {
configParam(DECAY_PARAM, 0.f, 1.f, 0.5f, "Decay", " ms", LAMBDA_BASE, MIN_TIME * 1000); configParam(DECAY_PARAM, 0.f, 1.f, 0.5f, "Decay", " ms", LAMBDA_BASE, MIN_TIME * 1000);
configParam(SUSTAIN_PARAM, 0.f, 1.f, 0.5f, "Sustain", "%", 0, 100); configParam(SUSTAIN_PARAM, 0.f, 1.f, 0.5f, "Sustain", "%", 0, 100);
configParam(RELEASE_PARAM, 0.f, 1.f, 0.5f, "Release", " ms", LAMBDA_BASE, MIN_TIME * 1000); configParam(RELEASE_PARAM, 0.f, 1.f, 0.5f, "Release", " ms", LAMBDA_BASE, MIN_TIME * 1000);
configInput(ATTACK_INPUT, "Attack");
configInput(DECAY_INPUT, "Decay");
configInput(SUSTAIN_INPUT, "Sustain");
configInput(RELEASE_INPUT, "Release");
configInput(GATE_INPUT, "Gate");
configInput(TRIG_INPUT, "Retrigger");
configOutput(ENVELOPE_OUTPUT, "Envelope");


cvDivider.setDivision(16); cvDivider.setDivision(16);
lightDivider.setDivision(128); lightDivider.setDivision(128);


+ 8
- 0
src/VCMixer.cpp View File

@@ -35,6 +35,14 @@ struct VCMixer : Module {
configParam(LVL_PARAMS + 1, 0.0, M_SQRT2, 1.0, "Ch 2 level", " dB", -10, 40); configParam(LVL_PARAMS + 1, 0.0, M_SQRT2, 1.0, "Ch 2 level", " dB", -10, 40);
configParam(LVL_PARAMS + 2, 0.0, M_SQRT2, 1.0, "Ch 3 level", " dB", -10, 40); configParam(LVL_PARAMS + 2, 0.0, M_SQRT2, 1.0, "Ch 3 level", " dB", -10, 40);
configParam(LVL_PARAMS + 3, 0.0, M_SQRT2, 1.0, "Ch 4 level", " dB", -10, 40); configParam(LVL_PARAMS + 3, 0.0, M_SQRT2, 1.0, "Ch 4 level", " dB", -10, 40);
configInput(MIX_CV_INPUT, "Mix CV");
for (int i = 0; i < 4; i++)
configInput(CH_INPUTS + i, string::f("Channel %d", i + 1));
for (int i = 0; i < 4; i++)
configInput(CV_INPUTS + i, string::f("Channel %d CV", i + 1));
configOutput(MIX_OUTPUT, "Mix");
for (int i = 0; i < 4; i++)
configOutput(CH_OUTPUTS + i, string::f("Channel %d", i + 1));


lightDivider.setDivision(512); lightDivider.setDivision(512);
} }


Loading…
Cancel
Save