SoundGenerator icon indicating copy to clipboard operation
SoundGenerator copied to clipboard

Question about frequency settings

Open mike-code opened this issue 4 years ago • 1 comments

Hi. I am trying to do some experiments on ultrasound frequencies but I am having trouble reaching that level based on what I can hear in my headset. I used this simple website as an example https://www.szynalski.com/tone-generator/ (which is also a white noise gen) - and I stop hearing noise around 20kHz, which is expected.

I tried to achieve similar in SoundGenenerator but despite going up to 100kHz, I still hear the noise very clearly. Could you advise whether I misunderstood the controls?

image

mike-code avatar Jun 09 '21 07:06 mike-code

Hello mike-code, There is a thing I think that is wrong in your setup: you set an amplitude of 1, 2, 3, and 4, and you add them together. I expect that to be over saturated, but this is not related to the issue you're describing.

Currently, the version 0.0.5 uses an audio format of 48 KHz, 32 bits, mono. I don't know what format uses the website you have linked, but I suppose the issue comes from here: fréquencies over 48KHz are resonating with 48KHz and produces sounds below 48KHz.

For testing you can try increasing a sinus frequency from 40 KHz to 50 KHz to vizualise this behaviour.

I am currently working on a menu to configure the format settings, so in the 0.0.6 you will be able to set a format greater than 100 KHz to generate the sound you want.

BenPyton avatar Jun 09 '21 10:06 BenPyton