Calculate tempo values
calculate_tempo_valuesUse this when the user wants bpm to ms, a delay time calculator, tempo calculator, note cycle hertz, milliseconds to beats per minute, bar length or song length. Accepts BPM or a note duration and returns whole to sixty-fourth values, dotted and triplet, pre-delay suggestions and approximate Italian marking ranges. BPM is quarter notes per minute, 20 to 400; up to 100000 song bars. Hertz is rhythmic repetition, not pitch. Does not record audio or detect pitch.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bpm | No | Quarter notes per minute, 20 to 400, up to three decimal places. Example: 120. | |
| bars | No | Optional song bar count at this tempo and time signature. Example: 32. | |
| modifier | No | Modifier for milliseconds: straight (default), dotted, or triplet. Example: dotted. | |
| beat_unit | No | Time signature denominator. Default 4. BPM remains quarter-note BPM. Example: 8 for 6/8. | |
| note_value | No | Note represented by milliseconds; default quarter. Only use with milliseconds. Example: eighth. | |
| milliseconds | No | Duration of the selected note, instead of bpm; resulting BPM must be 20 to 400. Up to three decimal places. Example: 500. | |
| beats_per_bar | No | Time signature numerator, 1 to 16. Default 4. Example: 6 for 6/8. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bpm | Yes | ||
| kind | Yes | ||
| song | Yes | ||
| notes | Yes | ||
| bar_ms | Yes | ||
| markings | Yes | ||
| beat_unit | Yes | ||
| precision | Yes | ||
| predelays | Yes | ||
| delay_note | Yes | ||
| quarter_ms | Yes | ||
| bpm_numeric | Yes | ||
| marking_note | Yes | ||
| beats_per_bar | Yes |