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

Method ticksToMillis

packages/alphatab/src/midi/MidiUtils.ts:18–20  ·  view source on GitHub ↗

* Converts the given midi tick duration into milliseconds. * @param ticks The duration in midi ticks * @param tempo The current tempo in BPM. * @returns The converted duration in milliseconds.

(ticks: number, tempo: number)

Source from the content-addressed store, hash-verified

16 * @returns The converted duration in milliseconds.
17 */
18 public static ticksToMillis(ticks: number, tempo: number): number {
19 return (ticks * (60000.0 / (tempo * MidiUtils.QuarterTime))) | 0;
20 }
21
22 /**
23 * Converts the given midi tick duration into milliseconds.

Callers 12

_playThroughSongMethod · 0.80
_processBarTimeMethod · 0.80
_generateBarMethod · 0.80
_generateBeatMethod · 0.80
_generateBendValuesMethod · 0.80
calculateDurationMethod · 0.80
setupMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected