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

EZAudioFFT frequency output to label #47

Open
jjjjjjjjjjjh opened this issue Apr 20, 2014 · 1 comment
Open

EZAudioFFT frequency output to label #47

jjjjjjjjjjjh opened this issue Apr 20, 2014 · 1 comment

Comments

@jjjjjjjjjjjh
Copy link

First off, love EZAudio I am having tons of fun using it.

Question - I am a little rusty on FFT, so sorry if this is super obvious. Is there a clean way to take the audio graph data (say from the EZAudioFFTExample) and output it to as text to a label?

@JeanRintoul
Copy link

You can calculate the frequency binsize with: float binspacing = (float)(44100)/(float)nOver2; Then, in the FFT example, as it loops to calculate amplitude you can also gather frequencies[i] = i*binspacing; I do not know about the way to display using the OpenGL library they use here(but that would also be nice), but this is the other axis information you need to plot it(i.e. coreplot has some easy plotting implementations and that has worked for me before for plotting detailed labelled axes).

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