Skip to content
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

Timing information of individual notes ? #129

Open
nyue opened this issue Feb 26, 2022 · 1 comment
Open

Timing information of individual notes ? #129

nyue opened this issue Feb 26, 2022 · 1 comment

Comments

@nyue
Copy link

nyue commented Feb 26, 2022

I'd like to do the following with the library and need you guidance as to where to start.

I have no problem building the library and linking it via CMake. It is the API that I need a little guidance with.

I'd like to

  • Load a MusicXML file (piano, two hands)
  • Find the beam (hands ?)
  • For each beam, iterate all the notes
  • For each note, extract the timing information for each note for further mathematical processing.

Which example or test code illustrate some of the above ?

What classes or methods should I dive further into ?

Cheers

@webern
Copy link
Owner

webern commented Mar 2, 2022

Sorry I haven't answered yet. I'll try to get you an answer, but the short answer is that the tickTime field tells you when the note starts and duration tells you how long it is. Search for tickTime in the "api" directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants