Timeline for Getting played note frequency using Unity and FFT
Current License: CC BY-SA 4.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 21, 2022 at 0:12 | comment | added | WhiteNight | thank you so much now I understand the code, take me a while :). Could you explain in more detail how to handle the harmonics? it will be perfect | |
Sep 20, 2022 at 21:40 | comment | added | Tom | To understand this interpolation, i suggest to draw a curve with a maximum somewhere, on paper. Then, mark points at fixed x-interval (if you have a good on paper just use that) on that curve, that's the FFT estimation. Your points won't necessarily fall on the true maximum, but a bit next to it probably. The question is where is the true max compared to the point one. For that, the code you give just compare the neighbors and estimate the true max from that. (Would be easier with a blackboard ;)) | |
Sep 20, 2022 at 21:35 | comment | added | Tom | No, it simply computes how big are the neighbouring bins compared to the max and shift the max toward the highest neighbor. Imagine you have a max, and it's t left neighbor is very close to that max (but not the right). Then the true maximum is between the max you found and the next bin to the left. This is just a simple way to estimate the true position of the maximum of a digitised signal. | |
Sep 20, 2022 at 21:16 | comment | added | WhiteNight | You are right :), I am having difficulty understanding the samples array that the FFT collects, I don't know what kind of manipulation/interpolation to do to get the results I desire, but I know the array contains amplitudes values for frequency ranges depends on my resolution (bin) size, for instance, an array of 1024 samples at index 0 will have an amplitude of frequency range 0-43.06 and next index will have the amplitude of the frequency 43.06 - 86.12, and so on, but I don't understand the interpolation part, is it a mathematical term? Is it integral? | |
Sep 20, 2022 at 20:54 | comment | added | Tom | @WhiteNight the subject is very broad, is there any specific part that need to be expanded or the whole? Note that this forum is focused on music practice and theory. Imo this falls into practice because that close to the way I'm doing music but I'm sure some will it as outside of the scope ;) | |
Sep 20, 2022 at 20:39 | comment | added | WhiteNight | Hi Tom, thank you for the answer it is already useful, Yes please I would be very happy if you could expand more about this subject with more details in your free time, I was searching for this a lot. including materials/resources is also welcome, thanks in advance | |
Sep 20, 2022 at 20:17 | history | answered | Tom | CC BY-SA 4.0 |