11-11-2011 07:54 AM
@NAZ87 wrote:
@COq Rouge wrote:
Here is one way to do it...I see that the Volume Control changes the waveform based on a log scale while scaling the waveform with the multiply command is a linear scale. I assume this makes a difference when using the sound card to appropriately scale audio, but doesn't have a bearing when outputing an arbitrary waveform signal. Am I accurate in this assumption?
According to the above, I should just set the Volume to max and scale from 1 to 0. Is there any reason I should scale by a log scale as the Volume Control does?
Thanks for all the help.
~Nick
As long as you do not see any clipping of the output signal. You may set the volume to max, and use the scale function I suggested. As long as the signal is OK by you it does not matter much which constant you use on the volume control. If you use a constant volume setting. You may also place the volume control outside the main loop. As it will not be needed to set the volume on each iteration, only once.
