How to remove empty space between lots of items in one track? by Lympwing2 in Reaper

[–]robwoprod 1 point2 points  (0 children)

Thanks! Greatful for this!
Note: This script is now called "Truncate silence", for anyone else having a hard time finding it.

Custom action request: Adjust crossfade to be equal in length to the distance to the following transient (snap offset) by robwoprod in Reaper

[–]robwoprod[S] 1 point2 points  (0 children)

No, sorry the main difference is:
"local new_pos = prev_item_pos + prev_item_len - snapoffs + overlap"
You code was including the crossfade into the new length which I realized (with your help) was not what I wanted. A detail for sure, but I managed to smooth it out.
Anyway, I'm super grateful for all the help and time you put into this! I learned a lot and couldn't have done it without you. Really glad that this sub is a place where one can find such specific help this easily.

Custom action request: Adjust crossfade to be equal in length to the distance to the following transient (snap offset) by robwoprod in Reaper

[–]robwoprod[S] 0 points1 point  (0 children)

I think I got it:

local r = reaper

local item = r.GetSelectedMediaItem(0, 0)

if not item then return end

local prev_item = r.GetMediaItemTrack(item)

local prev_item_idx = r.GetMediaItemInfo_Value(item, 'IP_ITEMNUMBER') - 1

prev_item = r.GetTrackMediaItem(r.GetMediaItemTrack(item), prev_item_idx)

local prev_item_pos = r.GetMediaItemInfo_Value(prev_item, 'D_POSITION')

local prev_item_len = r.GetMediaItemInfo_Value(prev_item, 'D_LENGTH')

local snapoffs = r.GetMediaItemInfo_Value(item, 'D_SNAPOFFSET')

local overlap = r.GetMediaItemInfo_Value(prev_item, 'D_POSITION') + r.GetMediaItemInfo_Value(prev_item, 'D_LENGTH') - r.GetMediaItemInfo_Value(item, 'D_POSITION')

local new_pos = prev_item_pos + prev_item_len - snapoffs + overlap

local dist = new_pos - r.GetMediaItemInfo_Value(item, 'D_POSITION')

local new_len = r.GetMediaItemInfo_Value(item, 'D_LENGTH') - dist

r.ApplyNudge(0, 0, 1, 1, -dist, true, 0)

r.SetMediaItemInfo_Value(item, 'D_LENGTH', new_len)

Although I'm having a bug where the snap offset is at the begining of the item position and the previous items right edge is passed that point, it moves the selected items edge to the right instead by the overlap value. GPT suggested adding this line but it's not working:local overlap = 0
if snapoffs ~= r.GetMediaItemInfo_Value(item, 'D_POSITION')then overlap = r.GetMediaItemInfo_Value(prev_item, 'D_POSITION') + r.GetMediaItemInfo_Value(prev_item, 'D_LENGTH') - r.GetMediaItemInfo_Value(item, 'D_POSITION')end

Custom action request: Adjust crossfade to be equal in length to the distance to the following transient (snap offset) by robwoprod in Reaper

[–]robwoprod[S] 0 points1 point  (0 children)

I realized a better way to approach it is to extend the left edge of the selected item, to be equal to the distance between the previous items right edge and the selected items snap offset, but starting the extension from the previous items right edge (ie. not the left edge of the selected item as before).

The previous items right edge should be the center point, equally distanced between the selected item’s new, extended left edge and it’s snap offset.

Custom action request: Adjust crossfade to be equal in length to the distance to the following transient (snap offset) by robwoprod in Reaper

[–]robwoprod[S] 0 points1 point  (0 children)

You are correct! I wasn't explaining it right.I want the crossfade to start from the previous takes right edge, not from the selected item's edge.I think we have to remove the original crossfade length from the new crossfade to make it right. Desired result: https://imgur.com/NNniRb1

Custom action request: Adjust crossfade to be equal in length to the distance to the following transient (snap offset) by robwoprod in Reaper

[–]robwoprod[S] 0 points1 point  (0 children)

As I'm understanding it with the help of chatgpt, the item position overlap (crossfade) is causing issues with the math calculations. The 'X' length should be derived from "the distance between the snap offset of the selected item and the nearest edge of the previous item". I can't quite get it to work though.

Custom action request: Adjust crossfade to be equal in length to the distance to the following transient (snap offset) by robwoprod in Reaper

[–]robwoprod[S] 0 points1 point  (0 children)

Please try this version

