Can I get a instrument volume on the track

Hi, I want to get a instrument volume value on the track of a event. to trigger a behaviour on unity. I can get the start and stop time of a programmer instrument. but i want have more information.
Thanks in advance.

One way would be to use a sidechain that modulates a parameter, then in code you could query the final value of the parameter to get the level you want.

Another way would be to dig into the Core API, and get the DSP metering info.