Auto region script

I’ve created a script for automatically adding regions to groups of items in reaper.

I’ve primarily made it because my typical workflow for variations would be to design a sound using sausage files and once i’m happy, i’ll duplicate the items across and tweak timings etc… and use item sliding to use different variations of the source files.

I have been using a script my friend made which attempts to automatically guess what your regions would be based on trying to recognise a pattern. It worked like 80% of the time, so in general its a time saver. He hates Ui so he’d hate this script i made. I’ve taken the guess work out of it and tried to keep it simple.

You select your items, it adds regions to all of them and then you use the interface to say how many regions it should be. It updates in realtime based on what you pick and updates the regions to wrap around to create the number of variations you want to make. It only allows divisors of the total selected, as i’m making the assumption that each variation to render has the same number of items.

I have thought i can add another algorithm which maybe takes a threshold time between variations, to allow you to have different numbers of items in your variations. But i haven’t entirely thought through how i’d program that or how i would update the interface to accommodate. So still thinking about that one.

I’ve uploaded to my git hub and generated a reapack repository, so if you want to get this and any future scripts i create then add https://raw.githubusercontent.com/shikuboxer/TechSoundDesign/refs/heads/main/index.xml to your repositories in reapack.

If you have any thoughts, then let me know. There is a dependency on ImGui although i think that this is installed when you get reapack… so you “shouldn’t” have any issues.