HeDa Scripts for REAPER

REAPER is a great DAW with an extensive capability to be customized and extended with scripts. In this page I want to share some of the scripts I create and maintain. I hope you like them and support me with a VIP member donation(Paypal) if you consider it is interesting and helpful for your work. Additional paypal donations can also be sent directly. Thank you.

To start, you have to install HeDaScripts Manager and then use it inside REAPER to automatically install the rest of the scripts:

Track Inspector VIP v1.4pre14 (2017-07-12)

* v1.4pre14 (2017-07-12)
  + Track Tags: Use selected tracks when saving a preset as tracks to scroll into view when loading presets
  # fix: maintain scroll position exactly relative to last panel visible

* v1.4pre13 (2017-07-07)
  # fix: Hide TI Tracks on changing project.
  # fix: check to select current track before toggle envelope [p=1862627]@bFooz

* v1.4pre12 (2017-07-06)
  # fix: revert update all instances when working with tags because tag buttons were not working on other instances
  # fix: internal optimization not sorting tags by name continuously, just when needed.
* v1.4pre11 (2017-07-06)
  # fix: update all instances when working with tags
  # fix: don't delete TI tracks when closing floating instance if main instance is running.
  # fix: display tags panel if it is in master track, also for TI Master instance
  # Hide TI tracks when updating track [p=1862137]@bFooz
* v1.4pre10 (2017-07-05)
  + Track Tags: Right click TCP MCP buttons to change each tag logic for visibility.
  + Freeze: added button to select tracks (more intuitive than right click the other button) Also displays how many tracks are selected.
  # fix: Select tracks to freeze with audio takes.
  # fix: top bar scroll [p=1862085]@bFooz
  # fix: Prevent refresh when all versions are being collapsed [p=1862088]@bFooz
  # fix: restore track selection after freezing [p=1862088]@bFooz
  # fix: crash Ctrl + Click to a tag which has no selected tracks [p=1862104]@mehmethan
  + Settings: Reset all settings to main instance button. [p=1862085]@bFooz

some of the latest changes in Track Inspector. Many bug fixes reported on the forum thread.

Now when tags presets are saved, it saves the selected tracks and will use these tracks to scroll into view when loading that preset.

Track Inspector VIP v1.4pre9 (2017-07-04)

* v1.4pre9 (2017-07-04)
  + Track Tags: Toggle Solo in place by tags (except muted tracks)
  + Track Tags: Toggle Mute by tags (except already muted tracks)
  # Track Tags: Copy tags automatically when creating new Track Version
  # fix: crash renaming tag if there are no presets stored
  # fix: Additional instances (Master, Floating, etc) now use the same internal project data (used for notes, tags, etc etc) while maintaining different configurations.
  # Setting: customizable number of tags presets
  # Track Tags: avoid duplicated tags. @G-Sun
  # fix: tags panel arrow not rotating. @bFooz
  # Added second Floating instance
  + Setting: Tooltip delay

New tags function to solo and mute tracks by tags. It does respect your already muted tracks.

Now if a track has multiple tags, all of them must be set to visible in order to make the track visible. I'm thinking what will be the best way to make OR combinations for tags. So for example if only one of the tags is found to be set visible then show the track.

The floating instance won't generate additional sends now and it is possible to change tracks and work with the docked instance and the floating instance at the same time. Still each instance has its own configuration so you can hide or show panels individually for each instance. So I added a second floating instance by default that I will use for example to hide all panels from the settings except the tags one. Now all tags, notes, and any other project data are stored in the main instance always. So you can access the information from the floating instances too.

Track Inspector VIP v1.4pre8 (2017-06-30)

* v1.4pre8 (2017-06-30)
  + Track Tags: TCP MCP Visibility Presets (CTRL+Click to save preset. ALT+Click to delete preset)
  + Track Tags: 9 actions to load presets via action shortcuts
  + Track Tags: Tags panel menu
  # Track Tags: copy and paste moved to panel menu
  # Track Tags: CTRL+Click to solo visibility. TCP MCP buttons become green indicating it is soloed. Do it again to unsolo.
  # Track Tags: option: MCP visibility follows TCP visibility
  # Track Tags: tags are automatically copied when duplicating tracks
  # Track Tags: sort list of project tags by name
  # Track Tags: SHIFT+click tag to rename tag
  # Track Tags: align TCP MCP buttons columns
  # Track Tags: internal optimizations in list of tags
  # Track Tags: some bug fixes, tags lost when switching tabs, and smaller bugs

Tags Visibility Preset system is working now. It adds 9 presets buttons to save(CTRL+click) or load(Click) combinations of TCP and MCP visibility for quick recall.

Even more. This update adds 9 new actions in your actions window to load each preset. So you can customize your keyboard shortcuts to quickly load a preset without having to go to track inspector panel.

