Show metronome
show_metronomeUse this when the user wants a metronome, online metronome, 120 bpm metronome, tap tempo or a metronome for practice. Opens a live beat widget with 20 to 400 quarter-note BPM, 1 to 16 beats per bar, accents, subdivisions and an optional ramp with up to 1000 tempo stages. Reports milliseconds per beat and subdivision. The widget runs only while on screen; audio timing depends on the device. Does not record audio or detect pitch.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bpm | Yes | Quarter notes per minute, 20 to 400, up to three decimal places. Example: 120. | |
| ramp | No | Optional bar-based ramp; start must match bpm. The target then holds. Example: {start_bpm:80,end_bpm:120,bars_per_step:4,bpm_per_step:5}. | |
| beat_unit | No | Time signature denominator. Default 4. BPM remains quarter-note BPM. Example: 8 for 6/8. | |
| subdivision | No | Clicks per signature beat: none=1, eighths=2, triplets=3, sixteenths=4. Default none. Example: eighths. | |
| beats_per_bar | No | Time signature numerator, 1 to 16. Default 4. Example: 6 for 6/8. | |
| accent_pattern | No | One level per beat: 0 silent (including its subdivisions), 1 normal, 2 accented. Defaults to an accented first beat. Example: [2,1,1,1]. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bpm | Yes | ||
| kind | Yes | ||
| ramp | Yes | ||
| limits | Yes | ||
| beat_ms | Yes | ||
| beat_unit | Yes | ||
| quarter_ms | Yes | ||
| subdivision | Yes | ||
| beats_per_bar | Yes | ||
| accent_pattern | Yes | ||
| subdivision_ms | Yes |