Browse Source

Add more param labels and display mapping

tags/v1.0.1
Andrew Belt 5 years ago
parent
commit
fed46f5403
7 changed files with 18 additions and 23 deletions
  1. +3
    -8
      src/8vert.cpp
  2. +4
    -4
      src/Delay.cpp
  3. +1
    -1
      src/Mutes.cpp
  4. +1
    -1
      src/SequentialSwitch.cpp
  5. +2
    -2
      src/Unity.cpp
  6. +5
    -5
      src/VCMixer.cpp
  7. +2
    -2
      src/VCO.cpp

+ 3
- 8
src/8vert.cpp View File

@@ -21,14 +21,9 @@ struct _8vert : Module {

_8vert() {
config(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS, NUM_LIGHTS);
params[GAIN_PARAMS + 0].config(-1.f, 1.f, 0.f);
params[GAIN_PARAMS + 1].config(-1.f, 1.f, 0.f);
params[GAIN_PARAMS + 2].config(-1.f, 1.f, 0.f);
params[GAIN_PARAMS + 3].config(-1.f, 1.f, 0.f);
params[GAIN_PARAMS + 4].config(-1.f, 1.f, 0.f);
params[GAIN_PARAMS + 5].config(-1.f, 1.f, 0.f);
params[GAIN_PARAMS + 6].config(-1.f, 1.f, 0.f);
params[GAIN_PARAMS + 7].config(-1.f, 1.f, 0.f);
for (int i = 0; i < 8; i++) {
params[GAIN_PARAMS + i].config(-1.f, 1.f, 0.f, string::f("Ch %d gain", i+1));
}
}

void step() override {


+ 4
- 4
src/Delay.cpp View File

@@ -34,10 +34,10 @@ struct Delay : Module {

Delay() {
config(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS);
params[TIME_PARAM].config(0.0f, 1.0f, 0.5f);
params[FEEDBACK_PARAM].config(0.0f, 1.0f, 0.5f);
params[COLOR_PARAM].config(0.0f, 1.0f, 0.5f);
params[MIX_PARAM].config(0.0f, 1.0f, 0.5f);
params[TIME_PARAM].config(0.0f, 1.0f, 0.5f, "Time");
params[FEEDBACK_PARAM].config(0.0f, 1.0f, 0.5f, "Feedback");
params[COLOR_PARAM].config(0.0f, 1.0f, 0.5f, "Color");
params[MIX_PARAM].config(0.0f, 1.0f, 0.5f, "Mix", "%", 0, 100);

src = src_new(SRC_SINC_FASTEST, 1, NULL);
assert(src);


+ 1
- 1
src/Mutes.cpp View File

@@ -28,7 +28,7 @@ struct Mutes : Module {
Mutes() {
config(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS, NUM_LIGHTS);
for (int i = 0; i < NUM_CHANNELS; i++) {
params[MUTE_PARAM + i].config(0.0, 1.0, 0.0, string::f("Ch %d mute", i));
params[MUTE_PARAM + i].config(0.0, 1.0, 0.0, string::f("Ch %d mute", i+1));
}

onReset();


+ 1
- 1
src/SequentialSwitch.cpp View File

@@ -29,7 +29,7 @@ struct SequentialSwitch : Module {

SequentialSwitch() {
config(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS, NUM_LIGHTS);
params[CHANNELS_PARAM].config(0.0, 2.0, 0.0);
params[CHANNELS_PARAM].config(0.0, 2.0, 0.0, "Channels", "", 0.f, 1.f, 2.f);

for (int i = 0; i < 4; i++) {
channelFilter[i].rise = 0.01f;


+ 2
- 2
src/Unity.cpp View File

@@ -29,8 +29,8 @@ struct Unity : Module {

Unity() {
config(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS, NUM_LIGHTS);
params[AVG1_PARAM].config(0.0, 1.0, 0.0);
params[AVG2_PARAM].config(0.0, 1.0, 0.0);
params[AVG1_PARAM].config(0.0, 1.0, 0.0, "Ch 1 average mode");
params[AVG2_PARAM].config(0.0, 1.0, 0.0, "Ch 2 average mode");
}

void step() override {


+ 5
- 5
src/VCMixer.cpp View File

@@ -21,11 +21,11 @@ struct VCMixer : Module {

VCMixer() {
config(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS);
params[MIX_LVL_PARAM].config(0.0, 2.0, 1.0);
params[LVL_PARAM + 0].config(0.0, 1.0, 1.0);
params[LVL_PARAM + 1].config(0.0, 1.0, 1.0);
params[LVL_PARAM + 2].config(0.0, 1.0, 1.0);
params[LVL_PARAM + 3].config(0.0, 1.0, 1.0);
params[MIX_LVL_PARAM].config(0.0, 2.0, 1.0, "Master level");
params[LVL_PARAM + 0].config(0.0, 1.0, 1.0, "Ch 1 level");
params[LVL_PARAM + 1].config(0.0, 1.0, 1.0, "Ch 2 level");
params[LVL_PARAM + 2].config(0.0, 1.0, 1.0, "Ch 3 level");
params[LVL_PARAM + 3].config(0.0, 1.0, 1.0, "Ch 4 level");
}

void step() override {


+ 2
- 2
src/VCO.cpp View File

@@ -197,7 +197,7 @@ struct VCO : Module {
config(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS, NUM_LIGHTS);
params[MODE_PARAM].config(0.f, 1.f, 1.f, "Analog mode");
params[SYNC_PARAM].config(0.f, 1.f, 1.f, "Hard sync");
params[FREQ_PARAM].config(-54.0f, 54.0f, 0.0f, "Frequency", " Hz", std::pow(2, 1/12.f), dsp::FREQ_C4);
params[FREQ_PARAM].config(-54.0f, 54.0f, 0.0f, "Frequency", "Hz", std::pow(2, 1/12.f), dsp::FREQ_C4);
params[FINE_PARAM].config(-1.0f, 1.0f, 0.0f, "Fine frequency");
params[FM_PARAM].config(0.0f, 1.0f, 0.0f, "Frequency modulation");
params[PW_PARAM].config(0.0f, 1.0f, 0.5f, "Pulse width", "%", 0.f, 100.f);
@@ -303,7 +303,7 @@ struct VCO2 : Module {
config(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS, NUM_LIGHTS);
params[MODE_PARAM].config(0.f, 1.f, 1.f, "Analog mode");
params[SYNC_PARAM].config(0.f, 1.f, 1.f, "Hard sync");
params[FREQ_PARAM].config(-54.0f, 54.0f, 0.0f, "Frequency", " Hz", std::pow(2, 1/12.f), dsp::FREQ_C4);
params[FREQ_PARAM].config(-54.0f, 54.0f, 0.0f, "Frequency", "Hz", std::pow(2, 1/12.f), dsp::FREQ_C4);
params[WAVE_PARAM].config(0.0f, 3.0f, 1.5f, "Wave");
params[FM_PARAM].config(0.0f, 1.0f, 0.0f, "Frequency modulation");
}


Loading…
Cancel
Save