Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
cfoulc authored Oct 29, 2018
1 parent c7ae25f commit bdb8f16
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 15 deletions.
7 changes: 1 addition & 6 deletions src/ALGEBRA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,10 @@ using namespace std;

struct ALGEBRA : Module {
enum ParamIds {
TR1_PARAM,
TR2_PARAM,
PAN_PARAM,
OP_PARAM,
NUM_PARAMS = OP_PARAM+4
NUM_PARAMS = OP_PARAM+6
};
enum InputIds {
TRIG1_INPUT,
TRIG2_INPUT,
IN1_INPUT,
IN2_INPUT,
NUM_INPUTS
Expand Down
20 changes: 11 additions & 9 deletions src/DISTO.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,26 +71,28 @@ struct DISTODisplay : TransparentWidget {

float *xxxx;
int *llll;
//int bpos = 0;
float bu[5] = {};
int ind = 0;

DISTODisplay() {


}

void draw(NVGcontext *vg) {


{nvgStrokeColor(vg, nvgRGBA(0x28, 0xb0, 0xf3, 0xff));
bu[ind] = *xxxx ;
for (int i = 0 ; i<5 ; i++){
{//nvgStrokeColor(vg, nvgRGBA(0x28, 0xb0, 0xf3, 0xff));
nvgBeginPath(vg);
nvgCircle(vg, 0,0, *xxxx);
nvgCircle(vg, 0,0, bu[i]);
nvgFillColor(vg, nvgRGBA(0x28, 0xb0, 0xf3, 0xff));
nvgGlobalCompositeOperation(vg, NVG_LIGHTER);
nvgFill(vg);
//nvgClosePath(vg);
nvgClosePath(vg);
}
nvgGlobalCompositeOperation(vg, NVG_LIGHTER);
nvgStroke(vg);

}
//nvgStroke(vg);
if (ind<4) ind = ind +1; else ind = 0;
}
};

Expand Down

0 comments on commit bdb8f16

Please sign in to comment.