Skip to content
Batcave765Public

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Koda 🎵

A full-stack application built with a Go backend and Next.js frontend for analyzing music files to detect BPM and Musical Key.

Features

  • Format Support: Accepts MP3, WAV, and MP4 files.
  • BPM Detection: Leverages the benjojo/bpm algorithm for accurate beat detection.
  • Key Detection: Implements a custom Krumhansl-Schmuckler algorithm using FFT and Chroma mapping.
  • Modern UI: A clean, responsive dashboard built with Next.js, Tailwind CSS, and Roboto typography.
  • Dockerized Backend: Seamless environment setup with FFmpeg pre-installed in the container.

Project Structure

  • backend/: Go server using the Gin framework and Docker.
  • frontend/: Next.js 15+ application using Bun and Tailwind CSS.

Prerequisites

Getting Started

You can start both the backend and frontend simultaneously using the root development script.

Quick Start

bun install
bun dev

The application will be available at:


Individual Services

If you need to start them separately:

Backend (Docker)

bun run backend

Frontend (Next.js)

bun run frontend

API Usage

If you wish to use the backend API directly:

  • Endpoint: POST /analyze
  • Payload: multipart/form-data
  • Field: file (your audio file)

Example:

curl -F "[email protected]" http://localhost:8080/analyze

Troubleshooting

  • FFmpeg Errors: Ensure the backend container is running, as it contains all necessary audio codecs.
  • CORS/Proxy Issues: The frontend uses next.config.ts rewrites to proxy /api requests to port 8080. Ensure both are running simultaneously.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages