Go Back   Cockos Incorporated Forums > REAPER Forums > ReaScript, JSFX, REAPER Plug-in Extensions, Developer Forum

Reply
 
Thread Tools Display Modes
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: 5,324
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
Old 03-20-2015, 06:18 AM   #2
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 5,324
Default

Two new scripts, that will be very useful:
  • X-Raym_Delete visible armed envelope points of selected tracks at time selection edges.lua
  • X-Raym_Delete visible armed envelope points of selected tracks in time selection preserving edges.lua
Can be useful as the other scripts tends to create points at these positions.

Check screenshot above!
X-Raym is offline   Reply With Quote
Old 03-20-2015, 01:24 PM   #3
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 5,324
Default

Just added (without screenshots):
  • X-Raym_Add point on visible armed envelopes of selected tracks at edit cursor.lua
Maybe be useful in some cases!
X-Raym is offline   Reply With Quote
Old 03-20-2015, 02:34 PM   #4
Breeder
Human being with feelings
 
Breeder's Avatar
 
Join Date: Nov 2010
Location: Croatia
Posts: 1,869
Default

I was thinking...instead of having so much scripts basically for the same thing (applying something from the action list to multiple envelopes) wouldn't it be cool to have one action to apply next action to all envelopes?

Of course, this cannot replace all actions, but it can do it for some...so users can create their own macros quickly and easily for those things

So I did it for next SWS pre:
https://github.com/Jeff0S/sws/commit...082d42b46e063c
https://github.com/Jeff0S/sws/commit...774264c2cae59c
Code:
SWS/BR: Apply next action to all visible envelopes in selected tracks
SWS/BR: Apply next action to all visible record-armed envelopes in selected tracks
SWS/BR: Apply next action to all visible envelopes in selected tracks if there is no track envelope selected
SWS/BR: Apply next action to all visible record-armed envelopes in selected tracks if there is no track envelope selected

Last edited by Breeder; 03-20-2015 at 03:41 PM.
Breeder is offline   Reply With Quote
Old 03-20-2015, 02:50 PM   #5
Ozman
Human being with feelings
 
Join Date: Feb 2015
Posts: 480
Default

Quote:
Originally Posted by Breeder View Post
I was thinking...instead of having so much scripts basically for the same thing (applying something from the action list to multiple envelopes) wouldn't it be cool to have one action to apply next action to all envelopes?

Of course, this cannot replace all actions, but it can do it for some...so users can create their own macros quickly and easily for those things

So I did it for next SWS pre:
https://github.com/Jeff0S/sws/commit...082d42b46e063c
Code:
SWS/BR: Apply next action to all visible envelopes in selected tracks
SWS/BR: Apply next action to all visible record-armed envelopes in selected tracks
Awesome!
Ozman is offline   Reply With Quote
Old 03-20-2015, 04:02 PM   #6
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 5,324
Default

@Breeder
That's very clever indeed !!

Do you plan to make variations with "time selection" and "time selection preserving edges" ?



Quote:
if there is no track envelope selected
I will surely add this behavior to my scripts. It is a very nice idea!

Last edited by X-Raym; 03-20-2015 at 07:59 PM.
X-Raym is offline   Reply With Quote
Old 03-21-2015, 02:55 AM   #7
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 5,324
Default

So, 4 new scripts for Viente:
  • 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
It delete previous points existing at time selection edges end points that are in between this points


Screenshot above!


Note:
  • This correspond to the new way I will make this script, based on Breeder idea: if there is an envelope track selected, then it consider only this one.
  • It was also the first time I used br envelopes, which can returns mix and max value very easily!!!
  • values are rounded to match other envelope points (loop time values have a very very high number of decimal compares to envelope points)

I think I will update my previous script now.

Question:
With this new behavior (ability to support selected envelope or selected armed + visible tracks), more flexible, mentioning only visible armed envelope in the script title is not relevant anymore.

Do you mind if I rename of the script like this ?
Copy visible armed envelope values at edit cursor and insert at time selection.lua
=>
Copy envelope values at edit cursor and insert at time selection.lua

?

