Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Q&A, Tips, Tricks and Howto

Reply
 
Thread Tools Display Modes
Old 10-17-2021, 05:28 AM   #1
sn1p3r
Human being with feelings
 
Join Date: Apr 2020
Posts: 13
Default search for frequencies and volume levels in WAV

I have recorder wild life overnight, and trying to filter out 14 hours audio without listening whole footage.

I am working on ReaScript, but I am guessing it may be already inside the Reaper.

Any suggestions, please?

Best solution would be script that loops through item/track, and finds certain volume levels, and frequencies.

Let's say I know noise is at -60, and I wish to seek anything above say -40.

Even better would be a capability to set certain frequency range - now is reindeer season, and they are somewhere around 100-800Hz

------------------------------
so far I managed following script.

for some unknown reason reaper.GetMediaItemInfo_Value( item, "D_POSITION" ) doesn't work/show current position.

Any suggestion how to loop through the item, and seek certain conditions. I guess it is something like "finding peaks".

-------------------


function Msg(param)
reaper.ShowConsoleMsg(tostring(param) .. "\n")
end


function main()
item = reaper.GetSelectedMediaItem(0, 0)

if not item then
reaper.MB("No item selected", "Oops", 0)
return nil
end


i_pos = reaper.GetMediaItemInfo_Value( item, "D_POSITION" )
i_len = reaper.GetMediaItemInfo_Value( item, "D_LENGTH" )

if i_pos > i_len then
reaper.MB("Cursor outside the item", "Oops", 0)
end

i_vol = reaper.GetMediaItemInfo_Value(item, "D_VOL")
i_vol_db = 20 * (math.log(i_vol, 10 ))


Msg("Position " .. i_pos .. " seconds")
Msg("Lenght " .. i_len .. " seconds")
Msg("Volume " .. i_vol .. " ")
Msg("Volume " .. i_vol_db .. " dB")
end



reaper.ShowConsoleMsg("")
main()
sn1p3r is offline   Reply With Quote
Old 10-18-2021, 01:47 AM   #2
Outboarder
Human being with feelings
 
Outboarder's Avatar
 
Join Date: Feb 2014
Posts: 834
Default

Hi sniper
I'll look into script later but you can use these actions to filter out anything below the certain threshold.
Item: Auto trim/split items (remove silence)
Item: Dynamic split items
__________________
Outboarder Scripts
Outboarder is offline   Reply With Quote
Old 10-18-2021, 10:35 AM   #3
sn1p3r
Human being with feelings
 
Join Date: Apr 2020
Posts: 13
Default

thanks for reply
sn1p3r 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 03:17 PM.


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