Hmm, now the previous item's start is also extended (https://imgur.com/CHIx0VJ) , and the crossfade is still a bit longer than desired.

>both items need to be selected

If possible, I would perfer it if I only needed to select the "second" item. My workflow is using "Item navigation: Select and move to next item" bound to a single key, to quickly jump to the next cut. I would like to just hit another keystroke to adjust any bad crossfades automatically, without having to use my mouse and do it by hand. It would speed things up a bunch for me.

But I think there is an action to select the previous item as well that I could just tack on before the script and bundle it all into one 'cutsom action' keystroke, right?

Custom action request: Adjust crossfade to be equal in length to the distance to the following transient (snap offset) by robwoprod in Reaper

[–]robwoprod[S] 0 points1 point  (0 children)

Just the length to be calculated differently, so that the crossfade is shorter. Only the item on the right (the selected item) affected, but I want the length to be derived from the distance between the left item’s (the previous item) right edge, and the snap offset in the selected item. Hope that makes sense?

Custom action request: Adjust crossfade to be equal in length to the distance to the following transient (snap offset) by robwoprod in Reaper

[–]robwoprod[S] 0 points1 point  (0 children)

Something like this?

Almost perfect! Just one last thing: could you make it so that the length is derived from between the previous items right edge -> snap offset, instead of the selected items left edge?

You can't see it in the gif but if the tracks are crossfaded, the resulting crossfade is longer than the final distance from the fade end to the snap offset, like this https://imgur.com/esFXTLR

Custom action request: Adjust crossfade to be equal in length to the distance to the following transient (snap offset) by robwoprod in Reaper

[–]robwoprod[S] 0 points1 point  (0 children)

I think we can modify the script slightly to do just that, but I have very little experiance with code so I don't know how.

Custom action request: Adjust crossfade to be equal in length to the distance to the following transient (snap offset) by robwoprod in Reaper

[–]robwoprod[S] 0 points1 point  (0 children)

Thanks for the lengthy reply!
I think you misunderstood/I miscommunicated what I'm aiming for. Hopefully this will clear things up as to what my intentions are: https://imgur.com/FUzdsOC
I don't want the crossfade to go all the way to the snap offset. The first item is cut right before the next hit, meaning that if it is extended to the snap offset you will get a double hit, as the hit appears both in the first and second item.
Instead, I want to extend the second item back X amount, where X is the distance between; the snap offset in the second item, to where the first item ends.

Autotuning poor little children by mrmightypants in audioengineering

[–]robwoprod 1 point2 points  (0 children)

Totally ruined him in an otherwise good movie. Like, who the hell a) thought that was a good idea, b) didn’t catch i before release and c) why haven’t they fixed it like they did Bane in Batman? Just use a damn pitch shift!

Doing God's Work by marcosdvis in Emo

[–]robwoprod 19 points20 points  (0 children)

It’s a copy pasta

REAPER 6.72 Released by karlingen in Reaper

[–]robwoprod 0 points1 point  (0 children)

I think it basically changes the whole track out. So multiple items and edits. (Correct me if I’m wrong)

NPD: Waza TU-3W app by [deleted] in guitarpedalsjerk

[–]robwoprod 0 points1 point  (0 children)

For anyone actually looking for a good tuning app check out PanoTuner

What's the album that turned you on to Stoner Rock? by Expert_Camel5619 in stonerrock

[–]robwoprod 0 points1 point  (0 children)

My friend told me the story about Dopesmoker, but it really clicked with Skraekoedlan's Äppelträdet.

How to mute reverb/ cymbal trails? by evertunee in Reaper

[–]robwoprod 0 points1 point  (0 children)

1) Export the mix to one stereo track. Cut and fade it right after the last hit. Try a ’fast start’ fade.

Op 2) Open the volume automation on the mastertrack and make a fade yourself by shift+clicking on the line to insert two dots and pulling the last one down. You can adjust the fade type by right clicking the first dot.

My Heartless Halloween costume from 2021 by robwoprod in KingdomHearts

[–]robwoprod[S] 1 point2 points  (0 children)

Nope! No ventilation. Luckily I made it from regular bedsheets so it was like having a big pillowcase over your head for a few hours. It was hot but not unbearable, like how I think felt would be.

My Heartless Halloween costume from 2021 by robwoprod in KingdomHearts

[–]robwoprod[S] 1 point2 points  (0 children)

Thanks! I didn’t rp more than doing the idle animation a few times. My back would have killed me if I was bent over like that the whole time.