From 1e4aed960e726712f5fbc3f6be8e04a31f145114 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Sat, 19 Oct 2019 06:03:39 -0400 Subject: [PATCH] Finalize Random. --- plugin.json | 31 ++++++++++++++++--------------- src/Random.cpp | 6 +++--- src/plugin.cpp | 4 ++-- src/plugin.hpp | 4 ++-- 4 files changed, 23 insertions(+), 22 deletions(-) diff --git a/plugin.json b/plugin.json index 37f8524..1cc12cf 100644 --- a/plugin.json +++ b/plugin.json @@ -1,6 +1,6 @@ { "slug": "Fundamental", - "version": "1.dev", + "version": "1.3.0", "license": "GPL-3.0-only", "name": "Fundamental", "brand": "VCV", @@ -175,6 +175,15 @@ "Polyphonic" ] }, + { + "slug": "Quantizer", + "name": "Quantizer", + "description": "12-note quantizer and scale selector", + "tags": [ + "Quantizer", + "Polyphonic" + ] + }, { "slug": "Split", "name": "Split", @@ -221,12 +230,11 @@ ] }, { - "slug": "Quantizer", - "name": "Quantizer", - "description": "12-note quantizer and scale selector", + "slug": "Noise", + "name": "Noise", + "description": "Multicolored noise generator", "tags": [ - "Quantizer", - "Polyphonic" + "Noise" ] }, { @@ -234,15 +242,8 @@ "name": "Random", "description": "Random CV generator", "tags": [ - "Random" - ] - }, - { - "slug": "Noise", - "name": "Noise", - "description": "Multicolored noise generator", - "tags": [ - "Noise" + "Random", + "Sample and hold" ] } ] diff --git a/src/Random.cpp b/src/Random.cpp index 2a72334..a887b6a 100644 --- a/src/Random.cpp +++ b/src/Random.cpp @@ -40,8 +40,8 @@ struct Random : Module { config(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS, NUM_LIGHTS); configParam(RATE_PARAM, std::log2(0.002f), std::log2(2000.f), std::log2(2.f), "Rate", " Hz", 2); configParam(SHAPE_PARAM, 0.f, 1.f, 0.5f, "Shape", "%", 0, 100); - configParam(OFFSET_PARAM, 0.f, 1.f, 1.f, "Offset"); - configParam(MODE_PARAM, 0.f, 1.f, 1.f, "Mode"); + configParam(OFFSET_PARAM, 0.f, 1.f, 1.f, "Bipolar/unipolar"); + configParam(MODE_PARAM, 0.f, 1.f, 1.f, "Relative/absolute randomness"); } void trigger() { @@ -75,7 +75,7 @@ struct Random : Module { value -= 0.5f; } } - lights[RATE_LIGHT].setBrightness(1.f); + lights[RATE_LIGHT].setBrightness(3.f); } void process(const ProcessArgs& args) override { diff --git a/src/plugin.cpp b/src/plugin.cpp index 64f8ca7..6631602 100644 --- a/src/plugin.cpp +++ b/src/plugin.cpp @@ -25,11 +25,11 @@ void init(rack::Plugin* p) { p->addModel(modelSequentialSwitch2); p->addModel(modelOctave); p->addModel(modelQuantizer); - p->addModel(modelRandom); - p->addModel(modelNoise); p->addModel(modelSplit); p->addModel(modelMerge); p->addModel(modelSum); p->addModel(modelViz); p->addModel(modelMidSide); + p->addModel(modelNoise); + p->addModel(modelRandom); } diff --git a/src/plugin.hpp b/src/plugin.hpp index 459901e..846b2b9 100644 --- a/src/plugin.hpp +++ b/src/plugin.hpp @@ -25,10 +25,10 @@ extern Model* modelSequentialSwitch1; extern Model* modelSequentialSwitch2; extern Model* modelOctave; extern Model* modelQuantizer; -extern Model* modelRandom; -extern Model* modelNoise; extern Model* modelSplit; extern Model* modelMerge; extern Model* modelSum; extern Model* modelViz; extern Model* modelMidSide; +extern Model* modelNoise; +extern Model* modelRandom;