Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about frequency settings #3

Open
mike-code opened this issue Jun 9, 2021 · 1 comment
Open

Question about frequency settings #3

mike-code opened this issue Jun 9, 2021 · 1 comment

Comments

@mike-code
Copy link

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

@BenPyton
Copy link
Owner

BenPyton commented Jun 9, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants