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.

17 lines
413B

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