update_pattern
Edits a pattern's notes, key, scale, instrument, or filter automation as one undo step; key changes transpose notes, and scale changes remove notes that do not fit.
Instructions
Edits a pattern's notes, key, scale, instrument or filter automation, as one undo step. Changing the key transposes its notes, like the app does. Changing the scale removes notes that don't fit it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | Key, like "C", "F#" or "Bb". Ignored for drumkits. | |
| notes | No | Up to 128 notes. | |
| scale | No | Scale. Notes must fit it. Ignored for drumkits. One of: normal (all notes), major, minor (melodic, with a raised 6th and 7th; for natural minor, use the relative major's key with scale major), blues, harmonic minor, pentatonic major, pentatonic minor, pentatonic blues, pentatonic neutral, romanian folk, spanish gypsy, arabic magam, chinese, hungarian, chord: major, chord: minor, chord: 5th, chord: dom 7th, chord: major 7th, chord: minor 7th, chord: minor major 7th, chord: sus4, chord: sus2. | |
| pattern | Yes | Index of the pattern. | |
| instrument | No | Index of the song's instrument, 0 by default. | |
| notes_mode | No | How to use notes: replace all of them (the default), add to them, or remove these. For remove, only note and pos matter. | |
| filter_steps | No | Automation values per step. Only the first 16 steps are kept when the song is saved, a limit of the file format. | |
| record_filter | No | Turns per-step volume and filter automation on or off for this pattern. | |
| transpose_with_key | No | Set to false to relabel the key without moving the notes. |