https://github.com/amanbig/ai-composer
A full-stack AI Music Generation System featuring secure authentication, visualizing tools, and a powerful multi-engine composer.
https://github.com/amanbig/ai-composer
langchain langgraph openrouter python scipy sqlalchemy streamlit
Last synced: 2 months ago
JSON representation
A full-stack AI Music Generation System featuring secure authentication, visualizing tools, and a powerful multi-engine composer.
- Host: GitHub
- URL: https://github.com/amanbig/ai-composer
- Owner: Amanbig
- Created: 2026-01-18T08:47:28.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2026-01-18T10:51:18.000Z (5 months ago)
- Last Synced: 2026-03-30T02:44:32.919Z (3 months ago)
- Topics: langchain, langgraph, openrouter, python, scipy, sqlalchemy, streamlit
- Language: Python
- Homepage: https://ai-composer.onrender.com
- Size: 909 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🎵 AI Music Composer
A full-stack AI Music Generation System featuring secure authentication, visualizing tools, and a powerful multi-engine composer.
## 🚀 Features
- **Core Engines**:
- **Manual**: Compose using simple notation (`C4:1` etc).
- **Markov Chain**: Stochastic generation learned from training data.
- **Agentic AI**: Text-to-music translation using LLMs (OpenRouter/OpenAI).
- **Web UI**: Modern Streamlit interface with a premium dark theme.
- **Visualizer**: High-quality waveform plotting and image saving.
- **User Management**:
- Secure Login/Register (bcrypt hashing, SQLite).
- Personal generation history and file management.
- **Robustness**:
- Background scheduler handles file cleanup (files kept for **24 hours**).
- Modular architecture for scalability.
## 📦 Installation
### Prerequisites
- Python 3.10+
- [Optional] Docker
### Setup
1. **Clone & Install**:
```bash
git clone https://github.com/Amanbig/AI-composer.git
cd AI-composer
# Create env
python -m venv venv
venv\Scripts\activate # Windows
# Install
pip install -r requirements.txt
```
2. **Environment Config**:
Create `.env` in root:
```env
OPENROUTER_API_KEY=sk-or-v1-...
```
3. **Run**:
```bash
streamlit run music_gen/app.py
```
## 🐳 Running with Docker
```bash
docker build -t ai-composer .
docker run -p 8501:8501 --env-file .env ai-composer
```
Access at `http://localhost:8501`
## 📂 Structure
- `music_gen/`: Main package
- `app.py`: Application entry point
- `modules/`: Core logic (Auth, DB, Cron, Agents)
- `ui/`: Frontend components
- `generated/`: Output files per user
- `data/`: SQLite DB and training sets
## 📝 Usage
- **Sign Up**: Create an account to access the tools.
- **Compose**: Use the "Agentic AI" tab to describe your song in English.
- **History**: View, download, and see visualizations of your past creations.
---
*Created with ❤️ by Antigravity*