Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Background hissing form analog output module
(01-24-2019, 05:36 PM)Josh Wrote: Hi Veronica,

The amplitude of the sounds you play is determined in code. Units of the sound data sent to the loadSound() method of the AudioPlayer class are volts (not normalized) so the vector [.1 .5 -1 2] will play four samples at the current sampling rate, of 100mV, 500mV, -1V and 2V respectively. Standard line-level audio signals range between -1.4 and 1.4V. Depending on your audio amplifier, you may be able to safely scale your sound data to +/-2V without saturation.

I hope this helps,


Hi Josh, 

Thank you. I can't figure out how exactly to scale the sound data. Where in the code do I specify the frequency of the sound I want to play, and then where do I scale all of the sounds I have determined? Thanks again!


Messages In This Thread
RE: Background hissing form analog output module - by veronica - 01-28-2019, 03:20 PM

Forum Jump: