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

not at 0 without audio... #1

Open
filipdns opened this issue Oct 22, 2018 · 14 comments
Open

not at 0 without audio... #1

filipdns opened this issue Oct 22, 2018 · 14 comments

Comments

@filipdns
Copy link

Hello, I'm new on c++ and I don't found where I can remove the "noise" add if not audio playing, could you help me?...

I need only part of you project to add visualization on mine based on Qt particules. I try to understand the qt spectrometer on qt example but no comments at all in it then I don't understand anything on it lol

thanks a lot for your help.

@Venemo
Copy link
Owner

Venemo commented Oct 22, 2018

Hi. Feel free to use my code. I can try to help, but I'm not sure I understand what you want to do.

@filipdns
Copy link
Author

filipdns commented Oct 22, 2018 via email

@Venemo
Copy link
Owner

Venemo commented Oct 22, 2018

What kind of input do you use if not audio?

@filipdns
Copy link
Author

filipdns commented Oct 22, 2018 via email

@Venemo
Copy link
Owner

Venemo commented Oct 22, 2018

Sorry I still don't understand what you are doing. Please tell me exactly what you are trying to do here. Are you using audio input from a microphone? Or somewhere else?

@filipdns
Copy link
Author

filipdns commented Oct 22, 2018 via email

@filipdns
Copy link
Author

I think the easiest way is to show you what I mean with example.
From your project, I remove the lines drawing old values and change the size and number of drawImage.
You will see even no sound, values are changing, qDebug of amplitude confirm that.

Thank you for your help again

https://www.dropbox.com/s/pcefcgibynngxf8/frequency-analyzer_test.zip?dl=0

@Venemo
Copy link
Owner

Venemo commented Oct 27, 2018

Hi. I took a look at your project, ran the app.

You will see even no sound, values are changing, qDebug of amplitude confirm that.

This is simply not true. If I disable my sound input, I will get completely flat lines.

@filipdns
Copy link
Author

filipdns commented Oct 27, 2018

Hello, that strange, it's not the case on my side...

I try on 2 computeurs and switch all input off and the line is never flat...

I don't understand why then...
sound

@Venemo
Copy link
Owner

Venemo commented Oct 27, 2018

This is how it looks for me:

With input turned off.

On your screenshot you are not actually turning off your microphone, you just turned your speakers down.

@filipdns
Copy link
Author

hello again, I'm very sorry to disturb you so much, but I think first about that but my mic is desactivated

sound

@Venemo
Copy link
Owner

Venemo commented Oct 27, 2018

Well... I haven't used Windows for a while, so not sure how it behaves when you do that. All I can say is I disabled the microphone on my system and I got the screenshot that I showed you earlier.

@filipdns
Copy link
Author

filipdns commented Nov 9, 2018

Hello,
Small question, about this project.
Do you know how can I have one bar for each specified frequencies (from own list) from the small test I sent to you ?...
I tried to understand fftreal about without success until now...
thank you very much for your help

@Venemo
Copy link
Owner

Venemo commented Nov 16, 2018

Do you know how can I have one bar for each specified frequencies (from own list) from the small test I sent to you ?...

I would suggest to read up on the theory behind the Fourier transform and especially the discrete Fourier transform. It has been some time since I had that course so I couldn't give you an in-depth answer, but speaking of my original code: basically each item in the array corresponds to the amplitude at a given frequency. This amplitude is then visualized by color. I have no idea how your "bars" work in your version so cannot give you a definitive answer on that.

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