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

Feature request: `.getOffsetBySiteInSeconds` in Music21Object

Abierto
#1,771 3 comentarios 0 reacciones 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
1-2 días
Aptitud para principiantes
42/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
python
Área
data

Línea de trabajo

Start from the existing seconds property on Music21Object and from how the object's offset relative to a given stream (site) is looked up, since the request asks for the same idea with a user-supplied site. The payload names no files or tests, so locate those in the codebase first. Done means a method that returns the object's start time in seconds relative to the chosen stream, with a test that checks it against a stream of known tempo and durations. The issue has no assignee, no linked pull request, and no reply since its first comment, so confirm with maintainers before starting.

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

Descripción

enhancement

Motivation
We already have Music21Object.seconds that returns the duration of the object in seconds. I hope that we can have a function that returns the object's position relative to a stream it belongs to. It is useful in the following scenarios:

  • Developing audio synthesizers that takes Music21 stream as input.
  • Handling a stream with a lot of objects. A .getOffsetBySiteInSeconds will avoid cumulative error in summing the .seconds duration of all objects.

Feature summary
Add a method, .getOffsetBySiteInSeconds, that returns the position relative to a user-given stream it belongs to.

Proposed implementation

Optionally, describe the implementation or the interface, in code or pseudocode.

Like how .seconds is implemented

Intent

  • I plan on implementing this myself.
  • I am willing to pay to have this feature added.
  • 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 9 h
PR fusionados (30 d)
38

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.