Associate a variable for the amplitude of a sinusoidal source

Hello everyone.

I have the following doubt, I need to create a sinusoidal source with values ​​of variable amplitude and frequency, and these values ​​should be calculated throughout the simulation. Is it possible to associate the amplitude of a source with a variable that I use in block C ?.

Thank you very much for your attention.