
Security News
US Government Forces Anthropic to Pull Claude Fable Days After Launch
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.
rhythm-math
Advanced tools
Rhythm mathematics for the browser and web audio — tempo, polyrhythm, groove, syncopation, and meter
Rhythm mathematics for the browser and web audio — tempo, polyrhythm, groove, syncopation, and meter.
npm install rhythm-math
Tempo — { bpm: number }Polyrhythm — { rates: number[] }Groove — { velocities: number[], offsets: number[] }Meter — { numerator: number, denominator: number }bpmToMs(bpm) → milliseconds per beatmsToBpm(ms) → BPMtempoCurve(start, end, steps, curve) → number[] where curve is "linear", "exponential", or "logarithmic"polyrhythmCycleLength(rates) → LCM of ratespolyrhythmPattern(rates) → binary arrays per voicepolyrhythmDensity(rates) → average hit densityswingFactor(grid, amount) → swung grid positionsgrooveVelocity(pattern, accents?) → MIDI velocities (0–127)microtiming(offsets, humanize) → humanized offsetssyncopationScore(pattern, meterNumerator) → Longuet-Higgins/Lee scoreoffbeatDensity(pattern, meterNumerator) → fraction of off-beat hitsrhythmicEntropy(pattern) → Shannon entropy of interval distributionisSimple(meter), isCompound(meter), isOdd(meter) → booleanbeatCount(meter) → main beats per measuresubdivision(meter) → subdivisions per beatdownbeats(measures, meter) → downbeat positionstimeSignatureChanges(meters, repeats?) → expanded meter sequenceMIT
FAQs
Rhythm mathematics for the browser and web audio — tempo, polyrhythm, groove, syncopation, and meter
The npm package rhythm-math receives a total of 4 weekly downloads. As such, rhythm-math popularity was classified as not popular.
We found that rhythm-math demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.

Security News
A network of 152 Chrome live wallpaper extensions hid ad tracking and made extension-driven traffic look like Google search clicks.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.