filoe / cscore

An advanced audio library, written in C#. Provides tons of features. From playing/recording audio to decoding/encoding audio streams/files to processing audio data in realtime (e.g. applying custom effects during playback, create visualizations,...). The possibilities are nearly unlimited.
Other
2.15k stars 451 forks source link

How would I retrieve a frequency value? #407

Open Lunathecatte opened 4 years ago

Lunathecatte commented 4 years ago

Like a single value of a live audio device. lets say a speaker? I have never worked with CSCore and hope that it indeed is very much possible with it

I am looking forward to youre replies!

Lunathecatte commented 4 years ago

so that would mean like something like an int coming out of it so i can process that easily

filoe commented 4 years ago

Frequency of what? An audio signal usually consists out of multiple signals, with different frequencies, interfering with each other. So there is usually not one "frequency". Also there is no frequency at specific point of time. You have to take a look at a certain time range.

Maybe you want to calc a fft and determine the major frequency?

Lunathecatte commented 4 years ago

Yes honestly, that is what i want. My english is just not great. Im sorry

LeonardVermeer commented 1 year ago

@filoe Is there a way to extract all of those frequencies of a song individually over the span of let's say a second? I imagine it could be something in the lines of 20Hz-60Hz @ 10 dB and 61Hz-250Hz @ 3 dB and so on for that second... Or is it possible to get the superimposed frequencies over the span of a second? Would something like that be possible with c#?