import type { Metadata } from "next"; import TempoAnalyzer from "@/components/TempoAnalyzer"; export const metadata: Metadata = { title: "Analyze Audio", description: "Upload an audio file, detect the tempo, and generate a CTP tempo map with AI assistance.", }; export default function AnalyzePage() { return (

Tempo Analysis

Generate a Tempo Map

Upload your audio file. The app detects the BPM in your browser, then uses AI to generate a complete{" "} CTP tempo map — including sections, time signatures, and any tempo changes.

How it works:

  1. Drop or select any audio file — MP3, WAV, AAC, OGG, FLAC, M4A.
  2. BPM is detected locally in your browser using the Web Audio API. Your audio is never uploaded.
  3. Only the detected BPM, duration, and any metadata you provide are sent to the server for AI generation.
  4. Claude analyses the song structure and returns a draft CTP document. Always verify it against the recording.
); }