Tags are now ordered by name. And you can rename them (SHIFT+click) Tip: You can for example put an * prefix to a tag and it will show first before any other tags.

You can solo the visibility of a tag by CTRL+click on the tag in the list of all tags. the button becomes green indicating that it is soled. CTRL+click again on it to restore visibility.

There was a big bug in tags not being saved correctly when switching project tabs. It works now. There have been some other internal changes from previous prerelease, so test this all you can.

Track Inspector VIP v1.4pre7 (2017-06-26)

* v1.4pre7 (2017-06-26)
  + Tracks Tags: Add tags to tracks, for example MIDI, VCA, AUDIO, VOCALS, GROUP 1, etc...  whatever you want. You can add multiple tags to each track.
  + Tracks Tags module: Show or hide in TCP or MCP by tags. / Select Tracks by tags.
  # fix: maintain panels scroll position(to latest fully visible) when selecting another track.

This update adds a new panel for adding TAGS to tracks. In REAPER all tracks are the same. This is an advantage but it would also be nice to categorize tracks for several purposes.

Now you can add a tag to each track, or multiple tags. First select the track or multiple tracks you want to categorize and click +Tag button to add the tag. You will see a list of tags in green which are the tags assigned to the selected track. To remove a tag, ALT +click on it.

Below you see a list of all tags used in the project. Click on this list tag name to select all tracks with this tag. Or CTRL click to add that tag to selected tracks without having to type the name of the tag. ALT click to remove this tag from all tracks. There are two buttons TCP and MCP. This toggles the visibility of the tracks with this tag on the TCP or MCP.

More functionalities by tags can be added and some presets and custom actions to toggle TCP and MCP visibility directly with a shortcut will be added.

Track Inspector VIP v1.4pre5 (2017-06-11)

* v1.4pre5 (2017-06-11)
  + Direction meter (like direction line in goniometer) (change smooth of direction meter with mouse wheel over it)
  + Direction histogram
  + Phase Correlation meter
  + Phase Correlation histogram
  + JSFX Track Inspector optimizations (after update, restarting REAPER once is required to refresh the JSFX)
  + Two sets of custom reference levels with a button to quickly switch between them, and settings to define levels and names
  + Setting: Auto reset on clipping when play/seek [p=1853656] @Macc
  + Setting: Auto reset EBUR128 on play/seek [p=1853656] @Macc
  + Toggle Master Mono button [p=1853791] @G-Sun
  + Changed some Default Settings for Master instance only that override default settings (when resetting to default)
  # fix: pan law and pan mode for master track was not working.
  # fix: RMS window for master track and not being set correctly if changed from default.

  • This update includes some new things. A new meter for direction (like the direction line in a goniometer) of stereo sound with histogram, and a phase correlation, also with histogram.Both can be enabled/disabled from the Meters menu if you don't like them. Histogram doesn't update if there is no signal detected or if the correlation is perfect 1.0 all the time, in the case of mono output for example. 
    You can click over the meter or correlation meter, to reset the histogram in case you changed something and need a new analysis.
    You can also change the speed/smoothness of the direction meter indication. Use the mouse wheel to do so, while the mouse is over the meter. Lower values will be more responsive to changes in stereo direction.
  • Restart REAPER required after update: A number of optimizations have been done to the Track Inspector JSFX that is installed in the JSFX effects folder needed for the meters. Since you may be running already this JSFX when updating to this version, you may need to just restart REAPER to make sure REAPER reads again the new JSFX file, The new meters(direction and correlation) won't be working until then.

  • A new feature that adds a second set of reference levels for mastering. I use this because in the project mixing I export all to -23 LUFS and I like to have master reference level as -23. But then in mastering, I may want to compress all to -14 or -16. I don't wanted to constantly go to settings and change the reference levels for the master, so now it is one click only directly from the meter. You can customize both sets of reference levels from the settings page, and rename them if you want.
  • This update includes also some bug fixes and features requested by users in the forum, like a mono button for master, and auto reset clipping/LUFS indicators when playing /seeking. Thank you for the suggestions!



Track Templates VIP v1.0pre7

* v1.0pre7 (2017-05-20)
  + Show directories panel: splits in two panels, one for directories, and one for the templates
  + Lock directories panel to home: option useful to always show directories panel if you only have one subdirectory depth structure
  # Zoom - and + buttons: Use Right click to zoom the directories panel.

here is an update I've just added that I've been working on. It adds the option to split the panels, one for subdirectories and one for templates.

Track Inspector VIP v1.4pre2

* v1.4pre1 (2017-05-15)
  + Set Track(s) Color
  + Track color gradients (Saturation and Luminance)
  + Track color RGB hex code copy&paste
  # right clicking track id again being in master track goes back to previous track before right clicking to go to master track

New color panel to set track colors. May add some swatches to save and recall color favorites.

