I would like to control the gain of one source via another one to create gain automation on source 2 based on the negated envelope of source one.
Here's my logic:
playerOne.connect(follower)
follower.connect(signal)
signal.connect(negate)
negate.connect(gainTwo.gain)
where gainTwo is a gain node connected to playerTwo. Here is a codepen example: https://codepen.io/adam_fr/pen/BazVEwe
The expected outcome is that the gainTwo.gain gets ducked every time playerOne is triggered, however what I get is the opposite, the second source plays only when the first source is playing.