mx icon indicating copy to clipboard operation
mx copied to clipboard

Timing information of individual notes ?

Open nyue opened this issue 3 years ago • 1 comments

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

nyue avatar Feb 26 '22 04:02 nyue

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.

webern avatar Mar 02 '22 15:03 webern