* 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)
| 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. |
no outgoing calls
no test coverage detected