@audio/synth-rhythm
v1.1.3
Published
Rhythm / click track — BPM grid with accented downbeats
Downloads
842
Readme
@audio/synth-rhythm

Grid-timed pattern renderer (metronome/click track)
npm install @audio/synth-rhythmimport rhythm from '@audio/synth-rhythm'Metronome/click-track generator: decaying tone bursts on a BPM grid, downbeats accented with a higher frequency and full amplitude. Unpitched — single opts argument.
rhythm({ bpm: 120, bars: 4, beats: 4 }) // → Float32Array| Param | Default | |
|---|---|---|
| bpm | 120 | Beats per minute |
| bars | 4 | Number of bars |
| beats | 4 | Beats per bar |
| freq | 1000 | Regular-beat click frequency, Hz |
| accentFreq | 1500 | Downbeat click frequency, Hz |
| amp | 0.7 | Downbeat amplitude (regular beats: amp * 0.7) |
| fs | 44100 | Sample rate |
Use when: a click track / metronome reference for tempo-synced tests or arrangement scratch tracks.
Part of @audio/synth — the synth family umbrella.
MIT © audiojs
