Skip to content

How can I use "When target value met" to express "When target value active/inactive"? #692

@AtmanActive

Description

@AtmanActive

How can I use "When target value met" to express "When target value active/inactive"?

I have two mappings with identical source (MIDI encoder) and two different targets: one adjusts an insert FX parameter, the other one conditionally-inserts-said-FX via a Reascript. The Reascript is clever enough to check if FX is already there and not to insert the FX again.
Now, when there is no said FX on the track, the mapping number one is grayed out (it is set to Selected track, FX by name), as it should be. Mapping number two is alive and it inserts the said FX when encoder is touched, as expected. From that moment on, both mappings are active and even though my Reascript is smart and it is not adding duplicate FXs, it is still being executed on every encoder click.

Hence, I would now like to be able to deactivate the second mapping as soon as the first mapping becomes active. In other words, I would like to execute my Reascript only when there is no said FX the selected track. That's the goal.

Reading the manual up and down again and again, I noticed the new conditional activation mode called "When target value met". So I tried entering all possible permutations of y > 0, or y === 0 or !y or whatever, but I can't make it work the desired way. Yes, it does react properly to lead mapping's target value, once lead mapping is active (once said FX is inserted on the track), but it doesn't seem to follow the same logic when lead mapping's target is inactive (when there is no said FX on the track).

Hence, my question: is there a way to conditionally enable a mapping when it's lead mapping's target is inactive?

The goal of this excercise is to achieve analog-mixer-style accessiblity for Reaper. On an analog mixer, the EQ is, for example, always present and all one needs to do is to start pushing gain knob and the sound is immediately changed. In today's digital approach, one needs to click something or execute something to first insert an EQ on a track before one can use it. Yes, one could prepare the tracks with EQ inserts but that's just cumbersome and waste of CPU resources. Better approach is to have most of the tracks in plain vanilla state (no EQ insert FX) and just add said FX when needed, but also, not to waste one more click or brain cycle to remember to actually add that FX on the track, but to have it done automatically.

Thanks!

(ReaLearn v2.13.1 rev bf74f7 from 2022-07-09 14:46:06 UTC)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestrealearnRelated to ReaLearn

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions