updated skills
This commit is contained in:
@@ -34,10 +34,10 @@ import { AudioDocument } from "@suaveplan/audio-core";
|
||||
import { BeatDetector } from "@suaveplan/audio-analysis-beat";
|
||||
|
||||
const doc = new AudioDocument({
|
||||
sampleRate: 48_000,
|
||||
channels: 1,
|
||||
sourceLength: pcm.length,
|
||||
pages: [{ channelData: [pcm], startSample: 0 }],
|
||||
sampleRate: 48_000,
|
||||
channels: 1,
|
||||
sourceLength: pcm.length,
|
||||
pages: [{ channelData: [pcm], startSample: 0 }],
|
||||
});
|
||||
|
||||
const result = await new BeatDetector().analyze(doc);
|
||||
@@ -65,4 +65,3 @@ console.log(result.bpm, result.beats.length, result.confidence);
|
||||
|
||||
See per-module `.md` files for the deep documentation of each algorithm and
|
||||
entry point.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user