mcp_opendaw_create_fugue
Generate a fugue with subject, answer, and countersubject, supporting tonal or real answers, multiple voices, stretto, and configurable entry delay.
Instructions
Create a fugue — polyphonic composition with subject, answer, and countersubject.
The most complex contrapuntal form. A subject (main theme) is stated in one voice, then imitated in others with a tonal or real answer. Optional countersubject provides contrasting counterpoint. Stretto mode overlaps voice entries for climactic density. Unlike create_canon (strict imitation), a fugue uses tonal answers (adjusted intervals) and independent countersubjects.
subject: Comma-separated MIDI pitches of the fugue subject (e.g. "60,62,64,65"). voices: Number of voices (2-5, default 3). More voices = denser counterpoint. entry_delay_beats: Beats between voice entries (2-8, default 4). answer_type: "tonal" (fifth up, adjusted) or "real" (exact transposition). countersubject: Comma-separated MIDI pitches of countersubject (optional). If empty, no countersubject. Must be same length as subject. key_root: Key root for tonal answer calculation (e.g. "C", "F#", "Bb"). key_mode: "major" or "minor" — affects tonal answer adjustment. note_duration: Note duration as fraction of beat (0-1, default 0.9 = legato). velocity: Base velocity for first voice (0-1, default 0.75). velocity_decay: Velocity reduction per voice (0-0.3, default 0.1). stretto: If true, later voices enter before previous finishes subject. unit_index: AU index with note track (-1 = find first AU with note tracks). track_index: Note track index within the AU. start_beat: Position in beats where the first voice begins.
Returns notes created, voice count, subject length, answer type, stretto status.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| voices | No | ||
| stretto | No | ||
| subject | No | 60,62,64,65,64,62,60,57 | |
| key_mode | No | major | |
| key_root | No | C | |
| velocity | No | ||
| start_beat | No | ||
| unit_index | No | ||
| answer_type | No | tonal | |
| track_index | No | ||
| note_duration | No | ||
| countersubject | No | ||
| velocity_decay | No | ||
| entry_delay_beats | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |