Old 04-22-2021, 05:23 PM   #1
en5ca
Human being with feelings
 
Join Date: Dec 2018
Posts: 394
Default ak5k Toms tool (Lua)

ak5k_Toms tool

Made to ease the tedious task of 'manual tom gating' (or isolating/separating toms) when mixing drums. Requires for REAPER Transient Detection to bet set properly, as it relies on transient detection.

Basically it's a 'strip silence - add fades - add filter fade' based on some FFT and 'Magic Numbers', which can be altered by changing some variables in the script. It adds the filter fade as Take FX after the last transient per item to quickly clamp down close to around 200 hz analyzed decay frequency to prevent e.g. cymbal bleed using 'JS: Simple 1-Pole filter'. Fades and filter envelope are user adjustable and not burned in.

First run/pass/iteration trims items (strips silence), add fades and filter. Keeping the items selected, second run removes the filter. Third pass removes fades. Each pass creates an undo point. Works nice with Razor Editing.



In theory, it can handle larger portions in a one go, if the transients are properly detected.



Improved Razor Edit support


Last edited by en5ca; 10-20-2021 at 05:34 PM.
en5ca is online now   Reply With Quote
Old 04-23-2021, 10:31 AM   #2
mpl
Human being with feelings
 
mpl's Avatar
 
Join Date: Oct 2013
Location: Moscow, Russia
Posts: 3,960
Default

Pretty useful, thanks!
mpl is offline   Reply With Quote
Old 04-23-2021, 10:47 AM   #3
en5ca
Human being with feelings
 
Join Date: Dec 2018
Posts: 394
Default

Quote:
Originally Posted by mpl View Post
Pretty useful, thanks!
Thanks! Just updated. Added some crude FFT to detect decay frequency to serve as a kind of factor for fade times. Also, should be able to handle larger portions too.
en5ca is online now   Reply With Quote
Old 04-23-2021, 11:35 AM   #4
Skorobagatko
Human being with feelings
 
Skorobagatko's Avatar
 
Join Date: Mar 2017
Location: Ukraine, Kyiv
Posts: 546
Default

Super useful, great job!
Skorobagatko is offline   Reply With Quote
Old 04-25-2021, 12:20 PM   #5
en5ca
Human being with feelings
 
Join Date: Dec 2018
Posts: 394
Default

Quote:
Originally Posted by Skorobagatko View Post
Super useful, great job!
Thanks! Just updated with improved Razor Editing.
en5ca is online now   Reply With Quote
Old 08-07-2021, 04:37 AM   #6
daxliniere
Human being with feelings
 
daxliniere's Avatar
 
Join Date: Nov 2008
Location: London, UK
Posts: 2,581
Default

Cool! This looks very useful, ak5k!
It'll take it for a spin.

One idea; it would be great if the unused area wasn't removed, but simply muted (and ideally items added to a single group for each track.) This way you can easily add it a little bit of bleed for a more natural sound.

All the best,
Dax.
__________________
Puzzle Factory Sound Studios, London [Website] [Instagram]
[AMD 5800X, 32Gb RAM, Win10x64, NVidia GTX1080ti, UAD2-OCTO, FireFaceUCX, REAPER x64]
[Feature request: More details in Undo History]
daxliniere is offline   Reply With Quote
Old 08-07-2021, 06:28 AM   #7
daxliniere
Human being with feelings
 
daxliniere's Avatar
 
Join Date: Nov 2008
Location: London, UK
Posts: 2,581
Default

Hey AK5K, any thoughts on handling this kind of situation?

__________________
Puzzle Factory Sound Studios, London [Website] [Instagram]
[AMD 5800X, 32Gb RAM, Win10x64, NVidia GTX1080ti, UAD2-OCTO, FireFaceUCX, REAPER x64]
[Feature request: More details in Undo History]
daxliniere is offline   Reply With Quote
Old 08-07-2021, 09:49 AM   #8
en5ca
Human being with feelings
 
Join Date: Dec 2018
Posts: 394
Default

Quote:
Originally Posted by daxliniere View Post
Cool! This looks very useful, ak5k!
It'll take it for a spin.

One idea; it would be great if the unused area wasn't removed, but simply muted (and ideally items added to a single group for each track.) This way you can easily add it a little bit of bleed for a more natural sound.

All the best,
Dax.
Hi! Thank you for feedback. I don't think the programming used in Toms Tool would translate into something useful with the situation in picture/gif. To my understanding, that would be a task for something like "remove/strip silence" found in other DAWs, and who knows maybe it has already been scripted, if not a native feature in REAPER. But Toms Tool is based on REAPER transient detection and some crude pitch detection, so it would not be easily converted into handling that situation.

Initial versions of Toms Tool didn't delete but muted the 'left overs', but I found it to be a bit pointless, because I wrote Toms Tool for situations where I explicitly want to hard gate toms (etc) 'manually'; mostly when working with rock and metal. But you could also just duplicate tom tracks, and then merge/collapse/implode Toms Tooled track with original, overwriting the item parts where toms are separated with Toms Tool.
en5ca is online now   Reply With Quote
Old 09-17-2021, 11:11 AM   #9
permeke
Human being with feelings
 
Join Date: Dec 2019
Posts: 588
Default

Doesn't seem to work here.
I got this popup

ak5k_Toms tool.lua:255: bad argument #1 to 'TakeFX_GetCount' (MediaItem_Take expected)
permeke is offline   Reply With Quote
Old 09-17-2021, 11:58 AM   #10
en5ca
Human being with feelings
 
Join Date: Dec 2018
Posts: 394
Default

Quote:
Originally Posted by permeke View Post
Doesn't seem to work here.
I got this popup

ak5k_Toms tool.lua:255: bad argument #1 to 'TakeFX_GetCount' (MediaItem_Take expected)
Hi! Works here, at least with REAPER 6.36. Do you have multiple takes on your drum/tom tracks?
en5ca is online now   Reply With Quote
Old 09-17-2021, 04:36 PM   #11
permeke
Human being with feelings
 
Join Date: Dec 2019
Posts: 588
Default

I'm also on 6.36.
Single takes.
I reinstalled tom tool, no joy.
It only add stretch markers !!
permeke is offline   Reply With Quote
Old 09-17-2021, 05:19 PM   #12
en5ca
Human being with feelings
 
Join Date: Dec 2018
Posts: 394
Default

Quote:
Originally Posted by permeke View Post
I'm also on 6.36.
Single takes.
I reinstalled tom tool, no joy.
It only add stretch markers !!
Hmm, those should be the markers detected by REAPER Transient Detection, which the script uses. Hard to pinpoint exactly what is causing the error. To my understanding, the script should then fail at the beginning if it can't 'get selected items or takes' from the timeline, based on the error message.
en5ca is online now   Reply With Quote
Old 09-19-2021, 07:24 PM   #13
en5ca
Human being with feelings
 
Join Date: Dec 2018
Posts: 394
Default

Quote:
Originally Posted by permeke View Post
I'm also on 6.36.
Single takes.
I reinstalled tom tool, no joy.
It only add stretch markers !!
Does this work? Modified version of script as an attachment.
Attached Files
File Type: lua ak5k_Toms tool_test.lua (12.9 KB, 68 views)
en5ca is online now   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 06:25 AM.


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