• PedroPT

    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...

    But thanks anyway @gsagostinho, @whale-av !!

    posted in technical issues read more
  • PedroPT

    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...

    posted in technical issues read more
  • PedroPT

    Oh I get it now! Makes sense!

    Any idea on how to save those values to a table?
    I can't seem to get the grasp on how Pure Data handles arrays and tables :/

    I can't use externals because I'm going to use the patch with libpd...

    Thanks again! @gsagostinho

    posted in technical issues read more
  • PedroPT

    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):
    example.png

    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!

    posted in technical issues read more
  • PedroPT

    Oh btw, as I'm using libpd, I can't (as a requirement) use any externals, so no help with tabletool, but going to check it out for future projects! :)

    posted in technical issues read more
  • PedroPT

    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 :/
    fft_hz.pd

    posted in technical issues read more
  • PedroPT

    Hey!

    I'm fairly new to Pure Data, and I'm having a hard time figuring how to extract the envelope of a signal.

    Now I'm simply outputting the signal to an array, but I really wanted was to extract the envelope and plot it.
    Anyone can help please?

    posted in technical issues read more
  • PedroPT

    Hi!

    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.)

    Thanks!

    posted in libpd / webpd read more
  • PedroPT

    Hey!

    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..

    Any ideas?
    Here goes the patch, sorry if kinda confusing:
    test.pd

    posted in libpd / webpd read more
  • PedroPT

    Hm I can't use it, as I'm using libpd and can only use vanilla objects I think..
    So that's why I must go with bonk~..

    posted in technical issues read more
  • PedroPT

    Hey!

    So, I've been working on my master thesis with Pure Data, in particular with the bonk~ object, to detect beats produced by touches on touch screens.
    The problem is that when the gesture is more complex (a slap or a punch for example) bonk~ detects 3 or more different sounds, which doesn't help me distinguish the sounds these gestures make.

    How can I modify bonk~ (maybe changing the arguments it receives) to only recognize one of these gestures (in a way, I want to reduce bonk~ sensitivity to sound).

    Thanks in advance!

    posted in technical issues read more
  • PedroPT

    @gsagostinho Hm that's becoming too complex for me! ahaha but thanks.

    I'm trying to use low and high pass filters to reduce some of the noise. However, still not getting nice results (even training bonk~ a lot I can't seem to get precise results in detecting different touches everytime)..

    posted in technical issues read more
  • PedroPT

    Hey! Thanks for answering so fast :)

    I've read about what you're saying, and tried it, but still dont get what I want.

    In the end I want to be able to get only (or for the most part) the sound that a touch on a touch screen produces, to distinguish them. Any ideias or pointers to do this?
    With a contact microphone it would be easier, but I want to rely only on the tablet built-in microphone..

    Thanks in advance!

    posted in technical issues read more
  • PedroPT

    Hey guys!

    I'm trying to use bonk~ to detect different kinds of touches on a touch screen (tap, knock, punch, etc..), but I'm having some trouble with analyzing the signal that comes from the microphone (Im doing this on an Android tablet).

    I started playing around with thresh and debounce objects to see if I could tune bonk~ to only listen to sound every 200ms or so (because no one will tap faster on the touch screen) to eliminate some of the noise and false positive results.

    Can you help me better understand threshold object and if I can use it to do what I explained?
    This microphone is really sensitive but also not very good, so I can't mess around much with the signal (filter ambient noise and voices and such is not very easy for me also :( )

    Any input is appreciated! :)

    Here is my patch: testRec.pd

    posted in technical issues read more
  • PedroPT

    I think I solved it.
    Remembered to download pd-extended and change the bonk~.dll file I had on my pd version with the one I downloaded.
    Works like a charm (the one I had was 110kb in size, this one is 36kb, maybe something happened to the one I had??! weird

    Thanks for the effort guys!! :)

    posted in technical issues read more
  • PedroPT

    I stripped the patch to only bonk~ (the part I need) and now the only warning I have is related to the font (not sure if that can be a problem).

    I'm using the Pure Data I downloaded from the website (I think it's Vanilla) because I'm going to need to use libpd, and I have the idea it only supports vanilla objects, so I dont know if it might come from that!

    Here it is, the patch I need to work with
    testRec_16.pd

    If you can take a look I'd be very grateful!

    posted in technical issues read more
  • PedroPT

    Sure, thanks for the answer.

    Here it goes.
    It also happens ith an empty file and with different names and such, tried everything now...

    templates.txt

    posted in technical issues read more
  • PedroPT

    Tried using full path, still not working.
    Im on Windows btw.

    posted in technical issues read more
  • PedroPT

    Pure Data crashes when I try to read templates from a file to bonk~.

    I know it happened before but from what I can see the error was already corrected.
    Still, with the newest version, this still happens to me.
    Writes fine, but when I click to read it crashes.

    Patch attached. Thanks in advance!
    testRec.pd

    posted in technical issues read more
Internal error.

Oops! Looks like something went wrong!