vibetune
A lightweight terminal music generator that uses local LLMs (via Ollama) as the creative brain to produce MIDI background music for videos.
Features
- LLM-driven composition: Ollama translates a vibe description into a full music spec (key, tempo, chords, instruments)
- Built-in player: Play, pause, and stop without leaving the terminal
- Trim & crop: Cut clips to any length
- Loop-friendly export: Crossfade-loop a clip seamlessly for video backgrounds
- Presets: Save favorite vibes and reuse them
- Variations: Generate riffs on a track you liked
- Save/discard: Audition before committing
Installation
1. Install prerequisites
Ollama — runs the local LLM (ollama.com):
ollama pull qwen3.5:4b
FluidSynth — MIDI synthesis (vibetune will remind you if it's missing):
# macOS
brew install fluidsynth
# Ubuntu/Debian
sudo apt install fluidsynth fluid-soundfont-gm
2. Install vibetune
pip install vibetune
3. Run
vibetune
Usage
Generating a track
Describe any vibe and vibetune composes a MIDI track via the local LLM:
vibetune> gen lofi study beat, rainy afternoon, jazzy chords
vibetune> gen upbeat 8-bit adventure theme, fast tempo
vibetune> gen dark ambient drone, cinematic, building tension
Auditioning and editing
vibetune> play # play the current track
vibetune> pause # pause
vibetune> resume # resume
vibetune> stop # stop playback
vibetune> trim 0 30 # cut to the first 30 seconds
vibetune> trim 0:10 0:45 # also accepts mm:ss format
vibetune> loop # crossfade the end into the start for seamless looping
vibetune> loop 2.5 # longer crossfade (seconds)
vibetune> undo # revert the last edit
vibetune> info # show key, tempo, instruments, chord progression
Saving
vibetune> save # save with an auto-generated name
vibetune> save my_track # save with a custom name
vibetune> library # list all saved tracks
vibetune> discard # throw away the current track without saving
Variations
Generate a new track with the same vibe but different chords, tempo, and instruments:
vibetune> vary
Presets
Save a vibe you like and reuse it later:
vibetune> preset save # interactive: pick current vibe or enter a new one
vibetune> preset list # show all saved presets
vibetune> preset use lofi-study # generate a track from a preset
vibetune> preset edit lofi-study # edit the preset's name or vibe inline
vibetune> preset delete lofi-study # remove a preset
Other
vibetune> duration 60 # set default track length to 60 seconds
vibetune> model qwen3.5:9b # switch to a different Ollama model
vibetune> help # full command reference
vibetune> quit
Configuration
| Env var | Default | Description |
|---|---|---|
VIBETUNE_HOME |
~/.vibetune |
Data directory (cache, library) |
VIBETUNE_MODEL |
qwen3.5:4b |
Ollama model to use |
VIBETUNE_SOUNDFONT |
auto-detected | Path to a custom .sf2 soundfont |
OLLAMA_HOST |
http://localhost:11434 |
Ollama server URL |
Metadata
Release files for vibetune 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| vibetune-0.1.1.tar.gz | 57.9 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| vibetune-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 78.5 kB
Release files / vibetune-0.1.1.tar.gz
| Download URL | vibetune-0.1.1.tar.gz |
|---|---|
| Size | 57.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
deddbb480b93e691586f035789d0215999673c07fa789166961060b71a3b9a61
|
|
BLAKE2b-256 checksum How to use checksums |
30b8d828d6545c0b2d95536fc8c6d25f3c15669fad68427fba87357b190fef62
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 18, 2026.
Transparency logRelease files / vibetune-0.1.1-py3-none-any.whl
| Download URL | vibetune-0.1.1-py3-none-any.whl |
|---|---|
| Size | 20.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2e5dd11b98804f3d16e2ac7079453e4260a59e58ce8b0966e8bcc6ea09057a0b
|
|
BLAKE2b-256 checksum How to use checksums |
9e9866cad65cb2498e9a815a7edac7d17adfba1221638765a2f2f6d3b6dcd97d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 18, 2026.
Transparency logSecurity for vibetune 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for vibetune-0.1.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 18, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.