Skip to content

Running a script on the Piano Roll takes way too long to respond #1106

Description

@lgmventura

Describe the bug
Running a script from the scripts menu on the piano roll takes ages to respond. When you run a script such as humanize, it firstly asks if I want to run it only for selected notes or for all events in the track. When I confirm this, it takes like half a minute to display the dialogue and when I confirm on the dialogue, it takes another minute to run it on a single track. An equivalent feature runs nearly instantly in other pieces of software. Even the script "do nothing", which I guess is there for debugging, takes too long to respond.

To Reproduce
Steps to reproduce the behavior:

  1. Import some MIDI file
  2. Open one track on the piano roll
  3. From the menu scripts, run a script for all note events in track or for a selection. I tested with humanize, do nothing and randomizeVelocityRelative.
  4. MusE 4 freezes and it takes too long to respond.

Expected behavior
To respond nearly instantly. It should no more than running a loop over a couple of thousands of elements.

Desktop (please complete the following information):

  • OS: Ubuntu 22.04
  • Desktop MATE 1.26.0

Additional context
Machine: Acer Aspire V3 772G with 24 GB RAM installed
Intel i7 4th gen 2.2 GHz

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions