View Single Post
Old Jan 28, 2013, 12:01 AM   #1
ste2425
2000 Posts
 
ste2425's Avatar
 
Join Date: May 2008
Location: Blackpool, uk
Posts: 2,775 (1.52/day)
Thanks: 780
Thanked 282 Times in 237 Posts

System Specs

creating a graph in c++

hi all

Basically im implementing FFTW 3.3.3 on a block of audio samples that is updated at a predefined interval and ive got it running what i think is quite well. im inputting a real number samples through the Steinberg VST SDK and FFTW is outputting a complex number, what i want to do now is plot the output and have the plot refresh with the new output as i feed it with the new input so i can fine tune it and see visually if its detecting the various test frequencies i feed it so i can decide on the best trade of between performance and resolution. However i have no idea how to do what ive come to see as such a trivial thing as plot one number against the other. It doesn't need to be visually amazing or huge amounts of functionality just plot one number against the other, when im sure my FFT is working the plot wont be used, its just for testing.

I understand the complex number is an array of the real (out[i][0]) and imaginary (out[i][1]) numbers however im not too sure how i get the frequency and amplitude from that data to actually plot. Ive read i have to convert it to a real number but then that would leave me with a single array of data like the input :/

Hope all this makes sense thanks in advance for any help
__________________
Womack & Womack : Duran Duran : The Specials : Madness : Lionel Richie : Indeep : Michael Jackson : Taylor Dayne : Frank Sinatra : The Gap Band : Wild Cherry : Fleetwood Mack : Blondie : Bee Gees : Wham : Snap : MC Hammer : Bill Withers : Louis Armstrong : Percy Mayfield : Ray Charles : Ben E. King : Bob Marley : The Temptations : The Marvelettes : Elvis Presley : Chic : Sister Sledge : The Clash : The Ramones : The Sex Pistols

Where's all the talent gone?
ste2425 is offline  
Reply With Quote