Browse Source

polish cc-to-cv module

tags/v0.4.0
ben 7 years ago
parent
commit
8b484e8772
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      src/core/MidiInterface.cpp

+ 4
- 4
src/core/MidiInterface.cpp View File

@@ -696,7 +696,7 @@ MIDICCToCVWidget::MIDICCToCVWidget() {
channelChoice->box.pos = Vec((box.size.x - 10) / 2 + margin, yPos);
channelChoice->box.size.x = (box.size.x / 2.0) - margin;
addChild(channelChoice);
yPos += channelChoice->box.size.y + margin * 2;
yPos += channelChoice->box.size.y + margin * 3;
}

for (int i = 0; i < MIDICCToCVInterface::NUM_OUTPUTS; i++) {
@@ -704,8 +704,8 @@ MIDICCToCVWidget::MIDICCToCVWidget() {
ccNumChoice->ccNum = &module->ccNum[i];
ccNumChoice->inited = &module->ccNumInited[i];
ccNumChoice->text = std::to_string(module->ccNum[i]);
ccNumChoice->box.pos = Vec(10 + (i % 4) * (63), yPos);
ccNumChoice->box.size.x = 15 * 2;
ccNumChoice->box.pos = Vec(11 + (i % 4) * (63), yPos);
ccNumChoice->box.size.x = 29;

addChild(ccNumChoice);

@@ -714,7 +714,7 @@ MIDICCToCVWidget::MIDICCToCVWidget() {
addChild(createValueLight<SmallLight<GreenValueLight>>(Vec((i % 4) * (63) + 32, yPos + 5), &module->lights[i]));

if ((i + 1) % 4 == 0) {
yPos += 50 + margin;
yPos += 47 + margin;
} else {
yPos -= labelHeight + margin;
}


Loading…
Cancel
Save