diff --git a/src/core/AudioInterface.cpp b/src/core/AudioInterface.cpp index 6ac69253..7f97fd60 100644 --- a/src/core/AudioInterface.cpp +++ b/src/core/AudioInterface.cpp @@ -322,7 +322,7 @@ struct AudioChoice : ChoiceButton { } void step() { std::string name = audioInterface->getDeviceName(audioInterface->deviceId); - text = name.empty() ? "(no device)" : ellipsize(name, 14); + text = ellipsize(name, 24); } }; diff --git a/src/core/MidiInterface.cpp b/src/core/MidiInterface.cpp index 57902b60..4d7da0c7 100644 --- a/src/core/MidiInterface.cpp +++ b/src/core/MidiInterface.cpp @@ -244,7 +244,7 @@ struct MidiChoice : ChoiceButton { } void step() { std::string name = midiInterface->getPortName(midiInterface->portId); - text = name.empty() ? "(no device)" : ellipsize(name, 14); + text = ellipsize(name, 8); } }; @@ -287,7 +287,7 @@ struct ChannelChoice : ChoiceButton { MidiInterfaceWidget::MidiInterfaceWidget() { MidiInterface *module = new MidiInterface(); setModule(module); - box.size = Vec(15*8, 380); + box.size = Vec(15*6, 380); { Panel *panel = new LightPanel(); @@ -317,7 +317,7 @@ MidiInterfaceWidget::MidiInterfaceWidget() { { Label *label = new Label(); label->box.pos = Vec(margin, yPos); - label->text = "MIDI channel"; + label->text = "Channel"; addChild(label); yPos += labelHeight + margin; @@ -329,19 +329,47 @@ MidiInterfaceWidget::MidiInterfaceWidget() { yPos += channelChoice->box.size.y + margin; } - yPos += 5; - addOutput(createOutput(Vec(20, yPos), module, MidiInterface::PITCH_OUTPUT)); - yPos += 37 + margin; + { + Label *label = new Label(); + label->box.pos = Vec(margin, yPos); + label->text = "1V/oct"; + addChild(label); + yPos += labelHeight + margin; + + addOutput(createOutput(Vec(28, yPos), module, MidiInterface::PITCH_OUTPUT)); + yPos += 37 + margin; + } + + { + Label *label = new Label(); + label->box.pos = Vec(margin, yPos); + label->text = "Gate"; + addChild(label); + yPos += labelHeight + margin; + + addOutput(createOutput(Vec(28, yPos), module, MidiInterface::GATE_OUTPUT)); + yPos += 37 + margin; + } + + { + Label *label = new Label(); + label->box.pos = Vec(margin, yPos); + label->text = "Mod Wheel"; + addChild(label); + yPos += labelHeight + margin; - yPos += 5; - addOutput(createOutput(Vec(20, yPos), module, MidiInterface::GATE_OUTPUT)); - yPos += 37 + margin; + addOutput(createOutput(Vec(28, yPos), module, MidiInterface::MOD_OUTPUT)); + yPos += 37 + margin; + } - yPos += 5; - addOutput(createOutput(Vec(20, yPos), module, MidiInterface::MOD_OUTPUT)); - yPos += 37 + margin; + { + Label *label = new Label(); + label->box.pos = Vec(margin, yPos); + label->text = "Pitch Wheel"; + addChild(label); + yPos += labelHeight + margin; - yPos += 5; - addOutput(createOutput(Vec(20, yPos), module, MidiInterface::PITCHWHEEL_OUTPUT)); - yPos += 37 + margin; + addOutput(createOutput(Vec(28, yPos), module, MidiInterface::PITCHWHEEL_OUTPUT)); + yPos += 37 + margin; + } }