ReaScripts: Advanced Renamers (Items-Takes, Tracks, Markers, Regions)

Introduction

The following scripts are meant to quickly rename various kind of REAPER elements.

With this system, with one single line of input, you can add prefix and suffix, but you also have access to a large access of wildcards (values that will be replaced with specific elements values (like the volume for items).

The most advanced feature is the counter system: you can have several sets of counters, linked together. This feature was meant for samples pack naming. More details below.

The items version of this scripts was sponsored by Soundiron. Thanks!

Pack Content

  • X-Raym_Rename regions in time selection or current region with patterns.lua
  • X-Raym_Rename markers in time selection or at edit cursor position with patterns.lua
  • X-Raym_Rename selected items with patterns.lua
  • X-Raym_Rename selected tracks with patterns.lua

Screenshots

Items versions

Items version is very useful for virtual instrument designers. It works on selected items active take.

Regions version

Regions version works with time selection.

Markers version

Marker version.

Tracks version

Tracks naming with two digits counter.

Details

The scripts works by detecting patterns separated by a separator characters chosen right in the user input window (usually, _). Words followed by =*number* like word=1 create a counter. When the ending number is reached during the count, it will cause the previous counter on the left to increment by 1.

Here are some common cases. Only symbols and wildcards have to match.

Prefix

prefix_$name

Suffix

$name_suffix

Simple Counter

count=1

Offset Counter

count=5

Reverse Counter

count=5-1

Multiple Counters

velocity=1_robin=1

Leading Zeros Counters

count=001

Unnamed Counters

!=1

Wildcards

Common

The following wildcards are common to all scripts in this pack:

  • $name = insert the current element name.
  • $number = insert the sequential number from selection order
  • $project = the name of the project file, without the .rpp extension.
  • $bpm = the rounded bpm of the project
  • $blank = extra blank line if needed
  • !_ and ! = these are deleted. it can be used for deleting sep characters or creating unnamed counters

Items

The item version as few more wildcards:

  • $itemnumber = insert the sequential number of the item on its track
  • $track = insert the track name that the item is on
  • $tracknumber = insert the track number that the item is on, starting from 1 (the top track)
  • $parenttrack = the name of the parent track that the item’s track is foldered under.
  • $marker = comma separated list of markers names for markers inside the item edges
  • $region = last region from item pos if item pos is inside it (aka, current region from item position)
  • $notes = item notes

Items order

There is several ways to determine items order for your counters:

  • time = uses absolute timeline position across all tracks. If two items start at the same time, the item on the higher track (lower track number) comes first.
  • track = counts all items on a single track, then restarts all counters when it moves to items on the next track
  • wrap = counts all items on a single track from left to right, then continues the count where it left off at the beginning of the next track

Example

Here is a complex case, with one word, three named counters, limits, reverse and leading zeros.

bell_vel-=122-120_round-=1-4_val-=001-002

will output:

bell_vel-122_round-1_val-001
bell_vel-122_round-1_val-002
bell_vel-122_round-2_val-001
bell_vel-122_round-2_val-002
bell_vel-122_round-3_val-001
bell_vel-122_round-3_val-002
bell_vel-122_round-4_val-001
bell_vel-122_round-4_val-002
bell_vel-121_round-1_val-001
bell_vel-121_round-1_val-002
bell_vel-121_round-2_val-001
bell_vel-121_round-2_val-002
bell_vel-121_round-3_val-001
bell_vel-121_round-3_val-002
bell_vel-121_round-4_val-001
bell_vel-121_round-4_val-002
bell_vel-120_round-1_val-001
bell_vel-120_round-1_val-002
bell_vel-120_round-2_val-001
bell_vel-120_round-2_val-002
bell_vel-120_round-3_val-001
bell_vel-120_round-3_val-002
bell_vel-120_round-4_val-001
bell_vel-120_round-4_val-002

Modding

You can mod this script by duplicating and renaming it.

Then, edit the the user config area in the top of the file. Here are easily customizable value:

-- USER CONFIG AREA -----------------------------------------------------------

line = "prefix_n=01-10_v=1-8_r=01-12_suffix"
sep = "_"

popup = true -- true/false: display a pop up box

console = false -- true/false: display debug messages in the console

------------------------------------------------------- END OF USER CONFIG AREA

The items active take version has few more options:

order = "timeline"

order_timeline_aliases = {"timeline", "time", "1"}
order_tracks_aliases = {"tracks", "track", "2"}
order_selection_aliases = {"selection", "wrap", "3"}

decimal_number = 1 -- Number of decimals for dB values

Feature Requests

Miss a wildcard? Let me know!

Installation

After purchase, installation instructions will be provided here and on the dedicated Purchase Confirmation page. License are valid lifetime. You will be able to enjoy updates and new scripts added to the pack.

Notes

By purchasing this product, you are supporting my free scripting. Thanks!

Thanks to Nofish for having set SWS Loudness functions available from ReaScripts!

Purchase

 

  • for individuals or students

  • For pros and small business companies

  • For a team of more than 5 people

Add to Cart