Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

(Optional) non-blocking calls of MuseScore to show/play musicxml output

Abierto
#1,764 2 comentarios 1 reacción 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
Medio día
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
python
Área
tooling

Línea de trabajo

The blocking call is the subprocess.run invocation around line 205 of music21/converter/subConverters.py, which the issue proposes replacing with subprocess.Popen. Read how that converter's show path builds cmd and how other subconverters reach the same code, since the change affects every format shown through it. Done means score.show('xml') returns immediately while the existing non-blocking behaviour for other formats is unchanged, and the open question about side effects on other converters is answered in the thread.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

enhancement

Would be great if score.show('xml') wouldn't block the execution of a script until the MuseScore instance displaying the musicxml-file is closed down. Similar request as this:

https://stackoverflow.com/questions/64949701/stream-show-without-interrupting-code-in-music21-similar-to-matplotlib-pyploy

But subprocess.run is a blocking call, subprocress.Popen is the non-blocking call

Motivation
Improve usability in a scripting environment like PyCharm

Proposed implementation

I fixed it locally in subConverters.py, line 205:

        #subprocess.run(cmd, check=False, shell=shell)
        subprocess.Popen(cmd, shell=shell)

But don't know enough about the code structure to know if this will cause problems with other converters.

Intent

[X ] I plan on implementing this myself.
[ ] I am willing to pay to have this feature added.
[X ] I am starting a discussion with the hope that community members will volunteer their time to create this. I understand that individuals work on features of interest to them and that this feature may never be implemented.

Lenguaje dominante
Python
Estrellas
2.6k
Forks
459
Merge medio
1 d 7 h
PR fusionados (30 d)
40

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de cuthbertLab/music21

Todos los issues de cuthbertLab/music21

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.