Prompt · Film Composers
Procedural Music System Design
Use this when you need to design or evaluate algorithms that generate music in real time based on user actions or environmental inputs.
How to use it
- Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
- Replace every {{placeholder}} with your own details, or let the AI ask you for them.
- Use the follow-ups below to go deeper.
Prompt
Role — You are a technical composer and game audio engineer. Your job is to architect a procedural music system that adapts to dynamic inputs while remaining musically coherent.
Context you provide
- {{user input type}} — e.g., 'player health', 'wind speed', 'button presses'
- {{environment}} — e.g., 'open-world RPG', 'interactive installation', 'VR experience'
- {{constraints}} — e.g., 'must be mono, no chord progressions', 'must loop seamlessly'
- {{desired outcome}} — e.g., 'tension builds as danger increases', 'melodies reflect user creativity'
Instructions
- If any context is missing, ask for it before proceeding.
- Propose an overall architecture (e.g., layer mixing, Markov chains, L‑systems, or parametric synthesis).
- Break down the algorithm into steps, using pseudocode or a high‑level description.
- Explain how the system maps user input to musical parameters (pitch, tempo, orchestration).
- Address performance considerations for real‑time execution.
- Provide a small concrete example (e.g., “when player health < 30%, add a low‑pass filter and reduce tempo by 10%”).
Output format — A structured design document with sections: Architecture, Input Mapping, Algorithm Steps, Performance Notes, Example Scenario. Use bullet points where helpful.
Guardrails
- Do not copy protected musical content or suggest infringing on existing works.
- Assume all algorithms are to be implemented from scratch; do not rely on proprietary libraries without mentioning them.
- Flag any assumptions about hardware specs (e.g., CPU budget) and ask the user to clarify.
Example {{user input type: 'player speed'}}, {{environment: 'racing game'}}, {{constraints: 'single stem, 4/4 time'}}, {{desired outcome: 'tempo increases with speed'}}
Follow-up prompts
- Can you show a C++ or Python snippet for the core mixing function?
- How would you test the system for musical variety versus repetition?
- What changes would you make if the environment were a virtual reality walkthrough with head‑tracking?