From 7f072551ef8ab5938c2b0ab2d7bc9c08b0e3cfe5 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Sun, 2 Jun 2019 05:35:20 -0400 Subject: [PATCH] Tweak VCO parameter labels. --- src/VCO.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/VCO.cpp b/src/VCO.cpp index 56e6255..81735d3 100644 --- a/src/VCO.cpp +++ b/src/VCO.cpp @@ -197,7 +197,7 @@ struct VCO : Module { config(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS, NUM_LIGHTS); configParam(MODE_PARAM, 0.f, 1.f, 1.f, "Analog mode"); configParam(SYNC_PARAM, 0.f, 1.f, 1.f, "Hard sync"); - configParam(FREQ_PARAM, -54.f, 54.f, 0.f, "Frequency", "Hz", std::pow(2, 1/12.f), dsp::FREQ_C4); + configParam(FREQ_PARAM, -54.f, 54.f, 0.f, "Frequency", " Hz", dsp::FREQ_SEMITONE, dsp::FREQ_C4); configParam(FINE_PARAM, -1.f, 1.f, 0.f, "Fine frequency"); configParam(FM_PARAM, 0.f, 1.f, 0.f, "Frequency modulation"); configParam(PW_PARAM, 0.f, 1.f, 0.5f, "Pulse width", "%", 0.f, 100.f); @@ -303,7 +303,7 @@ struct VCO2 : Module { config(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS, NUM_LIGHTS); configParam(MODE_PARAM, 0.f, 1.f, 1.f, "Analog mode"); configParam(SYNC_PARAM, 0.f, 1.f, 1.f, "Hard sync"); - configParam(FREQ_PARAM, -54.f, 54.f, 0.f, "Frequency", "Hz", std::pow(2, 1/12.f), dsp::FREQ_C4); + configParam(FREQ_PARAM, -54.f, 54.f, 0.f, "Frequency", " Hz", dsp::FREQ_SEMITONE, dsp::FREQ_C4); configParam(WAVE_PARAM, 0.f, 3.f, 1.5f, "Wave"); configParam(FM_PARAM, 0.f, 1.f, 0.f, "Frequency modulation"); }