-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Working with Nakamura match files #349
Comments
Hi @eoinroe! Could you perhaps send the Nakamura match file that causes this issue? I believe the issue might be related to the Note ids, and how the alignment tool by Nakamura et al. uses them in their match file. In any case, if you using Nakamura et al.'s tool for alignment, you might be interested in trying a different library, Parangonar, which is the currently the SOTA for symbolic alignment and plays better with Partitura. |
Hi @neosatrapahereje, yes I realised the issue is related to the note ids as you say since the result of Nakamura uses this format for note ids: P1-1-1, P1-1-6 etc. This is what he says about them in the Manual for his Symbolic Music Alignment Tool: ”The note ID indicates a note in the reference score MusicXML file ex_ref.xml: Px-y-z means the note is the z th note in the y th bar of part x.“ So instead of loading the score using
However, I don't think the Nakamura match files give you quite enough information about the score to create a
And I get the following error:
In any case here is the Nakamura match file that is causing the issue - ex_align1_match.txt This file was generated by running the C++ Alignment Tool found here Thanks for the Parangonar recommendation. I discovered it last week after running into these issues and it works great. I thought it was still worth documenting the issues I ran into using Nakamura match files with Partitura for other users. |
Hi @eoinroe ! Thank you for the issue!
notice that I also created a dummy field |
You have a peculiar use case here, but it looks like it can work. Let us know if you encounter more bugs and thanks for the documentation pointer! |
Although it is possible to load Nakamura match files using
pt.load_nakamuramatch(matchfile)
is is unclear how to get the arrays that are returned to work correctly withget_time_maps_from_alignment
.I am trying the following approach:
However, I get the following error:
The docs for
performance.from_note_array()
may need to be updated since the following information about the structured array fields is not the same as what is in the Partitura codebase, i.e., ‘onset_div’, ‘duration_div’ are not used in the method definition and 'channel' is in fact a valid field. This led to some confusion where I created a new structured array with the 'channel' field removed.The text was updated successfully, but these errors were encountered: