audio

@audio/synth-rhythm1.2.0

Rhythm / click track

Rhythm / click track — BPM grid with accented downbeats

Status
calibrated
Updated
Family
synth, 20 packages under it
Plugin
rhythm, generator, whole signal, 5 parameters
Category
synthesis
Licence
MIT
Dependencies
none
Downloads
2,208 last month
Tests
94 in audiojs/synth's CI, passed at f613513,

Listen

audio.from(4).rhythm()

Parameters

  • generator
  • whole signal
bpm
120 bpm
20 to 300 bpm
beats
4
1 to 12
freq
1000 Hz
200 to 4000 Hz
accentFreq
1500 Hz
200 to 6000 Hz
amp
0.7
0 to 1

Grid-timed pattern renderer (metronome/click track)

import 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