Re: Flowstone Guru Blog
Posted: Tue Nov 25, 2014 3:56 pm
Very cool tulamide. I have a few projects that might benefit from these classes. They always seemed a little mysterious to me, but now I think I finally understand what they are.
DSP Robotics and FlowStone Graphical Programming Software Support and Forums
https://dsprobotics.com/support/
Awesome, KG! Martin also already tried to make all those things more understandable. I hope you both keep doing this for dummies like me.KG_is_back wrote:OK, nix requested "filters for imbeciles", so here it is Digital filters: the basic logic behind…
The article is an introduction to filters and explains with very simple to understand example, how they work.
I don't know how others see it, but for me it means a lot. You can't imagine how thankful I would be for such a dictionary, especially if it's explaining the terms rather than describing them. You would be my hero (but not for longer than a month, I don't want you to get cockyKG_is_back wrote:How about making a dictionary?! ... I had this idea for a quite some time. Some therms mean several different things depending on a context and usually have several synonyms, which are used depending on a context.
OK, Exo and I have set up aresourcepage at FS guru where links to different useful pages will be added. Guys, feel free to add suggestions...tulamide wrote: I don't know how others see it, but for me it means a lot. You can't imagine how thankful I would be for such a dictionary, especially if it's explaining the terms rather than describing them. You would be my hero (but not for longer than a month, I don't want you to get cocky)!
Well, actually all filters do introduce delay, and all filters use more than one sample. So your intuition is quite right on that part. However, filters do not exactly detect frequencies, they sort of attenuate signal components without ever knowing their exact frequencies. Think of a sieve that will hold back large grains without actually detecting each grain's size.tulamide wrote:(...)Let me give you an example of my problem. From my understanding I can't detect a frequency without the factor time. A sine wave that cycles every half second has a twice as high frequency than a sine cycling every second. As a non-filter-guy my logic tells me to feed an array with incoming values of the sine wave, and as soon as the first value I recorded appears for the third time, a new cycle begins. So I can now calculate the frequency from the number of samples stored in the array. Let's assume 100 Hz. I want my filter to cut everything above 60 Hz, so I just don't send the array out. Fine.
1) This worst of all filters would introduce a noticable delay (for very low subbasses at 36 Hz for example it's almost 3 hundreds of a second). But there is no delay in real filters. How do they detect a frequency from just one sample?
The math term for this feature is linearity, meaning basically that when you filter a bunch of tones (signal components with distinct frequencies) as a whole, you'd get the same result if you do them one by one and recombine them afterwords. Every signal can be decomposed into a set of (sometimes very many) sine waves, and that is a linear operation. A filter doesn't necessarily perform this decomposition, it acts on the signal right away. But the result is as if it did attenuate each individual component separately and then put it all together again.tulamide wrote: 2) This worst of all filters would only work with sine waves. Additionly, it would only work if there's just one wave at a time. How do real filters detect a frequency even with 3 or 4 different waveforms overlaying themselves, again from just one sample?
That kind of filter is sometimes referred to as a brick-wall filter. It is not feasible in a strict sense in practice, however you can get close. In your scenario the filter daemon would not throw away frequencies above 60 Hz but only attenuate those components.tulamide wrote: 3) This worst of all filters just cuts off everything at a certain point. But how would I introduce some kind of fade, where the frequency above the cutoff point will be dampened more and more the higher it is?
I'm sure there is some easy reading stuff out there. Wikipedia is often a good start. Apart from KG's articles, that is.tulamide wrote: 4) When looking for filters there always are terms involved like magnitude, real, phase, etc. But nobody explains those in an understandable way. Where do they come from, what is their task, why are they needed, etc.?