View Single Post
Old 03-23-2017, 03:08 PM   #1445
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,900
Default

@mlprod
Indeed, it is possible.

I don't plan to release that as a new script as it is a bit too specific, but here is some code to help you mod the script :

What you have to do is to add
Code:
zoom = reaper.GetHZoomLevel()
Somewhere at the top of the script (after user variable definition for eg).

Then, find the Set fades functions and divide the whole value by the zoom level this way
Code:
reaper.SetMediaItemInfo_Value(item, "D_FADEINLEN", value/zoom)
But there is few calculations with fades in seconds inside my script which check for fades overlapping, this may a bit more complicated to deal with, but the part without overlapping, (line 133), it is prety straighforward.

Hope that help !
X-Raym is offline   Reply With Quote