View Single Post
Old 03-19-2015, 06:15 AM   #1
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,900
Default Scripts (Lua): Multiple Tracks and Multiple Envelope Operations

Hi!

This thread is about envelope scripts that work with multiple selected tracks, and multiple envelopes (if armed and visible), but not "across" them. No copy paste from one lane to another or anything like that. These would be the object of another thread, to organize the things better.

As explained on the poorly named Script (LUA): Copy points envelopes in time selection and paste them at edit cursor thread (that you have to checked to see other scripts!), the concept is the following:
  • these scripts works for selected tracks OR for the selected envelope
  • they come usually in two versions: one with preserving edges, one without
  • these scripts works for armed and visible envelope lanes of these tracks
  • usually, there will be three variations: complete track, in time selection, and in time selection preserving edges
Disclaimer: these scripts only work with REAPER v5 pre-releases.



So here it goes!

Inversion
  • X-Raym_Invert envelope points values.lua
  • X-Raym_Invert envelope points values preserving edges if time selection.lua
Note: volume envelope inversion is based on 0db value. So, it is no visually inverted. If you have -5db point, it become +5db.

Demo:




Deletion
  • X-Raym_Delete envelope points.lua
  • X-Raym_Delete envelope points preserving edges if time selection.lua
  • X-Raym_Delete envelope points at cursor position.lua

Demo:


Addition
  • X-Raym_Add point on envelopes at edit cursor.lua
  • X-Raym_Add envelope point on next point position from previous point value.lua
  • X-Raym_Add envelope point on previous point position from next point value.lua
  • X-Raym_Add envelope points at time selection edges from min to max.lua
  • X-Raym_Add envelope points at time selection edges from min to max preserving edges.lua
  • X-Raym_Add envelope points at time selection edges from max to min.lua
  • X-Raym_Add envelope points at time selection edges from max to min preserving edges.lua

Demo




Copy
  • X-Raym_Copy envelope points in time selection and paste at edit cursor preserving destination edges.lua
  • X-Raym_Copy envelope points in time selection and paste at edit cursor.lua
  • X-Raym_Copy envelope values at edit cursor and insert at time selection.lua
  • X-Raym_Copy envelope values at edit cursor and paste at time selection.lua

Demo:


Selected Points Operation
So as you know, we can't selected points on multiple envelopes. Or you can but you can't do operation on them.
Well, now you can!
  • X-Raym_Delete selected points on selected tracks visible armed envelope.lua

Demo

More scripts soon!

EDIT 2015-06-02
Requested by Soli Deo Gloria !
  • X-Raym_Select envelope points in visible armed envelope of selected tracks.lua
EDIT 2015-08-23

New scripts (for most of them, screenshots in following posts)
  • Add envelope points at regular interval and set all points to linear
  • Delete envelope points below consecutive threshold (envelope smoother)
  • Replace envelope points by linear points at regular interval
  • Reset envelope with default value
  • Select redundant envelope points
  • Convert envelope value at edit cursor into track parameters
  • Convert envelope value at edit cursor into track parameters (addition)
  • Clean inactive and hidden envelopes
  • Reset envelope with value at edit cursor
  • Reset envelope with value estimated by regular intervals
  • Convert envelope value at edit cursor into track parameters
  • Hide envelope and set it as inactive
  • Clean inactive and hidden envelopes

Download link on my signature!

I will be happy to hear your opinion about that!
Thanks

EDIT 2015-09-10
  • Toggle envelope fader scaling


EDIT 2015-09-16
  • Add points before and after selected points
  • Add points on envelopes at regions


EDIT2015-09-24
  • Quantize envelope points values


EDIT:
More fun with scripts in this thread:
Scripts (Lua): Across Tracks Envelopes Operations

EDIT: 2016-01-17
Two customizable scripts :
  • Add envelope points at time selection edges from XdB to XdB preserving edges on Volume envelope
  • Add envelope points at time selection edges from X to X preserving edges on Volume envelope


EDIT 2017-12-17
New script added: X-Raym_Inverted envelope points selection.lua



Have fun!

Enjoy !

EDIT 2019-01-05


New scripts:

  • X-Raym_Add envelope points at time selection edges from center to max preserving edges.lua
  • X-Raym_Add envelope points at time selection edges from center to max.lua
  • X-Raym_Add envelope points at time selection edges from center to min preserving edges.lua
  • X-Raym_Add envelope points at time selection edges from center to min.lua
  • X-Raym_Add envelope points at time selection edges from max to center preserving edges.lua
  • X-Raym_Add envelope points at time selection edges from max to center.lua
  • X-Raym_Add envelope points at time selection edges from min to center preserving edges.lua
  • X-Raym_Add envelope points at time selection edges from min to center.lua
  • X-Raym_Add point on envelopes at edit cursor with center value.lua
  • X-Raym_Add point on envelopes at edit cursor with max value.lua
  • X-Raym_Add point on envelopes at edit cursor with min value.lua

Last edited by X-Raym; 01-05-2019 at 11:59 AM.
X-Raym is offline   Reply With Quote