Last updated:

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!

Update (2020-09-20): These scripts have now a Version 2, more flexible, and with new wildcards.

Update (2023-01-05): Letter counters in items version of the script. Also, wildcards list is now up to date (addition of Scale counters etc).

Pack Content

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.

Region/Marker Manager Version (2020-11-12)

This version works on regions selected in region and marker manager.

Markers version

Marker version.

Tracks version

Tracks naming with two digits counter.

Usage

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 has specific 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.
  • $parenttop[i] = same as parent track with levels from current track. [i] is optional.
  • $parentdown[i] = same as parent track with levels from top parent of current track. [i] is optional.
  • $scale = iterate scale notes from note name. Chromatic. Format: A1, A#-1… Case sensitive from user input.
  • $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)
  • $regionid = current region ID
  • $notes = item notes
  • @itemnote = first empty item notes.
  • $iregion = rename with marker id number within the current region
  • $iregiont = rename with marker id number within the current region per track
  • $folder = list of the track names parenting of the item
  • $takemarker = first take marker
  • $letter = lowercase letter counter (Screenshot)
  • $uletter = uppercase letter counter

Tracks

  • $parenttrack = the name of the parent track that the item’s track is foldered under.
  • $parenttop[i] = same as parent track but trop level. [i] is optional.
  • $folder = list of the track names parenting of the item
  • $tracknumber = track id

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

New Pattern Format (2020-09-20)

I just released version 2 of this scripts as new actions. They have similar names but “_v2” as suffix.

  • + New counter engine. Not backward compatible: limits is not longer a destination value, but a counter (see below).
  • # Limit (restart condition) can be increment count or time distance if time unit if specified
  • + Repeatitor (increment condition) can be increment count or time distance if time unit if specified
  • + Incrementation value parameter, for decrementation or incrementation by an absolute value greater than 1.
  • + Restart jump added as fifth parameter

There is also new wildcard

  • iregion for index in region (markers version only currently)
  • $scale for musical notes like G# etc
  • @itemnote (item version) first empty item notes. @ are pre-abstraction wildcards (it replaces a part of your input).

Exemples

You can find examples on this Gist page.

Feature Requests

Miss a wildcard? Let me know!

Modding

You can mod these scripts to save custom inputs, deactivate popup or change advanced settings, without altering the main script, by using a Preset script.

Installation

This pack can be installed and auto-updated with the free ReaPack REAPER extension with a custom link related to your licence, or via regular Zip download. After purchase, detailed 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

  • Personnal use, you are an individual, a student, or a non-profit organization, and you will not use this pack on commercial projects.

  • Your work for a small business company or commercial projects.

  • You are a big business company with a team of more than 5 people. Consider one purchase per team.