Browse Source

Finalize Random.

tags/v1.3.0
Andrew Belt 5 years ago
parent
commit
1e4aed960e
4 changed files with 23 additions and 22 deletions
  1. +16
    -15
      plugin.json
  2. +3
    -3
      src/Random.cpp
  3. +2
    -2
      src/plugin.cpp
  4. +2
    -2
      src/plugin.hpp

+ 16
- 15
plugin.json View File

@@ -1,6 +1,6 @@
{ {
"slug": "Fundamental", "slug": "Fundamental",
"version": "1.dev",
"version": "1.3.0",
"license": "GPL-3.0-only", "license": "GPL-3.0-only",
"name": "Fundamental", "name": "Fundamental",
"brand": "VCV", "brand": "VCV",
@@ -175,6 +175,15 @@
"Polyphonic" "Polyphonic"
] ]
}, },
{
"slug": "Quantizer",
"name": "Quantizer",
"description": "12-note quantizer and scale selector",
"tags": [
"Quantizer",
"Polyphonic"
]
},
{ {
"slug": "Split", "slug": "Split",
"name": "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": [ "tags": [
"Quantizer",
"Polyphonic"
"Noise"
] ]
}, },
{ {
@@ -234,15 +242,8 @@
"name": "Random", "name": "Random",
"description": "Random CV generator", "description": "Random CV generator",
"tags": [ "tags": [
"Random"
]
},
{
"slug": "Noise",
"name": "Noise",
"description": "Multicolored noise generator",
"tags": [
"Noise"
"Random",
"Sample and hold"
] ]
} }
] ]

+ 3
- 3
src/Random.cpp View File

@@ -40,8 +40,8 @@ struct Random : Module {
config(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS, NUM_LIGHTS); 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(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(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() { void trigger() {
@@ -75,7 +75,7 @@ struct Random : Module {
value -= 0.5f; value -= 0.5f;
} }
} }
lights[RATE_LIGHT].setBrightness(1.f);
lights[RATE_LIGHT].setBrightness(3.f);
} }


void process(const ProcessArgs& args) override { void process(const ProcessArgs& args) override {


+ 2
- 2
src/plugin.cpp View File

@@ -25,11 +25,11 @@ void init(rack::Plugin* p) {
p->addModel(modelSequentialSwitch2); p->addModel(modelSequentialSwitch2);
p->addModel(modelOctave); p->addModel(modelOctave);
p->addModel(modelQuantizer); p->addModel(modelQuantizer);
p->addModel(modelRandom);
p->addModel(modelNoise);
p->addModel(modelSplit); p->addModel(modelSplit);
p->addModel(modelMerge); p->addModel(modelMerge);
p->addModel(modelSum); p->addModel(modelSum);
p->addModel(modelViz); p->addModel(modelViz);
p->addModel(modelMidSide); p->addModel(modelMidSide);
p->addModel(modelNoise);
p->addModel(modelRandom);
} }

+ 2
- 2
src/plugin.hpp View File

@@ -25,10 +25,10 @@ extern Model* modelSequentialSwitch1;
extern Model* modelSequentialSwitch2; extern Model* modelSequentialSwitch2;
extern Model* modelOctave; extern Model* modelOctave;
extern Model* modelQuantizer; extern Model* modelQuantizer;
extern Model* modelRandom;
extern Model* modelNoise;
extern Model* modelSplit; extern Model* modelSplit;
extern Model* modelMerge; extern Model* modelMerge;
extern Model* modelSum; extern Model* modelSum;
extern Model* modelViz; extern Model* modelViz;
extern Model* modelMidSide; extern Model* modelMidSide;
extern Model* modelNoise;
extern Model* modelRandom;

Loading…
Cancel
Save