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

Field timeSignatures[index].measure sematic #74

Closed
praisethemoon opened this issue May 26, 2019 · 1 comment
Closed

Field timeSignatures[index].measure sematic #74

praisethemoon opened this issue May 26, 2019 · 1 comment

Comments

@praisethemoon
Copy link

Hello!
Thanks for the awesome library!

I have some difficulties understand the measure field from timeSignatures[index].measure. Is it like the time from which the corresponding time signature changes? The readme API is well documented except for timeSignatures: TimeSignatureEvent[] I think.

Cheers!

@tambien
Copy link
Contributor

tambien commented Jul 30, 2019

This is the number of elapsed measures at the time of the event. If you were to add a time change event 3 seconds into the file going from [5, 4] to [4, 4], you'd need to know what measure you left off at so that you could calculate the bars/beats that you were on after the tempo change. it's not enough to have the 'ticks' or 'time' fields since those are independent of the time signature.

@tambien tambien closed this as completed Jul 30, 2019
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