#pragma once #include #include #include #include namespace rack { namespace app { struct MidiWidget : LedDisplay { LedDisplayChoice* driverChoice; LedDisplaySeparator* driverSeparator; LedDisplayChoice* deviceChoice; LedDisplaySeparator* deviceSeparator; LedDisplayChoice* channelChoice; void setMidiPort(midi::Port* port); }; /** Appends menu items to the given menu with driver, device, etc. Useful alternative to putting a MidiWidget on your module's panel. */ void appendMidiMenu(ui::Menu* menu, midi::Port* port); } // namespace app } // namespace rack