From 497303696b5bb34c04ec7ab517db3f63d74927cc Mon Sep 17 00:00:00 2001 From: Miguel Angel Simon Sierra Date: Fri, 30 Oct 2026 05:08:03 -0400 Subject: [PATCH] feat(cli): beats analyses an audio or video file given directly --- docs/packages/cli.mdx | 5 ++- packages/cli/src/commands/beats.test.ts | 20 +++++++--- packages/cli/src/commands/beats.ts | 50 ++++++++++++++++++++----- 3 files changed, 58 insertions(+), 17 deletions(-) diff --git a/docs/packages/cli.mdx b/docs/packages/cli.mdx index f671e96c1a..4a19decda5 100644 --- a/docs/packages/cli.mdx +++ b/docs/packages/cli.mdx @@ -716,10 +716,11 @@ them. ```bash npx hyperframes beats [dir] npx hyperframes beats [dir] --json # { ok, file, count, bpm } +npx hyperframes beats --json # { ok, file, count, bpm, beatTimes } ``` -`beats` takes the project folder, not a media file. For the beats of one audio -or video file, run `npx hyperframes audio --only beats --json`. +Given an audio or video file instead of a folder, `beats` analyses that file +with the same tracker and prints the result; it writes nothing. `beats` finds the music track — an `