MCPcopy Create free account
hub / github.com/CoderLine/alphaTab / refreshCursor

Method refreshCursor

packages/playground/src/components/Waveform.ts:111–116  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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;

Callers 1

WaveformClass · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected