CPJKU / partitura

A python package for handling modern staff notation of music
https://partitura.readthedocs.io
Apache License 2.0
227 stars 15 forks source link

Offsets for tied notes incorrect? #365

Closed gg-g closed 1 month ago

gg-g commented 1 month ago

Python version 3.12.4 Partitura version 1.5.0

onset_div and onset_quarter for tied notes are reported seemingly incorrect

When loading the kern file (test3.krn.txt) for following test fragment

Screenshot from 2024-08-01 16-04-11

and generating a note_array

import partitura as pt
import pandas as pd

score = pt.load_kern('test3.krn')

note_array = score.note_array(include_pitch_spelling=True, include_metrical_position=True)

pd.DataFrame(note_array)

this results in

Screenshot from 2024-08-01 16-10-18

Although there are 4 notes which (should) start at onset_div 0, only two do so, the ones being without a tie.

manoskary commented 1 month ago

Hello,

Thank you for signaling this bug. It will be addressed ASAP. You can hopefully use the fixed version as soon as next week by installing Partitura through the develop branch.

To do this:

pip install git+https://github.com/CPJKU/partitura.git@develop