ramp_midi_note_velocities
Apply a linear velocity ramp to MIDI notes in REAPER to create crescendos or decrescendos, interpolating velocities from start to end by note onset.
Instructions
Apply a linear velocity ramp (crescendo / decrescendo) across MIDI notes.
Velocities interpolate by onset: the earliest note in the filtered set gets start_velocity, the latest gets end_velocity, everything between is linear. Notes sharing an onset (a chord) get the same velocity. Results clamp to 1-127.
Args: start_velocity: Velocity at the earliest onset (1-127; out of range clamps, not an error). end_velocity: Velocity at the latest onset (1-127).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | No | ||
| channel | No | ||
| end_beat | No | ||
| pitch_low | No | ||
| item_index | Yes | ||
| pitch_high | No | ||
| start_beat | No | ||
| track_index | Yes | ||
| end_velocity | Yes | ||
| return_notes | No | ||
| start_velocity | Yes |