Yes, I will surely rename all this scripts before it's too late ^^

---

I'm thinking aboutversion that would be able to manage time selection defined or not all within the same script. This may reduce the number of scripts by 1/3 ^^ and also the size of the scripts names :P

Last edited by X-Raym; 03-21-2015 at 03:45 AM.
X-Raym is offline   Reply With Quote
Old 03-21-2015, 05:01 AM   #8
Breeder
Human being with feelings
 
Breeder's Avatar
 
Join Date: Nov 2010
Location: Croatia
Posts: 1,869
Default

Quote:
Originally Posted by X-Raym View Post
Do you plan to make variations with "time selection" and "time selection preserving edges" ?
Actions that edit each envelopes can handle that (since I can't really know what the actions will do...I just select each envelope and apply the action)

Again, user is not at all helpless here - for example, if you want to invert only the points in selection, you save point selection (with SWS actions), select points in time selection, apply action and restore point selection (again using SWS actions)
So you create a macro for that, and then you create another macro with my next action and that new macro



Anyway, X-Raym - this is really important - when using BR_EnvAlloc you MUST use BR_EnvFree when you're done otherwise you're creating memory leaks every time your script is run :/ It says so in the API docs too

Last edited by Breeder; 03-21-2015 at 05:11 AM.
Breeder is offline   Reply With Quote
Old 03-21-2015, 05:58 AM   #9
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 5,324
Default

@Breeder
Oh yes thank you for BR_EnvFree, I wrote it, but I forget to copy paste it when creatings the new functions --' . Will add that in a second!

Ok for you marcos!
Can't wait to test it!

--
I almost finished to update all my envelope scripts.
They will be able to wrote on time selection, if any, or whole
They will work on all armed envelope on selected track, or on selected envelope only
X-Raym is offline   Reply With Quote
Old 03-21-2015, 08:07 AM   #10
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 5,324
Default

Pfiouuu

Finaly updated all the scripts.

They were also renamed with more convenient named, as they are more flexible (basically, they can handle or not time selection, and they can work on the select envelope or on the visible + armed envelopes of selected track)

Note that you will now have to use SWS extensions for these!

It was hard but it worth it. Need a break now ^^
X-Raym is offline   Reply With Quote
Old 03-27-2015, 04:00 AM   #11
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 5,324
Default 1.2 Updates and Selected Point Operation

I just updated all the 20 envelope scripts cause I noticed that some of them worked on visible and active track, and I wanted selected and armed track (if armed, it is active).
It is not a big difference but I prefer this way.

I also just made a script that works on selected points on multiple tracks.
Not as handy as a native solution but it can be useful
Screenshot above !

Cheers!
X-Raym is offline   Reply With Quote
Old 03-29-2015, 10:19 PM   #12
EpicSounds
Human being with feelings
 
EpicSounds's Avatar
 
Join Date: Jul 2009
Posts: 5,168
Default

missed this thread. See told you it was tough to keep up with you.

I need a script to update all my scripts.
__________________
REAPER Video Tutorials, Tips & Tricks and more at The REAPER Blog
EpicSounds is online now   Reply With Quote
Old 04-26-2015, 09:42 AM   #13
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 5,324
Default Update

  • X-Raym_Add envelope points at time selection edges from max to min preserving edges.lua
  • X-Raym_Add envelope points at time selection edges from min to max preserving edges.lua
  • X-Raym_Invert envelope points values preserving edges if time selection.lua
Code:
 * Changelog:

 * v1.2 (2015-04-26)
    + Better edges preservation

There was a small issue in certain cases (if there was several points at time selection edges position). It is corrected now !

Last edited by X-Raym; 04-26-2015 at 09:51 AM.
X-Raym is offline   Reply With Quote
Old 06-02-2015, 09:27 AM   #14
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 5,324
Default

New script:

  • X-Raym_Select envelope points in visible armed envelope of selected tracks.lua


Remember: it works on selected tracks, but on one track only if an envelope is actually selected (it's parent track should be selected too... I may change this behabior later, but I would have to change it in all my envelope scipt for consitency... Huge).

Last edited by X-Raym; 06-02-2015 at 11:26 AM.
X-Raym is offline   Reply With Quote
Old 06-02-2015, 03:39 PM   #15
Soli Deo Gloria
Human being with feelings
 
Soli Deo Gloria's Avatar
 
Join Date: Oct 2013
Location: Buenos Aires, Argentina
Posts: 852
Default

Gorgeous!! Thanks soo much, this is really helpful in combination with your other actions to select multiple portions of multiple envelopes and delete them, set/offset their values, etc...

It definitely works as expected!
Soli Deo Gloria is offline   Reply With Quote
Old 07-14-2015, 05:53 AM   #16
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 5,324
Default Script: Envelope Smoother

Hi !

I'm having fun with a mackie control.
It is so much easier to automate volume with a slider rather than a continuous mouse click or with mouse wheel.

The problem is that the output envelope is a bit aliased.

There is a envelope smoother in REAPER, called "Reduce point...", but it only leaves you the choice to delete a certain number of points.

I needed a more precise way to smooth my envelope, a basic action with simple user inputs.

Here is a screeshot of what I get so far



Anyone interested in such experiments ?

X-Raym is offline   Reply With Quote
Old 07-16-2015, 06:04 AM   #17
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 5,324
Default

Another experiment:

  • X-Raym_Replace envelope points by linear points at regular interval.lua




Can be used if you need to
  • convert your project from one daw to another (all curves are not supported by all daw except linear),
  • if you need to merge your envelope with my VCA-like mergin envelope script. with a better fidelity
  • as a way of smooth an envelope (that would have a Looooot of points).
What do you think ?
X-Raym is offline   Reply With Quote
Old 07-16-2015, 07:48 AM   #18
EpicSounds
Human being with feelings
 
EpicSounds's Avatar
 
Join Date: Jul 2009
Posts: 5,168
Default

neat. I think I've only used linear points
__________________
REAPER Video Tutorials, Tips & Tricks and more at The REAPER Blog
EpicSounds is online now   Reply With Quote
Old 07-16-2015, 08:16 AM   #19
Soli Deo Gloria
Human being with feelings
 
Soli Deo Gloria's Avatar
 
Join Date: Oct 2013
Location: Buenos Aires, Argentina
Posts: 852
Default

Quote:
Originally Posted by X-Raym View Post
Anyone interested in such experiments ?
Of course!!!

Quote:
Originally Posted by X-Raym View Post
What do you think ?
That it´s awesome, as usual!!!
Soli Deo Gloria is offline   Reply With Quote
Old 07-16-2015, 09:17 AM   #20
hopi
Human being with feelings
 
hopi's Avatar
 
Join Date: Oct 2008
Location: Right Hear
Posts: 13,701
Default

yes... very kewl!
__________________
...should be fixed for the next build... http://tinyurl.com/cr7o7yl
https://soundcloud.com/hopikiva/angel-rain
hopi is offline   Reply With Quote
Old 07-16-2015, 02:06 PM   #21
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 5,324
Default

THanks you guyes for your positive feedbacks It is always cool too see that a script can interest other persons

I will update them soon.

Meanwhile, a nice script to select "uselss" redundant envelope points, aka point inbetween two other points with the same value. An action to use with my Delete envelope points actions, but yiu can use it to randomize value of selected points (so that they become no redundant anymore)
As awlays, it is multitracks, multiple envelope or selected envelope, work with time selection or not...
A nice way to clean all enveloped in a project with two simple clicks

  • X-Raym_Select redudant envelope points.lua

Demo:



It is also especially useful with my script which placed points at regular interval (see above)

Last edited by X-Raym; 07-16-2015 at 02:56 PM.
X-Raym is offline   Reply With Quote
Old 07-16-2015, 09:10 PM   #22
daxliniere
Human being with feelings
 
daxliniere's Avatar
 
Join Date: Nov 2008
Location: London, UK
Posts: 1,831
Default

Hey Raymond. Amazing work you're doing here again!

Quote:
Originally Posted by Breeder View Post
when using BR_EnvAlloc you MUST use BR_EnvFree when you're done otherwise you're creating memory leaks every time your script is run :/
Is this now in all of your currently available scripts? I guess available for some time now since that post was from months ago.

Quote:
Originally Posted by X-Raym View Post
There is a envelope smoother in REAPER, called "Reduce point..."
Anyone interested in such experiments ?
VERY much so! Has this been created yet?

Quote:
Originally Posted by X-Raym View Post
X-Raym_Replace envelope points by linear points at regular interval.lua
I have often thought about a script which works the other way around. It would analyse any envelope within time selection and then replace using Bezier curves.

Quote:
Originally Posted by X-Raym View Post
X-Raym_Select redudant envelope points.lua
Yes, this is a great idea, too! Is this one available, too?
__________________
Dax Liniere
London's newest premium studio complex! (Facebook)
[i7-4790K, 12Gb RAM, Win8.1x64, NVidia 9600, UAD2-OCTO, FireFaceUFX, REAPER x64]
daxliniere is offline   Reply With Quote
Old 07-17-2015, 07:00 AM   #23
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 5,324
Default

@daxliniere
1. Yes, Breeder SWS actions are in SWS 2.6.4 #0
  • - SWS/BR: Apply next action to all visible (record-armed) envelopes in selected tracks
  • - SWS/BR: Apply next action to all visible (record-armed) envelopes in selected tracks if there is no track envelope selected
2. If you talked about the envelope smoothing I showcase in my previous posts, yes they do exist, and they do work fine, multitracks etc...
The action "Reduce points" exists natively in REAPER, but I find it very unpredictable... that's why I made my own smoothing cncepts :P


3. replacing linear by curves ? this would be far more difficult. Intersting of course, but way out of my league ^^


4. The scripts showcased on previous posts are ready to share. I will do that very soon !
X-Raym is offline   Reply With Quote
Old 07-17-2015, 07:10 AM   #24
daxliniere
Human being with feelings
 
daxliniere's Avatar
 
Join Date: Nov 2008
Location: London, UK
Posts: 1,831
Default

1. Yes, Breeder SWS actions are in SWS 2.6.4 #0

Ahh, no, I meant is this important BR_EnvFree function added to all of your scripts?


2. If you talked about the envelope smoothing I showcase in my previous posts, yes they do exist, and they do work fine, multitracks etc...
The action "Reduce points" exists natively in REAPER, but I find it very unpredictable... that's why I made my own smoothing cncepts :P


Yes, I found the same, so I liked the idea of your script. It looks very nice.


3. replacing linear by curves ? this would be far more difficult. Intersting of course, but way out of my league ^^

Well.. Breeder wrote an action for me which places an envelope point whereever the cursor is. This seems easy, but you must consider that he had to calculate the exact value at a point on any curve... YES! He did that perfectly! He's a clever one, that Breeder.


4. The scripts showcased on previous posts are ready to share. I will do that very soon !

I look forward to 'smooth envelope' and 'select redundant points'
__________________
Dax Liniere
London's newest premium studio complex! (Facebook)
[i7-4790K, 12Gb RAM, Win8.1x64, NVidia 9600, UAD2-OCTO, FireFaceUFX, REAPER x64]
daxliniere is offline   Reply With Quote
Old 07-17-2015, 08:17 AM   #25
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 5,324
Default

@daxliniere
1. Oh yes ! This was an advice of Breeder because I forgot (on first version of the script) to add this, which caused errors, it was already avaible at this time.
The idea is that if you need to treat the envelope with Br_ envelope functions for SWS, first you have to convert the REAPER native envelope object into a BR_ envelope object, then you can do all modifications you want, and then you have to free the envelope (even if you don't want to commit any change).
I use BR functions because they can tell me if an envelope is visible or hidden very easily (no need to parse the XML chunk of the project).
There is also some very nice Br_ functions, such as the ability to delete a point. Yes, there is no native function for that.
In resume, BR_EnvFree is all my envelope scripts which need to check the state of an envelope, and all envelope who need to check the max, min, and center value (others nice Br functions) of that envelope, or if I need to delete points based on their ID. That's in fact, almost all my envelope scripts :P

3. Oh... Can we see a demo of this somewhere ?
Quote:
He's a clever one, that Breeder.
One of the best
ANd he did a Loooot for scripters in recent SWS version...
X-Raym is offline   Reply With Quote
Old 07-22-2015, 01:01 PM   #26
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 5,324
Default Update

Select redundant envelope points will be avaible soon because I finnaly succeed to do what I wanted '(lmost)

I can now manage points useless points on a slope and useless points at same time position (rare case).

Release soon !

Last edited by X-Raym; 07-22-2015 at 01:14 PM.
X-Raym is offline   Reply With Quote
Old 07-22-2015, 09:24 PM   #27
daxliniere
Human being with feelings
 
daxliniere's Avatar
 
Join Date: Nov 2008
Location: London, UK
Posts: 1,831
Default

The entire REAPER community thanks you.
__________________
Dax Liniere
London's newest premium studio complex! (Facebook)
[i7-4790K, 12Gb RAM, Win8.1x64, NVidia 9600, UAD2-OCTO, FireFaceUFX, REAPER x64]
daxliniere is offline   Reply With Quote
Old 08-23-2015, 08:07 AM   #28
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 5,324
Default Scripts Release

Scripts rain !

Including multi-envelopes smoothers (two different concepts - replacing by points at regular intervals, and deleting close points), and some other things, such as the "select redundant envelope scripts" meant to be use with the Delete selected points on selected tracks visible armed envelope. Most of theme were ready since a month, a bit sad to have it for me alone.

Note : they all work on selected envelope if any, OR on all visible armed envelopes of selected track.
  • 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
--------

Some of them were requested by DAX for building some kind of RESET PROJECT AUTOMATION custom action like this :

  1. X-Raym_Set envelope as active and armed.lua
  2. X-Raym_Reset envelope with value estimated by regular intervals.lua
  3. X-Raym_Convert envelope value at edit cursor into track
  4. parameters.lua
  5. X-Raym_Hide envelope and set it as inactive.lua
  6. X-Raym_Clean inactive and hidden envelopes.lua
Then set a time selection, place edit cursor in it, and run. It will reinitialize track FX parameters sends and track properties from most used value in time selection on tracks envelopes, and then delete envelopes.
Then save the project.
------


I succeeded to make the select redundant script work with slope but note with slope on volume envelope. Too much log math for me... Any help is welcome for this !


---
For those who can afford it, feel free to support intensive scripts dev by making a donation ;P Thanks !
X-Raym is offline   Reply With Quote
Old 08-28-2015, 05:49 AM   #29
daxliniere
Human being with feelings
 
daxliniere's Avatar
 
Join Date: Nov 2008
Location: London, UK
Posts: 1,831
Default

Excellent work, as always, Raymond. These are really wonderful scripts that will be useful for so many.

You should talk to Jeff about getting them (and others!) added to SWS.

Congratulations.
__________________
Dax Liniere
London's newest premium studio complex! (Facebook)
[i7-4790K, 12Gb RAM, Win8.1x64, NVidia 9600, UAD2-OCTO, FireFaceUFX, REAPER x64]
daxliniere is offline   Reply With Quote
Old 09-09-2015, 06:07 PM   #30
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 5,324
Default Updates

New script (screenshot at bottom of first post)
  • Toggle envelope fader scaling
Updated :
All scripts that were not fader-scaling friendly are now compatible.


Have fun !
X-Raym is offline   Reply With Quote
Old 09-10-2015, 02:18 PM   #31
Soli Deo Gloria
Human being with feelings
 
Soli Deo Gloria's Avatar
 
Join Date: Oct 2013
Location: Buenos Aires, Argentina
Posts: 852
Default

Quote:
Originally Posted by X-Raym View Post
Toggle envelope fader scaling
C´est magnifique!!

Thanks, thanks and thanks for all!!!
Soli Deo Gloria is offline   Reply With Quote
Old 09-14-2015, 01:31 AM   #32
daxliniere
Human being with feelings
 
daxliniere's Avatar
 
Join Date: Nov 2008
Location: London, UK
Posts: 1,831
Default

I don't use the other fader scaling mode, but thanks for the housekeeping
__________________
Dax Liniere
London's newest premium studio complex! (Facebook)
[i7-4790K, 12Gb RAM, Win8.1x64, NVidia 9600, UAD2-OCTO, FireFaceUFX, REAPER x64]
daxliniere is offline   Reply With Quote
Old 09-16-2015, 08:41 AM   #33
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 5,324
Default Initial Releases

Thank very much, both of you

Some new scripts to propose, one basic and one... which can be cool :P


---------
EDIT 2015-09-16
(click for screenshot).

the second one is customizable so you can change default value and choose to display a prompt or not.

Code:
-- ----- USER CONFIG AREA =====>

prev_value = 1 -- default value in seconds
next_value = 1 -- default value in seconds
prompt = true -- display a pop up (true/false)

--------------- USER CONFIG AREA

Hope you will like it
X-Raym is offline   Reply With Quote
Old 09-24-2015, 03:02 PM   #34
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 5,324
Default Initial release.

I cant believe I haven't though about this before.

  • Quantize envelope points values



You may use the scripts to select and delete redundant points after that.

What do you think of that ? How did you quantize envelope points ?
X-Raym is offline   Reply With Quote
Old 09-25-2015, 04:03 AM   #35
thewizrad
Human being with feelings
 
Join Date: Aug 2014
Posts: 87
Default

Quote:
Originally Posted by X-Raym View Post
I cant believe I haven't though about this before.

  • Quantize envelope points values



You may use the scripts to select and delete redundant points after that.

What do you think of that ? How did you quantize envelope points ?
That is very cool. Probably very useful for drawing points in when zoomed out to the whole project, then tidy them up with quantisation.
thewizrad is offline   Reply With Quote
Old 09-25-2015, 11:29 AM   #36
EpicSounds
Human being with feelings
 
EpicSounds's Avatar
 
Join Date: Jul 2009
Posts: 5,168
Default

Your "add envelope points at time selection edges from center to center preserving edges" is making my video editing (zoom in and pan) MUCH easier today.
__________________
REAPER Video Tutorials, Tips & Tricks and more at The REAPER Blog
EpicSounds is online now   Reply With Quote
Old 09-25-2015, 11:44 AM   #37
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 5,324
Default

@EpicSounds
Oh does it ? That's really nice to hear, I always enjoy hearing that my scripts are actually useful in real life project ^^
Thanks for the notes !
X-Raym is offline   Reply With Quote
Old 01-17-2016, 04:58 PM   #38
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 5,324
Default

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


Screenshot

Enjoy !
X-Raym is offline   Reply With Quote
Old 01-17-2016, 09:16 PM   #39
daxliniere
Human being with feelings
 
daxliniere's Avatar
 
Join Date: Nov 2008
Location: London, UK
Posts: 1,831
Default

Quote:
Originally Posted by X-Raym View Post
  • 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
Cool!!

What is the transition time?
Can you make it so the transition time start before time selection left and ends after time selection right?
Can you give the script a GUI and give it start dB, end dB (same as start if left blank) and transition time, please?
__________________
Dax Liniere
London's newest premium studio complex! (Facebook)
[i7-4790K, 12Gb RAM, Win8.1x64, NVidia 9600, UAD2-OCTO, FireFaceUFX, REAPER x64]
daxliniere is offline   Reply With Quote
Old 01-17-2016, 09:17 PM   #40
daxliniere
Human being with feelings
 
daxliniere's Avatar
 
Join Date: Nov 2008
Location: London, UK
Posts: 1,831
Default

Quote:
Originally Posted by X-Raym View Post
I always enjoy hearing that my scripts are actually useful in real life project ^^
I use your stuff on a daily basis.
__________________
Dax Liniere
London's newest premium studio complex! (Facebook)
[i7-4790K, 12Gb RAM, Win8.1x64, NVidia 9600, UAD2-OCTO, FireFaceUFX, REAPER x64]
daxliniere is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 01:40 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.