midi_play_phrase
Play musical phrases with precise articulation and expression using predefined note sequences, rhythm patterns, and style presets to generate MIDI output for synthesizers or MIDI devices.
Instructions
🎼 Play musical phrase with natural articulation and expression - converts 'C4 E4 G4' to legato/staccato
Input Schema
Name | Required | Description | Default |
---|---|---|---|
channel | No | MIDI channel (1-16) | |
notes | Yes | Notes separated by spaces (e.g. 'C4 E4 G4 C5') | |
outputPort | No | MIDI output port name | |
rhythm | No | Rhythm pattern: 'quarter quarter half whole' or single value | quarter |
style | No | Musical style preset with articulation and expression | legato_expressive |
tempo | No | Tempo in BPM |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"channel": {
"default": 1,
"description": "MIDI channel (1-16)",
"maximum": 16,
"minimum": 1,
"type": "number"
},
"notes": {
"description": "Notes separated by spaces (e.g. 'C4 E4 G4 C5')",
"type": "string"
},
"outputPort": {
"description": "MIDI output port name",
"type": "string"
},
"rhythm": {
"default": "quarter",
"description": "Rhythm pattern: 'quarter quarter half whole' or single value",
"type": "string"
},
"style": {
"default": "legato_expressive",
"description": "Musical style preset with articulation and expression",
"enum": [
"legato_expressive",
"staccato_playful",
"marcato_bold",
"tenuto_sustained"
],
"type": "string"
},
"tempo": {
"default": 120,
"description": "Tempo in BPM",
"maximum": 200,
"minimum": 40,
"type": "number"
}
},
"required": [
"notes"
],
"type": "object"
}