I want to send the values of the signal (as I'm doing now, but now I only have the FFT results, with frequencies distribution) to libpd and present them on an Android tablet.
So far this I have right, but I wanted to send the envelope instead of the FFT values...
Hm thanks again @gsagostinho! got it working but I don't think this is what I need.
As I showed on the image, I want to do the envelope of a signal after I used FFT on it (now I have an array that tells me for each moment in time what are the frequencies that compose the signal).
And this is right, as I tested it already.
Now I just wanted to use those values and envelope them...
Yeah, I know that, but when I try to use [env~] on my values and try to plot them, I only get one value (which makes sense, since it only outputts one value).
What I want is something like this in the second plot (sorry for the bad drawing):
I want to plot and be able to save the envelope of the signal like this.
Maybe Im confusing envelope with something else.....
Any help is appreciated, thanks guys!
Thanks for the reply!
I tried using that, but unfortunately what I get is not what I need.
I'm using this patch, that computes a Fourier Transform so I can analyze the frequencies of an incoming signal (the sound received on the microphone to be exact), but I want the envelope of the signal, not the signal itself.
Here goes a part of my patch, the results seem correct, I just wanted the envelope now.
Any help will be greatly appreciated, I feel I'm missing something :/
I've been using bonk~ to detect different classes (on this case, different gestures to a touch surface, a knock vs a tap vs a nail, etc).
I now want to add some information to it, using fiddle~ to get the loudness level (dB) and pitch for example.
Now I just put them on a list and receive them on libpd, but the values dont look right.
Is there a way to guarantee that the values I retrieve from the audio signal (microphone) are synchronized? (The loudness level corresponds to the beat bonk~ detected and such.)
I've been getting some strange values from receiveList method.
My patch uses bonk~ and fiddle~ to detect hits to a touch surface, and to get information when the hit occurs.
I tried using fiddle~ to get that hit's loudness so I could calculate the hit's intensity (force applied to the surface), but the values are not what I expected.
When I hit hard, the values for loudness (in dB) and bonk~'s second output value (its "velocity") are not that high, looking like a soft hit instead of a hard blow to the surface.
I tried using the "synchronized" keyword on the receiveList method, because it could be a thread problem, but the results are the same..
Here goes the patch, sorry if kinda confusing: