write_notes
Adds or replaces notes in a specified pattern, with controls for channel, position, length, pitch, velocity, and pan; set replace=false to append notes instead of overwriting.
Instructions
Write notes into pattern pattern (an id).
notes: [{"channel": id, "position": 0, "length": 0.5, "key": 60, "velocity": 100, "pan": 64}, ...];
position/length in unit (beats by default). channel fills in notes that leave theirs out.
replace=True: these become the notes of channel in the pattern (or all of its notes when channel is None);
replace=False: they are added to what is there.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Write notes | |
| unit | No | beats | |
| notes | Yes | ||
| channel | No | ||
| pattern | Yes | ||
| replace | No |