Browse Source

polish MIDI-to-CV and add label to selector

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

+ 16
- 2
src/core/MidiInterface.cpp View File

@@ -381,13 +381,27 @@ MidiToCVWidget::MidiToCVWidget() {
float margin = 5;
float labelHeight = 15;
float yPos = margin;
float yGap = 40;
float yGap = 35;

addChild(createScrew<ScrewSilver>(Vec(margin, 0)));
addChild(createScrew<ScrewSilver>(Vec(box.size.x - 15 - margin, 0)));
addChild(createScrew<ScrewSilver>(Vec(margin, 365)));
addChild(createScrew<ScrewSilver>(Vec(box.size.x - 15 - margin, 365)));

{
Label *label = new Label();
label->box.pos = Vec(margin, yPos);
label->box.pos = Vec(box.size.x - margin - 7 * 15, margin);
label->text = "MIDI to CV";
addChild(label);
yPos = labelHeight * 2;

}

{
Label *label = new Label();
label->box.pos = Vec(margin, yPos);
label->text = "MIDI Interface";
addChild(label);
yPos += labelHeight + margin;

MidiChoice *midiChoice = new MidiChoice();


Loading…
Cancel
Save