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.

18 lines
379B

  1. #include "rack.hpp"
  2. using namespace rack;
  3. namespace rack_plugin_rcm {
  4. struct CopyPatternItem : MenuItem {
  5. PianoRollWidget *widget = NULL;
  6. PianoRollModule *module = NULL;
  7. int type;
  8. void onAction(EventAction &e) override {
  9. module->patternData.copyPattern(module->transport.currentPattern());
  10. widget->state = PATTERNLOADED;
  11. }
  12. };
  13. } // namespace rack_plugin_rcm