Track Midi Fx
track_midi_fxApply a chain of MIDI effects—chords, scale, pitch, velocity, length, random—to a track at render without changing written notes; optionally write processed notes into the track.
Instructions
MIDI effects on a track at render, Ableton's Chord, Scale, Pitch, Velocity, Note Length and Random as one chain: the track's notes stay as written (notes_read shows them) and the render plays what the chain makes of them. The same core as live_midi_fx: a key on a beat live makes what a note on that beat renders. chain: a list of effects, applied in order to every note; a new chain replaces the old one. Effects: {'type': 'chord', 'intervals': [0, 4, 7], 'velocity': 0.8} (each note plays these semitones from it, 0 = itself; velocity scales the added notes, or a list one per interval); {'type': 'scale', 'key': 'A', 'scale': 'minor', 'mode': 'nearest'} (notes off the scale move onto it: 'nearest', 'up', 'down', or 'drop' = not played; scale a name such as 'major', 'dorian', 'minor_pentatonic' or semitones); {'type': 'pitch', 'transpose': 12, 'lowest': 'C3', 'highest': 'C6', 'fold': False} (semitones, then notes outside the range are dropped, or folded by octaves into it); {'type': 'velocity', 'out': [40, 110], 'curve': 0.5, 'random': 10} (curve -1 to 1, above 0 lifts soft notes; out the range it maps into; random +- that much; or 'fixed': 100); {'type': 'length', 'beats': 0.5} or {'type': 'length', 'scale': 2} (every note that long, or that multiple of its written length); {'type': 'random', 'chance': 0.5, 'choices': 2, 'interval': 12, 'sign': 'up', 'seed': 0} (with that chance a note moves by 1 to choices times interval semitones, 'up', 'down' or 'both'; key + scale makes the interval scale steps; the seed makes the render the same every time). Notes past 0..127 are dropped; a pitch made twice plays once. With track_arp on the same track the chain runs first: the arp steps the notes it makes. No chain: says what is on the track. write=True writes the processed notes into the track in place of the written ones and takes the chain off: plain notes to edit (undo brings the written notes and the chain back). off=True takes the chain off and keeps the notes as written. Reach for it when the person wants chords from single notes, a part forced into a key, a range, a velocity shape, staccato or held notes, or random octave jumps, without rewriting the notes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| off | No | ||
| chain | No | ||
| track | Yes | ||
| write | No | ||
| project | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |