ComfyUI Node
MD: Wildcard Prompt Builder
A ComfyUI node in MD_Nodes/Prompt Generation with 36 inputs and 14 outputs.
MD: Wildcard Prompt Builder
- GENRE_TAGS
- VOCAL_TAGS
- LYRICS
- DURATION_STRING
- DURATION_FLOAT
- BPM
- TIME_SIG_STR
- TIME_SIG_COMBO
- KEY_SCALE_STR
- KEY_SCALE_COMBO
- SEED
- TEXT_PREVIEW
- YAML_CONFIG
- INTERPRETED_PROMPT
◄generation_modewildcard►
◄output_targetAudio (ACE-Step)►
◄ace_step_modetrue►
◄descriptive_modefalse►
◄conceptDark neurofunk drum and bass with heavy reese bass and complex rolling breaks►
◄seed0►
◄randomize_seedtrue►
◄duration_template{120|180|240}►
◄ollama_enabledtrue►
◄ollama_api_urlhttp://localhost:11434►
◄ollama_modelllama3:8b-instruct-q8_0►
◄orchestrator_modeOff►
◄temperature0.7►
◄top_k40►
◄top_p0.90►
◄min_p0.05►
◄keep_alive300►
◄llm_timeout120►
◄load_genre_fileNone►
◄load_vocal_fileNone►
◄load_lyrics_fileNone►
◄yaml_input►
◄custom_genre_template►
◄custom_vocal_template►
◄custom_lyrics_template►
◄custom_bpm►
◄custom_time_sigAuto►
◄custom_key_scaleAuto►
◄expand_custom_templatestrue►
◄generate_genretrue►
◄generate_vocalstrue►
◄generate_lyricstrue►
◄force_instrumentalfalse►
◄lora_trigger►
◄debug_mode0 - Silent►
◄enable_profilingfalse►
CategoryMD_Nodes/Prompt Generation
Inputs (36)
| Name | Type | Default | Description |
|---|---|---|---|
| generation_mode | COMBO | wildcard | GENERATION MODE • Purpose: Core logic for creating prompt content. • Wildcard: Instant random selection from internal/file libraries. • LLM: Full creative generation via Ollama API. • Hybrid: LLM intelligently selects from curated option lists. Recommended: Hybrid for best themed variety. |
| output_target | COMBO | Audio (ACE-Step) | OUTPUT TARGET • Purpose: Sets vocabulary and prompt format for the target model. • Audio: ACE-Step optimised outputs (genre, vocals, lyrics, BPM, key). • Image: SD/Flux prompt in INTERPRETED_PROMPT output. • Video: Wan/Mochi video prompt in INTERPRETED_PROMPT output. • All Three: All outputs populated for unified media workflows. Existing GENRE_TAGS/VOCAL_TAGS/LYRICS outputs always populated. |
| ace_step_mode | BOOLEAN | true | ACE-STEP MODE • Purpose: Enables ACE-Step 1.5 caption quality enhancements. • True: Rich Gemini-style prose captions. BPM/key auto-stripped from caption. • False: Standard tag-list output (legacy behaviour). Recommended: True for ACE-Step 1.5 workflows. |
| descriptive_mode | BOOLEAN | false | DESCRIPTIVE MODE • Purpose: Prose sentences instead of comma-separated tags. • True: Sentence-style output. False: Tag list. • Note: ace_step_mode overrides this for genre output automatically. Recommended: False unless specifically needed. |
| concept | STRING | Dark neurofunk drum and bass with heavy reese bass and complex rolling breaks | CONCEPT PROMPT • Purpose: The core theme driving generation across all targets. • Usage: Used by LLM/Hybrid/Orchestrator as creative brief. • Tip: Be specific — genre, mood, energy, references. Recommended: Include genre, mood, and key sonic elements. |
| seed | INT | 00–9007199254740991 | RANDOM SEED • Purpose: Controls all wildcard randomization. • Range: 0 to 9,007,199,254,740,991 (JS Safe Max). Recommended: Connect global seed for workflow sync. |
| randomize_seed | BOOLEAN | true | RANDOMIZE SEED • Purpose: Auto-change seed every run for variety. • True: New choices every run. False: Lock current seed. Recommended: True for exploration, False for reproduction. |
| duration_template | STRING | {120|180|240} | DURATION TEMPLATE • Purpose: Track/clip length logic in seconds. • Format: Accepts wildcards e.g. {120|180|240}. • Note: Orchestrator mode may override this. |
| ollama_enabledopt | BOOLEAN | true | OLLAMA ENABLED • Purpose: Master switch for all LLM API calls. • False: Disables all Ollama calls — falls back to wildcard instantly. • Use False if Ollama is not installed to prevent any network probing. Recommended: False if Ollama not installed. |
| ollama_api_urlopt | STRING | http://localhost:11434 | Ollama API base URL (e.g. http://localhost:11434). |
| ollama_modelopt | COMBO | llama3:8b-instruct-q8_0 | Ollama model to use. List auto-refreshes in background. |
| orchestrator_modeopt | COMBO | Off | ORCHESTRATOR MODE • Purpose: Single-shot LLM pass for fully coherent output. • Standard: General purpose BPM/key/genre/lyrics in one call. • ACE-Architect: ACE-Step 1.5 optimised. Rich prose caption + metadata. Recommended: ACE-Architect for best ACE-Step 1.5 results. |
| temperatureopt | FLOAT | 0.70–2 | TEMPERATURE • LLM creativity (0.2=focused, 1.0=chaotic, 1.4=unhinged). |
| top_kopt | INT | 401–200 | TOP K • Token vocabulary limit for predictability. |
| top_popt | FLOAT | 0.900–1 | TOP P • Nucleus sampling cumulative cutoff. |
| min_popt | FLOAT | 0.050–1 | MIN P • Filters low probability tokens relative to best choice. |
| keep_aliveopt | INT | 3000–3600 | KEEP ALIVE (Seconds) • Model VRAM retention. 0 = unload immediately after call. |
| llm_timeoutopt | INT | 12030–600 | LLM TIMEOUT (Seconds) • Purpose: Max seconds to wait for a single Ollama API response. • Options: 30–600s. Default 120s. • Trade-offs: Lower = faster failure detection; higher = tolerates slow models. • ⭐ Recommendation: 30–60s for fast models (llama3, mistral). 120s+ for large reasoning models (Qwen3-32B, QwQ). |
| load_genre_fileopt | COMBO | None | Load external genre wildcard .txt file. |
| load_vocal_fileopt | COMBO | None | Load external vocal wildcard .txt file. |
| load_lyrics_fileopt | COMBO | None | Load external lyrics wildcard .txt file. |
| yaml_inputopt | STRING | YAML INPUT OVERRIDE • Override any parameter via YAML key-value string. | |
| custom_genre_templateopt | STRING | Custom genre/caption text. Wildcards {a|b} supported. Overrides generation. | |
| custom_vocal_templateopt | STRING | Custom vocal style text. Overrides generation. | |
| custom_lyrics_templateopt | STRING | Custom lyrics text. Overrides generation. | |
| custom_bpmopt | STRING | Override BPM (integer or wildcard {174|172}). | |
| custom_time_sigopt | COMBO | Auto | Override time signature (4 = 4/4, 3 = 3/4, etc). |
| custom_key_scaleopt | COMBO | Auto | Override key/scale (C Major, F# Minor, etc). |
| expand_custom_templatesopt | BOOLEAN | true | Expand {wildcard} patterns in custom template inputs. |
| generate_genreopt | BOOLEAN | true | Enable/disable genre/caption generation. |
| generate_vocalsopt | BOOLEAN | true | Enable/disable vocal style generation. |
| generate_lyricsopt | BOOLEAN | true | Enable/disable lyrics generation. |
| force_instrumentalopt | BOOLEAN | false | Force instrumental: clears vocals, sets lyrics to [Instrumental]. |
| lora_triggeropt | STRING | LORA TRIGGER TAG • Purpose: Prepend a LoRA trigger token to the genre/caption output. • Example: mdm4_dnb • Always placed first, before any generated text. Recommended: Use your LoRA's exact trigger string. | |
| debug_modeopt | COMBO | 0 - Silent | Logging verbosity level. |
| enable_profilingopt | BOOLEAN | false | Enable detailed performance profiling output. |
Outputs (14)
| Name | Type | Description |
|---|---|---|
| GENRE_TAGS | STRING | — |
| VOCAL_TAGS | STRING | — |
| LYRICS | STRING | — |
| DURATION_STRING | STRING | — |
| DURATION_FLOAT | FLOAT | — |
| BPM | INT | — |
| TIME_SIG_STR | STRING | — |
| TIME_SIG_COMBO | 4,3,5,6,7 | — |
| KEY_SCALE_STR | STRING | — |
| KEY_SCALE_COMBO | C major,C minor,C# major,C# minor,D major,D minor,D# major,D# minor,E major,E minor,F major,F minor,F# major,F# minor,G major,G minor,G# major,G# minor,A major,A minor,A# major,A# minor,B major,B minor | — |
| SEED | INT | — |
| TEXT_PREVIEW | IMAGE | — |
| YAML_CONFIG | STRING | — |
| INTERPRETED_PROMPT | STRING | — |