file chance

This commit is contained in:
Thomas
2026-01-29 11:01:21 +01:00
parent 9d15fd3bb7
commit ef168bc181
3 changed files with 356 additions and 72 deletions

View File

@@ -1,92 +1,163 @@
Install (til v3)
# Auto Clip V3 (DJ / Trance Focused)
**Auto Clip V3** er den mest avancerede og musikalsk fokuserede version af Auto Clip.
Den er designet specifikt til **old school trance** og andre elektroniske genrer, hvor **bars, flow og harmonic mixing** betyder noget.
V3 er der, hvor Auto Clip går fra “smart klipper” til **mini DJ-mix teaser**.
---
## Hvad gør V3 anderledes?
V3 bygger ovenpå V2 og tilføjer:
- Harmonic mixing (key detection + Camelot mapping)
- DJ-venlig ordering af tracks
- Bar-snap (phrase-aligned cuts)
- Preroll bars (DJ lead-in)
- Bedre teaser-flow
- Konsistent loudness (loudnorm)
- Klar integration med Ollama til repo/promo-assets
---
## Install (V3) 🐍
```bash
python -m venv .venv
source .venv/bin/activate
pip install -U pip
pip install numpy librosa soundfile
```
\# ffmpeg skal være installeret
> ⚠️ **FFmpeg skal være installeret og ligge i PATH**
---
## Kommandoer 🎛️
*(optimeret til dine 14 old school trance tracks)*
🎛️ Kommandoer (til dine 14 old school trance tracks)
---
Rollcall (alle 14, DJ flip, harmonic ordering on)
### 1Rollcall alle tracks (DJ flip, harmonic ordering ON)
python dj\_teaser\_v3.py --tracks-dir ./tracks --select all --teaser 60 --bars 2 --preroll-bars 1 --avoid-intro 30 --harmonic
God til:
- album previews
- “alle tracks med”-teaser
```bash
python dj_teaser_v3.py \
--tracks-dir ./tracks \
--select all \
--teaser 60 \
--bars 2 \
--preroll-bars 1 \
--avoid-intro 30 \
--harmonic
```
---
Best-of mini-mix vibe (8 tracks, 4 bars)
### 2Best-of mini-mix vibe (8 tracks, 4 bars)
python dj\_teaser\_v3.py --tracks-dir ./tracks --select auto --auto-n 8 --teaser 75 --bars 4 --preroll-bars 1 --avoid-intro 30 --harmonic
God til:
- promo-teaser
- social media
- mere musikalsk sammenhæng
```bash
python dj_teaser_v3.py \
--tracks-dir ./tracks \
--select auto \
--auto-n 8 \
--teaser 75 \
--bars 4 \
--preroll-bars 1 \
--avoid-intro 30 \
--harmonic
```
---
💡 V3 tweaks jeg typisk bruger til trance
## Typiske V3 tweaks til trance 💡
- `--avoid-intro 30` eller `45`
→ lange trance-intros
- `--bars 2`
→ rollcall (alle tracks hurtigt igennem)
--avoid-intro 30 eller 45 (lange trance intros)
- `--bars 4`
→ mere “rigtig” trance / mini-mix feel
- `--preroll-bars 1`
→ DJ lead-in (overgange føles naturlige)
- `--harmonic`
→ næsten altid ON til trance 👌
--bars 2 hvis alle skal med (rollcall)
---
## Hvordan du bruger V3 i praksis
### Byg teaser
--bars 4 hvis du vil have mere “rigtig” trance-feel
```bash
python dj_teaser_v3.py \
--tracks-dir ./tracks \
--select all \
--teaser 60 \
--bars 2 \
--preroll-bars 1 \
--avoid-intro 30 \
--harmonic
```
---
### Generér repo-ting + promo via Ollama 🤖
--preroll-bars 1 giver DJ-lead-in (får overgangen til at føles naturlig)
--harmonic næsten altid “on” til trance 👌
Hvordan du bruger det i praksis
Byg teaser med v3:
python dj\_teaser\_v3.py --tracks-dir ./tracks --select all --teaser 60 --bars 2 --preroll-bars 1 --avoid-intro 30 --harmonic
Generér repo-ting + promo med din Llama 3.1:
Hvis du kører Ollama lokalt:
```bash
pip install requests
python ollama\_assets.py --report ./out/teaser\_report.json --ollama http://192.168.2.60:11434 --model llama3.1:8b-instruct-q4\_0 --artist DjGulvBasS --genre "old school trance"
python ollama_assets.py \
--report ./out/teaser_report.json \
--ollama http://192.168.2.60:11434 \
--model llama3.1:8b-instruct-q4_0 \
--artist DjGulvBasS \
--genre "old school trance"
```
---
## Output 📦
🎛️ Små tips (trance)
Efter kørsel ligger output i `./out/`:
```
out/
├── album_teaser.wav
├── album_teaser.mp3
└── teaser_report.json
```
---
Hvis cut føles “for tidligt”: sænk --avoid-intro eller sæt --preroll-bars 0
## Begrænsninger (V3)
- Key detection er **best effort**
- pad-heavy tracks kan give upræcis Camelot
- Downbeat er heuristisk (ikke ML-trænet)
- Ikke en erstatning for et rigtigt DJ-mix men tæt på 😉
👉 For eksperimenter og videre udvikling, se **V4 roadmap**.
Hvis du vil have mere “rigtig trance”: brug --bars 4 og vælg --select auto --auto-n 8
---
## Kort version
Hvis key detection virker off på enkelte tracks: det er normalt (pads + noise + modulations). Camelot er “best effort” her.
> **V3 = DJ teaser med bars, flow og harmonic mixing**
> Brug den, når det skal lyde som et rigtigt trance-mini-mix 🔥🎛️