You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
635B

  1. #pragma once
  2. #include <app/common.hpp>
  3. #include <app/LedDisplay.hpp>
  4. #include <ui/Menu.hpp>
  5. #include <midi.hpp>
  6. namespace rack {
  7. namespace app {
  8. struct MidiWidget : LedDisplay {
  9. LedDisplayChoice* driverChoice;
  10. LedDisplaySeparator* driverSeparator;
  11. LedDisplayChoice* deviceChoice;
  12. LedDisplaySeparator* deviceSeparator;
  13. LedDisplayChoice* channelChoice;
  14. void setMidiPort(midi::Port* port);
  15. };
  16. /** Appends menu items to the given menu with driver, device, etc.
  17. Useful alternative to putting a MidiWidget on your module's panel.
  18. */
  19. void appendMidiMenu(ui::Menu* menu, midi::Port* port);
  20. } // namespace app
  21. } // namespace rack