// Built with anycoder // https://huggingface.co/spaces/akhaliq/anycoder import { useState, useEffect } from 'react'; import { Play, Pause, RotateCcw } from 'lucide-react'; const BeatBotGPT5 = () => { const [isPlaying, setIsPlaying] = useState(false); const [currentStep, setCurrentStep] = useState(0); const [bpm] = useState(128); // GPT-5 celebration beat pattern const pattern = { kick: [1, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0], snare: [0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], hihat: [0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1], clap: [0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1], }; const tracks = [ { name: 'Kick', pattern: pattern.kick, color: 'bg-red-500' }, { name: 'Snare', pattern: pattern.snare, color: 'bg-blue-500' }, { name: 'Hi-Hat', pattern: pattern.hihat, color: 'bg-green-500' }, { name: 'Clap', pattern: pattern.clap, color: 'bg-yellow-500' }, ]; useEffect(() => { if (!isPlaying) return; const interval = setInterval(() => { setCurrentStep((prev) => (prev + 1) % 16); }, (60 / bpm / 4) * 1000); return () => clearInterval(interval); }, [isPlaying, bpm]); const togglePlayback = () => setIsPlaying(!isPlaying); const resetBeat = () => { setIsPlaying(false); setCurrentStep(0); }; return (
The future of AI never sounded so good
🔥 Drop the beat for GPT-5! 🔥