cd backend
pip install -r requirements.txt
python main.pyThe backend will start at http://localhost:8000
The frontend now calls the Librosa backend automatically when you click "Analyze with Librosa"
β
Professional Audio Analysis: Uses Librosa (industry-standard audio library)
β
Accurate BPM Detection: Beat tracking algorithms
β
Musical Key Detection: Chroma feature analysis
β
No More Hanging: Backend processing won't freeze your page
β
High Confidence: Professional-grade accuracy
- Upload Beat: User uploads audio file
- Click Analyze: "Analyze with Librosa" button
- Backend Processing: Librosa analyzes the audio (10-30 seconds)
- Results: BPM and Key automatically filled in
- Visual Feedback: Progress bar and success notifications
- Small files (< 5MB): 10-15 seconds
- Medium files (5-20MB): 15-25 seconds
- Large files (20-50MB): 25-30 seconds
- Backend not starting: Check if port 8000 is free
- Analysis fails: Ensure audio file is under 50MB
- Slow analysis: This is normal for Librosa - it's doing professional analysis!
curl -X POST -F "file=@your-beat.mp3" http://localhost:8000/analyze-audio- Start the backend:
cd backend && python main.py - Test with your React app
- Enjoy professional audio analysis! π―