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

Method toTicks

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

* Converts a duration value to its ticks equivalent.

(duration: Duration)

Source from the content-addressed store, hash-verified

33 * Converts a duration value to its ticks equivalent.
34 */
35 public static toTicks(duration: Duration): number {
36 return MidiUtils.valueToTicks(duration);
37 }
38
39 /**
40 * Converts a numerical value to its ticks equivalent.

Callers 15

ensureBeatMethod · 0.80
_createRestForGapMethod · 0.80
MusicXmlImporterClass · 0.80
_generateDeadSlapMethod · 0.80
_generateOrnamentMethod · 0.80
_getNoteDurationMethod · 0.80
_generateTrillMethod · 0.80
MidiFileGeneratorClass · 0.80
_getRasgueadoInfoMethod · 0.80
_calculateDurationMethod · 0.80

Calls 1

valueToTicksMethod · 0.80

Tested by

no test coverage detected