How to get the first and last note startTick? #1190
-
hey! hope you're doing great :) I'm building an app that uses alphatab as a WebView but the problem is that I can't select the playback range (when I tap and hold to select the range the web view selects the text instead and it doesn't seem to pass down the event to alphatab) and a workaround would be to create a range where the user could slide to select a range and I would manually call the alphatab api. I did most of the logic but I'm struggling to get the startTick of the first and last notes so I can build up my range. Here's what I have so far:
// then I would call
but it doesn't seem to be accurate as some of the last notes are left behind, I've also tried with absoluteDisplayStart and absolutePlaybackStart and I got similar result. is there a way to do what I've been trying? thank you |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I think there are two ways to tackle this topic:
|
Beta Was this translation helpful? Give feedback.
I think there are two ways to tackle this topic:
MidiTickLookup
to lookup the correct range like described here: #1126