gen_emit_melody
Creates a random melody that adheres to a specified scale and root, then inserts the notes into the piano roll for further arrangement.
Instructions
Generate a random melody that stays within the given scale and write it to the piano roll.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"channel": "<channel>"
},
"name": "gen_emit_melody"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channel | Yes | ||
| root | No | C4 | |
| scale | No | minor | |
| length_bars | No | ||
| note_duration_bars | No | ||
| octave_range | No | ||
| seed | No | ||
| pattern | No | ||
| clear_first | No |