add_envelope_point
Add a point to an envelope. A missing Volume, Pan, Width, Mute or Trim Volume envelope (or a Pre-FX one) is created first: REAPER starts it with a point at 0:00 holding the track's current value, and the response has envelope_created.
Instructions
Add a point to an envelope. A missing Volume, Pan, Width, Mute or Trim Volume envelope (or a Pre-FX one) is created first: REAPER starts it with a point at 0:00 holding the track's current value, and the response has envelope_created.
Args: envelope_name: Envelope name. time: Time position in seconds. value: Raw value. Pan -1..1 with +1 = LEFT (the reverse of set_track_pan); Width -1..1; Mute 0 = muted, 1 = unmuted. A raw volume value depends on the envelope's scaling, so use value_db there. shape: Point shape (0=linear, 1=square, 2=slow start/end, 3=fast start, 4=fast end, 5=bezier). value_db: Level in dB for Volume, Volume (Pre-FX) and Trim Volume; -150 is silence. Pass this or value.
Returns: point_index, value, and shown: the value as REAPER displays it ("-6.00dB", "50%L").
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| time | Yes | ||
| shape | No | ||
| value | No | ||
| value_db | No | ||
| track_index | Yes | ||
| envelope_name | Yes |