Old 08-02-2019, 07:03 AM   #1
Amberience
Human being with feelings
 
Amberience's Avatar
 
Join Date: Oct 2006
Location: swing on the spiral of our divinity
Posts: 2,242
Default Would it be possible to auto-sort items via a script?

We deal a lot with sample library development. I'm wondering if it would be possible to write a script that would auto-sort items via their RMS (within the first X ms of the item) ??

IE: You've got 10 drum hits, quiet to loud. But they're not in order. Select the items, run script.... their positions in the timeline switch around so that they're now in loudness order from quiet to loud. It would need to be aware of groupings too, so that grouped items follow the selected item that is being moved.

Do you think this is possible in Reascript?
Amberience is offline   Reply With Quote
Old 08-02-2019, 07:07 AM   #2
Amberience
Human being with feelings
 
Amberience's Avatar
 
Join Date: Oct 2006
Location: swing on the spiral of our divinity
Posts: 2,242
Default

One idea I had was to use a Python script which uses the Librosa library to do the RMS analysis. But wondering if there is a way to do it built into Reaper itself?
Amberience is offline   Reply With Quote
Old 08-02-2019, 07:19 AM   #3
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,900
Default

I have scripts to set position and order of items (aka, sorting), and scripts to do things with RMS and Loudness of items.
Making an hybrid of that (sorting based on RMs or Loudness) could totally fit my Custom Dev Plan (link in signature).


No need for python exter al library anyway, SWS provides all needed functions.
X-Raym is offline   Reply With Quote
Old 08-02-2019, 07:36 AM   #4
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,900
Default

Oh yes I forgot,


there is some native SWS actions:


  • SWS: Organize items by RMS (entire item)
  • SWS: Organize items by peak RMS
  • SWS: Organize items by peak


It doesnt works with loudness or doesnt have extra settings for multi tracks behavior but it can do the trick.
X-Raym 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 12:44 AM.


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