import React from 'react' import { motion } from 'framer-motion' import styles from './Spectrogram.module.css' export default function Spectrogram({ url, isGenerating }) { if (!url && !isGenerating) return null return (

Audio Spectrogram

{isGenerating ? (
{Array.from({ length: 24 }).map((_, i) => (
))}

Analysing audio…

) : ( Mel spectrogram )}
{url && (

Mel-frequency spectrogram · time → · frequency ↑

)} ) }