cw_convert
Convert ticks, bar:beat:tick positions, and seconds with tempo and time-signature settings, so you can translate measurements without opening a Cakewalk project.
Instructions
Convert between ticks, bar:beat:tick and seconds. Pure arithmetic — it needs no project and works with SONAR closed, so a measurement already in hand can be converted without waking anything. Pass exactly one of: ticks | time ("1:01:000") | seconds | bar. Note the bases: bare numbers are BARS, and in bar:beat:tick only the final field is 0-based — 1:01:000 is the start of a project, which is what a freshly opened one reads.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bar | No | A bar number (1-based). | |
| bpm | No | Tempo for the seconds conversion. Only seconds depend on it. | |
| time | No | A bar:beat:tick position as SONAR displays it, e.g. "1:01:000" or "5:02:120". Bar and beat are 1-based; the tick field is 0-based. | |
| ticks | No | A tick count to convert. | |
| seconds | No | A time in seconds, or as "mm:ss.mmm". | |
| timeSig | No | Time signature as [numerator, denominator]. Affects only bars and beats. |