To close the color panel: Click again in the color button (top left) or right click anywhere in the color saturation/luminance area.

Color gradients option if multiple tracks selected:


1.4pre2: Hue gradient. Right click to define second color to make the hue gradient

Track Inspector v1.3 and Track Inspector VIP v1.3 released

Track Inspector v1.3 and Track Inspector VIP v1.3 released
It's been a while.. lots of bug fixing, improvements and features.
Thanks to all VIP pre-release testers who helped me finding bugs and suggesting features in the Track Inspector VIP thread!
Development continues.

changes since 1.2:
* v1.3 (2017-05-03)
  + Release Track Inspector v1.3 and Track Inspector VIP v1.3
  # fix: clear loudness histogram when turning off EBUR128
  # fix: don't draw pixel at waveform line 0 amplitude
  # fix: don't draw loudness meter at IL if not playing and no signal.
  # fix: issue when reordering fx when there were input FX in track.
  + Theme: Bypassed FX color
  + Theme: Floating FX color
  # reset clip indicators when changing track
  # fix: position reference levels number in grid
  # fix: issue on meters causing 1 pixel flickering on reference levels
  # allow meter.png files with more resolution
  # Reset EBUR128 using new function is back as an option (not enabled by default)
  # Better settings buttons texts
  # fix: removing last fx in chain
  # fix: remove FX on tracks with frozen FX
  # fix: skipping only unnecessary undos
  # fix: refresh correctly when undo track change
  # fix: font4 size > 24 issue in bottom menu
  # fix: another fix for crash related to fx groups in some cases
  # fix: crash when using auto_groups in rc8 [p=1828526] @ericzang
  # fix: broken undo history when exiting and show envelopes for track is active.
  # fix: removing FX by ALT+Lmb in FX CHAIN panel: fxid issue solved by removing fx with own function instead of SWS.
  # fix: toggle FX group undo block, not creating one undo for each FX toggled
  # fix: do not reset when no track is selected
  # fix: do not use chunks in the new reset function. using chunks to reset causes audio clicks when resetting.
  # skip Track Inspector undo blocks when undoing.
  # fix: undo issue when show envelopes for track is active
  # fix: EBUR128 not working first time if started with only RMS
  # fix: RMS meter issue if not using EBUR128
  # grayed out EBUR128 options in meter's menu if not using EBUR128
  # right click UL DL, to remove limits too. (easier than ALT+click)
  # fix: solo and mute buttons not working on locked track [p=1823076] @Gianfini
  # Storing UL and SL fader limits for each track. ALT+click to remove.
  # name of plugin tooltip over FX plugins
  # fix: don't create undos when moving L1 L2 gradually (speeds < 100)
  # fix: L1 L2 work with locked track, instead of selected tracks, if Track Inspector is locked to a track.
  # fix: undo loop when clicking L1 L2 without having a value stored.
  # improved about & changelog page and some docking issues for about and settings pages
  # fix: reverting to internal triggers. bug reading files in mac osx [p=1822253] @Sumalc
  # update track when import tracks.
  # optimized update track trigger function.
  # fix: mute and solo buttons work on all selected tracks.
  + Solo (ignoring routing), unsolo all, exclusive solo, toggle solo defeat.
  + Mute all others, unmute all, exclusive mute.
  + Show/hide send presets toggle option in sends panel menu.
  + Additional Load/Save button for fader (L2) to have two memory values.
  + Change to L1 or L2 gradually (right click in L1 and L2 buttons to set speed for each, try 0.5 for slow move, 100 is default which is very fast for immediate change.)
  # fix: better docking/undocking
  # fix: bottom meter overlapping menu [p=1816186] @exidus
  # fix: Switching versions volume increase when playing [p=1813473] @amagalma
  # fix: Clear FX chain in aux tracks before adding dpmeter and track inspector plugins. [p=1814464] @amagalma
  # cleaned some unnecessary undos [p=1814942] @amagalma
  # changed default to use_new_reset_functions
  # fix: Show all track versions bugs [p=1813385] @amagalma
  + Help button to open online documentation page.
  + Buttons for panel menus.
  # fix turning on/off analysis meter plugins(bug introduced in pre6).
  # fix limits when dragging meter area size.
  # reset panels vertical scroll on track change.
  # small fix background color in bottom area.
  + Meters: Show Peaks option
  + Meters: Show SL histogram
  # Meters: improved peak clip indicators (click the number to reset it)
  + meter_master.png for different meter image on master track if wanted.
  + waveform color setting.
  # waveform scalemax always 1.0 for master track.
  # fix: update track when pasting tracks.
  # fix: spacing in collapsed freeze and receives panels.
  # fix: meters when switching track version [p=1811034] @amagalma
  # fix REAPER theme not detected on OSX (hopefully)
  # trying to fix crash when opening settings on OSX.
  # fix: muted receives in "text 2 color"
  # fix: SHIFT+click to toggle receive works for multiple selected receives.
  + SHIFT+Right click to solo receive.
  + Solo buttons on receives, option to hide them.
  # fix: reorder FX while dragging setting [p=1808854] @InfraBass
  # fix: REAPER theme name crash [p=1808854] InfraBass
  # replaced links to posts of bug reports by proper ones [p=xxxxxx] in the changelog, also added nickname of user reporting the bug.
  + Track Inputs option in general panel. (audio mono and stereo inputs, and limited MIDI to all MIDI inputs for now)
  + new instance action dedicated to Float the inspector close to where the mouse cursor is. [p=1806616] @Chimera123
  # fix: crash when removing receives
  # fix: better handling bypassing plugins on monitorfx chain with Loudness Graph 2.1
  # fix: tooltips panels
  # fix: some unnecessary undos in pre6
  + master track inspector: Option to use monitor FX. Use premaster option is still there but it is better to use Monitor FX
  # fix: avoid creating wrong hardware output in premaster track
  + Option in settings to Render Stems to new track versions with POST-FADER rendering or PRE-FADER as before by default.
  # fix: group flags, track color and track icon are copied to new stems rendered track version
  # fix: check track version exists before deleting track version when it is in a track group
  + Freeze: option to Archive/Unarchive children of frozen tracks.
  + New way to create Track Version (Rendering Track stems) It uses mono, stereo, or multchannel as defined in Freeze panel, or auto.
  # font fix freeze details
  # fix: Set Automation mode working for all selected tracks.
  # fix: Bypass send(SHIFT+click) works on all selected sends [p=1803556] @G-Sun
  # fix: tooltip GV button [p=1803556] @G-Sun
  # fix: recently broken prefx meter
  # rms peak hold smaller font
  # more font and spacing adjustments (fader load button, bottom part, MLMAX SLMAX TPMAX LRANGE.
  + Sends: Right click on send bar to Toggle send's volume envelope visibility
  + Sends: ~ button to Toggle send's volume envelope visibility
  + Theming: Track Inspector themes. Change colors and appearance from settings page. Save/Load themes. optionally auto match theme from REAPER theme.
  # fix: several font sizes, better font increase looking
  # Settings: Settings file "TI_Settings.cfg" is now located in dedicated settings folder. This way you can update without losing your own settings. New settings, if any, automatically added from defaults.
  # fix: TI_Settings file saved correctly for new instances id > 2
  + Meters: Option to color meter by track or by loudness ranges defined by Ref level and overs level.
  + Meters: Option to use image file for the meter colors
  + UI: Show/Hide version group button.
  # UI: Timebase button now with menu to select the timebase and works for all selected tracks.
  # UI: Hide the Lock track button by default, option in menu to show it.
  # Change Pan Law works for all selected tracks now.
  # Change Pan Mode works for all selected tracks now.
  # Performance: read track icon with included API function if using REAPER 5.15+ (faster)
  # Listening mode remembers mode when switching.
  # fix mouse wheel over meters area could affect controls below meter if meter panel is in fixed height mode.
  # fix Envelopes button: make sure only one track selected.
  # fix Toggle Env button: support for all selected tracks.
  # Improved meter's grid drawing
  # fix: hide versions and general panel for master track.
  # UI: redesign a bit the general panel.
  # Save/Load/Remove saved track gain works for multiple selected tracks.
  # CTRL+click fader load button to save value.
  # Alt+click fader load button to remove saved value.
  # UI: line indication of saved fader value on the fader scale.
  # fix: crash if loading fader value without having saved first.
  # fix: remember track lock state [p=1799641] @Gianfini
  # fix: use points or commas in Change by dB textbox [p=1799472] @G-Sun
  # many more small bug fixes that I forget to put here

Track Inspector v1.3rc1 (2017-03-19)

Latest updates released for VIP members.

Track Inspector VIP

* v1.3rc1 (2017-03-19)
  + Additional Load/Save button for fader (L2) to have two memory values.
  + Change to L1 or L2 gradually (right click in L1 and L2 buttons to set speed for each, try 0.5 for slow move, 100 is default which is very fast for immediate change.)

Track Templates VIP

* v1.0pre4 (2017-03-18)
  # fix: redraw issue

* v1.0pre3 (2017-03-17)
  # fix a bug in refresh button
  # fix when template track icon is not found
  # fix more CPU optimizations
  + Setting: Define templates home directory...
  + Setting: Show icons (turn on/off all icon images/screenshots)
  # show directories first
  # Remember a different zoom when aligned in one vertical column (window vertical size > horizontal size)

* v1.0pre2 (2017-03-16)
  + Track Icons inside template file support. It still uses sidecar png in template folder if found.
  + Setting: Show files from all subdirectories
  + Setting: Hide subdirectories
  # some small optimizations