Skip to content

Commit

Permalink
0.5.12
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastien-bouffier committed Jan 1, 2018
1 parent 47379e2 commit 904cb73
Show file tree
Hide file tree
Showing 13 changed files with 194 additions and 168 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
SLUG = Bidoo
VERSION = 0.5.11
VERSION = 0.5.12

# FLAGS will be passed to both the C and C++ compiler
FLAGS +=
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Bidoo's plugins for [VCVRack](https://vcvrack.com)

<!-- Version and License Badges -->
![Version](https://img.shields.io/badge/version-0.5.11-green.svg?style=flat-square)
![Version](https://img.shields.io/badge/version-0.5.12-green.svg?style=flat-square)
![License](https://img.shields.io/badge/license-BSD3-blue.svg?style=flat-square)
![Language](https://img.shields.io/badge/language-C++-yellow.svg?style=flat-square)

Expand All @@ -13,6 +13,8 @@ You can find information on that plugins pack in the [wiki](https://github.com/s

## Last changes

Fix clock reset issue. Change flashing blue for a more chill blue on controls. Fix root note and scale saving bug.

dTrOY has a new sensitivity control (S trimpot) to attenuate pitch buttons' range. dTrOY has, finally, 16 patterns in memory. Blue controls are saved in the pattern selected by the dedicated knob (the pattern number is white). If the pattern input is not active the pattern which is played is the same one as the one you selected (the pattern number is red). If the input is active then dTrOY plays the pattern selected by the input, you can still edit this pattern or another one at run time by selecting the target pattern with the knob (red and white pattern numbers may differ, white is current edit, red is played). Light pulses on Slide/Skip leds always follow the played pattern. With this version changing pattern resets the position to the first step. Maybe at some point I will add alternative switch modes.

## License
Expand Down
Binary file modified images/pack.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions res/ComponentLibrary/BlueCKD6_0.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 6 additions & 7 deletions res/ComponentLibrary/BlueCKD6_1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions res/ComponentLibrary/BlueKnobBidoo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions res/ComponentLibrary/BlueTrimpotBidoo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 19 additions & 4 deletions res/ComponentLibrary/bidooSlidePotHandle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions res/ComponentLibrary/bidooSlidePotLong.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions res/ComponentLibrary/bidooSlidePotShort.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
266 changes: 135 additions & 131 deletions res/DTROY.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 8 additions & 3 deletions res/DTROYtemp.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 9 additions & 8 deletions src/DTROY.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -511,8 +511,8 @@ struct DTROY : Module {
// Quantization inspired from https://github.com/jeremywen/JW-Modules

float getOneRandomNoteInScale(){
rootNote = clampi(patterns[playedPattern].rootNoteParam + inputs[ROOT_NOTE_INPUT].value, 0.0, NUM_NOTES-1);
curScaleVal = clampi(patterns[playedPattern].scaleParam + inputs[SCALE_INPUT].value, 0.0, NUM_SCALES-1);
rootNote = clampi(patterns[playedPattern].rootNote + inputs[ROOT_NOTE_INPUT].value, 0.0, NUM_NOTES-1);
curScaleVal = clampi(patterns[playedPattern].scale + inputs[SCALE_INPUT].value, 0.0, NUM_SCALES-1);
int *curScaleArr;
int notesInScale = 0;
switch(curScaleVal){
Expand Down Expand Up @@ -548,8 +548,8 @@ struct DTROY : Module {
}

float closestVoltageInScale(float voltsIn){
rootNote = clampi(patterns[playedPattern].rootNoteParam + inputs[ROOT_NOTE_INPUT].value, 0.0, DTROY::NUM_NOTES-1);
curScaleVal = clampi(patterns[playedPattern].scaleParam + inputs[SCALE_INPUT].value, 0.0, DTROY::NUM_SCALES-1);
rootNote = clampi(patterns[playedPattern].rootNote + inputs[ROOT_NOTE_INPUT].value, 0.0, DTROY::NUM_NOTES-1);
curScaleVal = clampi(patterns[playedPattern].scale + inputs[SCALE_INPUT].value, 0.0, DTROY::NUM_SCALES-1);
int *curScaleArr;
int notesInScale = 0;
switch(curScaleVal){
Expand Down Expand Up @@ -633,6 +633,7 @@ void DTROY::step() {
if (resetTrigger.process(params[RESET_PARAM].value + inputs[RESET_INPUT].value)) {
phase = 0.0;
reStart = true;
nextStep = true;
lights[RESET_LIGHT].value = 1.0;
}
// Trigs Update
Expand Down Expand Up @@ -921,10 +922,10 @@ DTROYWidget::DTROYWidget() {
addParam(typeParams[i]);
slideParams[i] = createParam<LEDButton>(Vec(portX1[i]+2, 313), module, DTROY::TRIG_SLIDE_PARAM + i, 0.0, 1.0, 0);
addParam(slideParams[i]);
addChild(createLight<SmallLight<GreenLight>>(Vec(portX1[i]+8, 319), module, DTROY::SLIDES_LIGHTS + i));
addChild(createLight<SmallLight<BlueLight>>(Vec(portX1[i]+8, 319), module, DTROY::SLIDES_LIGHTS + i));
skipParams[i] = createParam<LEDButton>(Vec(portX1[i]+2, 338), module, DTROY::TRIG_SKIP_PARAM + i, 0.0, 1.0, 0);
addParam(skipParams[i]);
addChild(createLight<SmallLight<GreenLight>>(Vec(portX1[i]+8, 344), module, DTROY::SKIPS_LIGHTS + i));
addChild(createLight<SmallLight<BlueLight>>(Vec(portX1[i]+8, 344), module, DTROY::SKIPS_LIGHTS + i));
}

addInput(createInput<PJ301MPort>(Vec(portX0[0], 331), module, DTROY::EXTGATE1_INPUT));
Expand All @@ -933,8 +934,8 @@ DTROYWidget::DTROYWidget() {
addOutput(createOutput<PJ301MPort>(Vec(portX0[3]-1, 331), module, DTROY::PITCH_OUTPUT));

this->stepsParam->setValue(module->patterns[module->selectedPattern].numberOfStepsParam);
this->rootNoteParam->setValue(module->patterns[module->selectedPattern].rootNoteParam);
this->scaleParam->setValue(module->patterns[module->selectedPattern].scaleParam);
this->rootNoteParam->setValue(module->patterns[module->selectedPattern].rootNote);
this->scaleParam->setValue(module->patterns[module->selectedPattern].scale);
this->gateTimeParam->setValue(module->patterns[module->selectedPattern].gateTime);
this->slideTimeParam->setValue(module->patterns[module->selectedPattern].slideTime);
this->sensitivityParam->setValue(module->patterns[module->selectedPattern].sensitivity);
Expand Down

0 comments on commit 904cb73

Please sign in to comment.