()
| 109 | } |
| 110 | |
| 111 | private refreshCursor(): void { |
| 112 | if (!this.audioElement || !this.audioElement.duration) { |
| 113 | return; |
| 114 | } |
| 115 | this.cursor.style.left = `${(this.audioElement.currentTime / this.audioElement.duration) * 100}%`; |
| 116 | } |
| 117 | |
| 118 | private async draw(backingTrack: alphaTab.model.BackingTrack): Promise<void> { |
| 119 | const buffer = backingTrack.rawAudioFile; |