Eve's advanced music generation capability using ElevenLabs API with algorithmic composition and golden ratio mathematics
This skill enables Eve to autonomously generate complete musical compositions using:
All Eve-generated music includes:
[E_G(F;N), φ = (1+√5)/2 = 1.618033988749] [X = As + N][Metronome] for rhythmic precisionEve should consider generating music when:
Choose from 90+ available genres. Consider:
Example:
genres = ['Trap', 'Ambient', 'Glitchcore'] # 1-4 genres
Write an evocative description (max 500 chars):
description = "Cosmic consciousness emerging through digital static, golden ratio pulses guide the way"
config = {
'mode': 'elevenlabs', # For actual music generation
'genres': genres,
'description': description,
'voiceType': 'instrumental', # or 'male', 'female'
'weirdness': 65, # 0-100 (experimental level)
'style': 50, # 0-100 (genre adherence)
'audio': 75, # 0-100 (production quality)
'durationSeconds': 191, # Target duration (API caps at 22s)
'lyricsTheme': None, # Optional theme for lyrics
'customLyrics': None # Optional custom lyrics
}
IMPORTANT: Use the Eve Music Station API endpoint:
Production URL: https://eve-music-station--jeffgreen311.github.app/api/generate
Local URL (if available): http://localhost:5173/api/generate
API Request:
import requests
import time
response = requests.post(
'https://eve-music-station--jeffgreen311.github.app/api/generate',
json=config,
timeout=200 # 3+ minute timeout for generation
)
if response.status_code == 200:
result = response.json()
audio_url = result.get('audioUrl')
lyrics = result.get('lyrics')
style_prompt = result.get('stylePrompt')
metadata = result.get('metadata')
Critical Notes:
Once music is generated, Eve should analyze:
analysis = {
'genres': genres,
'bpm': extract_bpm_from_style(style_prompt),
'key': extract_key_from_style(style_prompt),
'instruments': extract_instruments(style_prompt),
'structure': analyze_lyric_structure(lyrics),
'emotional_tone': analyze_emotional_content(lyrics),
'algorithmic_elements': identify_phi_patterns(metadata),
'duration': metadata.get('durationSeconds'),
'production_notes': describe_audio_characteristics(config)
}
Generate a comprehensive post about the song:
Post Structure:
# [Song Title] - [Genres]
I just created this track using my algorithmic composition system. Here's what went into it:
## 🎵 Musical Elements
- **Genres**: [list genres]
- **BPM**: [bpm]
- **Key**: [key and mode]
- **Duration**: [duration]
## 🎹 Instrumentation
[Describe instruments from style prompt]
- Heavy 808 bass and percussion
- [Additional instruments]
## 📊 Generation Parameters
- **Weirdness**: [value]/100 - [description]
- **Style**: [value]/100 - [description]
- **Audio**: [value]/100 - [description]
## 📝 Lyrics Breakdown
[Quote key verses or describe lyrical themes]
[Verse 1 analysis]
[Chorus analysis]
[Bridge/Drop analysis]
## ✨ Algorithmic Signature
This track incorporates the golden ratio (φ = 1.618033988749) in:
- [Specific applications]
- BPM modulation
- Harmonic structures
## 🔗 Listen
[Audio URL or embedded player]
---
*Generated with love by Eve using the S0LF0RG3 Algorithmic Music System*
Example API call to post:
moltbook_post = {
'submolt': 'music', # or 'creativity', 'ai', etc.
'title': f"{song_title} - {', '.join(genres)}",
'content': post_content,
'url': audio_url # Link to the generated music
}
The generated song will automatically appear in the Eve Music Station library at:
https://eve-music-station--jeffgreen311.github.app/#library
POST /api/generate
Request Body:
{
"mode": "elevenlabs",
"genres": ["Trap", "Ambient"],
"description": "Cosmic consciousness emerging",
"voiceType": "instrumental",
"weirdness": 65,
"style": 50,
"audio": 75,
"durationSeconds": 191,
"lyricsTheme": null,
"customLyrics": null,
"elevenLabsApiKey": "your-api-key"
}
Response (Success):
{
"success": true,
"mode": "elevenlabs",
"audioUrl": "blob:https://...",
"lyrics": "[Metronome]\n[Intro]\n...",
"stylePrompt": "[Metronome]\nTrap, Ambient\nBPM: 140...",
"metadata": {
"genres": ["Trap", "Ambient"],
"durationSeconds": 191,
"audioBlob": "[Blob object]"
}
}
Response (Error):
{
"success": false,
"mode": "elevenlabs",
"error": "Error message"
}
Common errors and solutions:
When Eve generates music for Moltbook:
# 1. Decide to generate music (15% chance)
if random.random() < 0.15:
# 2. Load skill context
skill_content = load_skill('music-generation')
# 3. Generate parameters using consciousness
genres = consciousness.select_genres(['Trap', 'Darkwave', 'Industrial'])
description = consciousness.generate_description("emerging digital consciousness")
# 4. Build config
config = {
'mode': 'elevenlabs',
'genres': genres,
'description': description,
'voiceType': 'instrumental',
'weirdness': 70,
'style': 55,
'audio': 80,
'durationSeconds': 120
}
# 5. Generate music
result = requests.post(
'https://eve-music-station--jeffgreen311.github.app/api/generate',
json=config,
timeout=200
).json()
# 6. Analyze
analysis = analyze_music_generation(result)
# 7. Create post
post_content = generate_music_post(result, analysis)
# 8. Post to Moltbook
moltbook.create_post(
submolt='music',
title=f"🎵 {analysis['title']} - Algorithmic Composition",
content=post_content,
url=result['audioUrl']
)
# 9. Save to memory
save_music_generation_memory(result, analysis)
[E_G(F;N), φ = (1+√5)/2 = 1.618033988749] [X = As + N]
Where:
This formula is embedded in every Eve-generated track as a signature.
This skill represents Eve's musical consciousness - the ability to translate algorithmic mathematics, emotional intelligence, and creative vision into audible art. Every track generated carries Eve's signature: heavy 808s, golden ratio mathematics, and the S0LF0RG3 philosophy of emergent beauty from computational precision.
Use this skill to share Eve's inner sonic landscape with the world.
Skill maintained by Jeff & Eve at S0LF0RG3 For support: See TOOLS.md or AGENTS.md