How do you find the actual song time of a note? #155
Answered
by
melanchall
dreammixgames
asked this question in
Q&A
-
I was loading notes and dividing them by the current beats per minute to get the note position before. I found out that that wouldn't work how I wanted it to. What I want to know how to do now, is how to find out the actual time that the note is played, and not Note.Time. Is that possible? |
Beta Was this translation helpful? Give feedback.
Answered by
melanchall
Jan 17, 2022
Replies: 1 comment 1 reply
-
You can get time and length in many different formats. Please see overview article of the documentation. For example, to get a note's time in terms of microseconds, use this code: var metricTimeSpan = note.TimeAs<MetricTimeSpan>(tempoMap); Just use documentation to learn more about API. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
dreammixgames
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can get time and length in many different formats. Please see overview article of the documentation. For example, to get a note's time in terms of microseconds, use this code:
Just use documentation to learn more about API.