I would like to have a snapshot instrument active whenever a certain event is playing. Problem is, the event only contains one track, an asynchronous instrument (a programmer instrument, if you think it matters). So, even if, in studio, I use a snapshot instrument and align it with the other instrument perfectly, obviously the snapshot instrument will only take into account the playback position of the whole event, and not that of the async sound being played, resulting in ending the snapshot effects too soon or too late.
I know I could activate and deactivate the snapshot via script, depending on the playback state of the event in question, but I was wondering if there was any way to achieve this in Studio.
Instead of placing the snapshot instrument on the event’s timeline, add a parameter to the event and place the snapshot instrument at the high end of the parameter.
Add a sidechain to the track that contains the programmer instrument.
Add a sidechain modulator to the parameter value.
Right-click on the sidechain modulator, and set its sidechain input to the track that contains programer instrument.
Set the modulator’s “Amount” property to 100%, and its threshold properties to -59 dB.
You never need to set the value of the new parameter. Instead, when you play the event, its playback position immediately sets itself to the maximum value, triggering the snapshot. The parameter playback position then stays at that value until the audio track’s output falls below -59 dB, at which point the parameter playback position returns to its initial value, untriggering the snaphot and allowing the event to stop.