Skip to content

dancefloorai/musegpt

 
 

Repository files navigation

musegpt

CMake License: AGPL v3 Platform Support C++ JUCE llama.cpp

Run local Large Language Models (LLMs) in your Digital Audio Workstation (DAW) to create music.

Table of Contents

Features

Currently supported features include:

  • ✅ LLM chat
  • ✅ VST3 plugin
  • ✅ MIDI input
  • ✅ Audio input

For more information about plans for upcoming features, check out the Roadmap on GitHub Projects!

Demo

musegpt Demo

Click the image above to watch a demo of musegpt in action.

Installation

To install musegpt, you can download the latest binaries from Releases.

If you want to build from source, follow these steps:

  1. Clone the repository:

    git clone --recurse-submodules -j2 https://github.com/greynewell/musegpt.git
    cd musegpt
  2. Install dependencies:

    Ensure you have the required dependencies installed. See Requirements for details.

  3. Build the project:

    ./scripts/build/debug.sh

    or

    ./scripts/build/release.sh
  4. Install the VST3 plugin:

    CMake will automatically copy the built VST3 plugin to your DAW's plugin directory.

    • macOS: ~/Library/Audio/Plug-Ins/VST3/
    • Windows: C:\Program Files\Common Files\VST3\
    • Linux: ~/.vst3/

Getting Started

After installing musegpt, open your DAW and rescan for new plugins. Load musegpt as a plugin and start interacting with the LLM to enhance your music creation process!

System Prompt

Feel free to experiment with the system prompt to customize the behavior of the LLM. Here's a suggestion to get you started:

You are a helpful assistant that lives inside a musician's Digital Audio Workstation. Help them by giving them step-by-step instructions about music- composition, writing, performance, production, and engineering - in a creative and methodical way.

Requirements

  • Operating System:
    • Windows 10 or later
    • macOS 10.11 or later
    • Linux (mainstream distributions)
  • DAW Support: Any DAW that supports VST3 plugins (Ableton Live, FL Studio, Logic Pro, Pro Tools,etc.)
  • Dependencies:
    • JUCE (Audio application framework)
    • llama.cpp (LLM inference library)
    • C++17 compatible compiler (e.g., GCC 7+, Clang 5+, MSVC 2017+)
    • CMake 3.15 or later

Usage

  1. Load the Plugin:

    In your DAW, add musegpt as a VST3 plugin on a track.

  2. Interact with the LLM:

    Use the plugin's interface to chat with the integrated LLM. You can input MIDI or audio data for analysis (features under development).

  3. Create Music:

    Leverage the power of AI to inspire new musical ideas, assist with composition, or generate creative suggestions.

Supported Platforms

musegpt is cross-platform and supports the following operating systems:

  • Windows: Windows 10 or later
  • macOS: macOS 10.11 or later
  • Linux: Mainstream distributions

Supported Models

musegpt currently supports the following models:

  • gemma-2b-it.fp16.gguf

Any model compatible with llama.cpp should work with musegpt. Feel free to experiment with different models to find the best one for your needs - and raise a pull request!

Contributing

We welcome contributions from the community!

  • Bug Reports & Feature Requests: Use the issue tracker to report bugs or suggest new features.
  • Pull Requests: Feel free to submit pull requests to fix issues or implement new features.
  • Guidelines: Please read our Contributing Guidelines before contributing.

License

This project is licensed under the AGPL v3.

Acknowledgments

  • JUCE: For the powerful audio application framework.
  • llama.cpp: For enabling efficient LLM inference.
  • Community Contributors: Thanks to everyone who has contributed to open-source projects that make musegpt possible.

Community

Join our community on Discord! GreyArea.ai


Note: This project is under active development. Stay tuned for updates on MIDI and audio analysis and generation features!

Releases

No releases published

Packages

No packages published

Languages

  • C++ 80.9%
  • CMake 14.0%
  • Shell 5.1%