piano + visualization
i am working on a project that is to play a music by my piano and showing visualization for the music frequency in a window program , i was guided to work with direct show using C# which is easier than the unmanaged Code , i connected my piano to the line-in in my computer and tried to work alittle with the input music , but i am finding some troubles to get the signal from the music . :( i searched Code Project and google but there was nothing that could help me , can anybody help me with this ??? and is there a sample i can use ???
best regards
Show visualization for music frequency in a program...in real time? You mean like a spectral analyzer? What's this for? There a quite a few on the market already...some free.
But your problem is why your soundcard isn't recieving signal? Or why the prog you're writing isn't recieving signal?
But your problem is why your soundcard isn't recieving signal? Or why the prog you're writing isn't recieving signal?
Quote: Original post by anthemaudio
Show visualization for music frequency in a program...in real time? You mean like a spectral analyzer? What's this for? There a quite a few on the market already...some free.
yes i want to show the visualization in real time and yes like spectral analyzer , this is a project i need to do for a musical band so i can't use any existing software because i need to make my own visualization according to what the band wants.
Quote:
But your problem is why your soundcard isn't recieving signal? Or why the prog you're writing isn't recieving signal?
my computer is taking the signal from the line in but what i need is how to catch this signal in every frame in my program and test it's strength to apply my visualization to it
thanks alot man for your reply
Quote: Original post by Kylotan
I believe DirectSound has sound capture capabilities.
ya it has sound capture but how to catch the amplitude of the signal in every frame ???
I can't give you a specific answer since I am not familiar with DirectSound's capture capabilities. You would read in the sample into a 16-bit buffer. Each value will range from -32768 to 32767, and then look at the highest (both negative and positive) values over a period of time to get the amplitude. It's a bit more complex than that, but there's the general idea. As for frequencies, you may need to use a Fast Fourier Transform to get frequencies from the sample data.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement