Browse Source

Use non-integer positions for 8VERT

tags/v0.5.0
Andrew Belt 7 years ago
parent
commit
cc6c420e60
1 changed files with 32 additions and 32 deletions
  1. +32
    -32
      src/8VERT.cpp

+ 32
- 32
src/8VERT.cpp View File

@@ -45,39 +45,39 @@ _8VERTWidget::_8VERTWidget() {
addChild(createScrew<ScrewSilver>(Vec(15, 365))); addChild(createScrew<ScrewSilver>(Vec(15, 365)));
addChild(createScrew<ScrewSilver>(Vec(box.size.x - 30, 365))); addChild(createScrew<ScrewSilver>(Vec(box.size.x - 30, 365)));


addParam(createParam<RoundSmallBlackKnob>(Vec(45, 48), module, 0, -1.0, 1.0, 0.0));
addParam(createParam<RoundSmallBlackKnob>(Vec(45, 86), module, 1, -1.0, 1.0, 0.0));
addParam(createParam<RoundSmallBlackKnob>(Vec(45, 125), module, 2, -1.0, 1.0, 0.0));
addParam(createParam<RoundSmallBlackKnob>(Vec(45, 163), module, 3, -1.0, 1.0, 0.0));
addParam(createParam<RoundSmallBlackKnob>(Vec(45, 202), module, 4, -1.0, 1.0, 0.0));
addParam(createParam<RoundSmallBlackKnob>(Vec(45, 240), module, 5, -1.0, 1.0, 0.0));
addParam(createParam<RoundSmallBlackKnob>(Vec(45, 278), module, 6, -1.0, 1.0, 0.0));
addParam(createParam<RoundSmallBlackKnob>(Vec(45, 317), module, 7, -1.0, 1.0, 0.0));
addParam(createParam<RoundSmallBlackKnob>(Vec(45.308, 47.753), module, 0, -1.0, 1.0, 0.0));
addParam(createParam<RoundSmallBlackKnob>(Vec(45.308, 86.198), module, 1, -1.0, 1.0, 0.0));
addParam(createParam<RoundSmallBlackKnob>(Vec(45.308, 124.639), module, 2, -1.0, 1.0, 0.0));
addParam(createParam<RoundSmallBlackKnob>(Vec(45.308, 163.084), module, 3, -1.0, 1.0, 0.0));
addParam(createParam<RoundSmallBlackKnob>(Vec(45.308, 201.529), module, 4, -1.0, 1.0, 0.0));
addParam(createParam<RoundSmallBlackKnob>(Vec(45.308, 239.974), module, 5, -1.0, 1.0, 0.0));
addParam(createParam<RoundSmallBlackKnob>(Vec(45.308, 278.415), module, 6, -1.0, 1.0, 0.0));
addParam(createParam<RoundSmallBlackKnob>(Vec(45.308, 316.86), module, 7, -1.0, 1.0, 0.0));


addInput(createInput<PJ301MPort>(Vec(10, 50), module, 0));
addInput(createInput<PJ301MPort>(Vec(10, 89), module, 1));
addInput(createInput<PJ301MPort>(Vec(10, 127), module, 2));
addInput(createInput<PJ301MPort>(Vec(10, 166), module, 3));
addInput(createInput<PJ301MPort>(Vec(10, 204), module, 4));
addInput(createInput<PJ301MPort>(Vec(10, 243), module, 5));
addInput(createInput<PJ301MPort>(Vec(10, 281), module, 6));
addInput(createInput<PJ301MPort>(Vec(10, 320), module, 7));
addInput(createInput<PJ301MPort>(Vec(9.507, 50.397), module, 0));
addInput(createInput<PJ301MPort>(Vec(9.507, 88.842), module, 1));
addInput(createInput<PJ301MPort>(Vec(9.507, 127.283), module, 2));
addInput(createInput<PJ301MPort>(Vec(9.507, 165.728), module, 3));
addInput(createInput<PJ301MPort>(Vec(9.507, 204.173), module, 4));
addInput(createInput<PJ301MPort>(Vec(9.507, 242.614), module, 5));
addInput(createInput<PJ301MPort>(Vec(9.507, 281.059), module, 6));
addInput(createInput<PJ301MPort>(Vec(9.507, 319.504), module, 7));


addOutput(createOutput<PJ301MPort>(Vec(86, 50), module, 0));
addOutput(createOutput<PJ301MPort>(Vec(86, 89), module, 1));
addOutput(createOutput<PJ301MPort>(Vec(86, 127), module, 2));
addOutput(createOutput<PJ301MPort>(Vec(86, 166), module, 3));
addOutput(createOutput<PJ301MPort>(Vec(86, 204), module, 4));
addOutput(createOutput<PJ301MPort>(Vec(86, 243), module, 5));
addOutput(createOutput<PJ301MPort>(Vec(86, 281), module, 6));
addOutput(createOutput<PJ301MPort>(Vec(86, 320), module, 7));
addOutput(createOutput<PJ301MPort>(Vec(86.393, 50.397), module, 0));
addOutput(createOutput<PJ301MPort>(Vec(86.393, 88.842), module, 1));
addOutput(createOutput<PJ301MPort>(Vec(86.393, 127.283), module, 2));
addOutput(createOutput<PJ301MPort>(Vec(86.393, 165.728), module, 3));
addOutput(createOutput<PJ301MPort>(Vec(86.393, 204.173), module, 4));
addOutput(createOutput<PJ301MPort>(Vec(86.393, 242.614), module, 5));
addOutput(createOutput<PJ301MPort>(Vec(86.393, 281.059), module, 6));
addOutput(createOutput<PJ301MPort>(Vec(86.393, 319.504), module, 7));


addChild(createValueLight<TinyLight<GreenRedPolarityLight>>(Vec(107, 49), &module->lights[0].value));
addChild(createValueLight<TinyLight<GreenRedPolarityLight>>(Vec(107, 88), &module->lights[1].value));
addChild(createValueLight<TinyLight<GreenRedPolarityLight>>(Vec(107, 126), &module->lights[2].value));
addChild(createValueLight<TinyLight<GreenRedPolarityLight>>(Vec(107, 165), &module->lights[3].value));
addChild(createValueLight<TinyLight<GreenRedPolarityLight>>(Vec(107, 203), &module->lights[4].value));
addChild(createValueLight<TinyLight<GreenRedPolarityLight>>(Vec(107, 242), &module->lights[5].value));
addChild(createValueLight<TinyLight<GreenRedPolarityLight>>(Vec(107, 280), &module->lights[6].value));
addChild(createValueLight<TinyLight<GreenRedPolarityLight>>(Vec(107, 319), &module->lights[7].value));
addChild(createValueLight<TinyLight<GreenRedPolarityLight>>(Vec(107.702, 50.414), &module->lights[0].value));
addChild(createValueLight<TinyLight<GreenRedPolarityLight>>(Vec(107.702, 88.859), &module->lights[1].value));
addChild(createValueLight<TinyLight<GreenRedPolarityLight>>(Vec(107.702, 127.304), &module->lights[2].value));
addChild(createValueLight<TinyLight<GreenRedPolarityLight>>(Vec(107.702, 165.745), &module->lights[3].value));
addChild(createValueLight<TinyLight<GreenRedPolarityLight>>(Vec(107.702, 204.19), &module->lights[4].value));
addChild(createValueLight<TinyLight<GreenRedPolarityLight>>(Vec(107.702, 242.635), &module->lights[5].value));
addChild(createValueLight<TinyLight<GreenRedPolarityLight>>(Vec(107.702, 281.076), &module->lights[6].value));
addChild(createValueLight<TinyLight<GreenRedPolarityLight>>(Vec(107.702, 319.521), &module->lights[7].value));
} }

Loading…
Cancel
Save