This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Measurement of the resonance curve (Acoustics)
#61
A simple fix apparently is 1 –> 2 in
Code:
        <if less="true" equal="true" greater="false">
            <input as="a" clear="false">run</input>
            <input as="b" type="value">2</input>
            <input as="true" clear="false">fft2500</input>
            <input as="false" clear="false">FFTaverage</input>
            <output as="result">FFTaverage</output>
        </if>

However, the number of runs is off by two then. I am a bit unsure how to properly fix it as the analysis block is run like

  1. on initialisation, before tapping play,
  2. after tapping play, without audio data,
  3. and higher: “regular” runs are starting
Reply
#62
The “cycle” attribute looks like a quick fix. A proper solution would be checking the buffer length if there is sufficient data for a first run…
Reply
#63
Dear Jens,
I just have found this problem. A new version has to be published where this bag is corrected.
Reply
#64
Hi,
I have added the following before the block shown by Jens and it works:

<!-- 2023 -->
<count>
            <input as="buffer" clear="false">fft2500</input>
            <output as="count">count</output>
</count>
        <if less="true" equal="true" greater="false">
            <input as="a" clear="false">count</input>
            <input as="b" type="value">0</input>
            <input as="true" type="value">0</input>
            <input as="false" clear="false">run</input>
            <output as="result">run</output>
        </if>
So run remains zero until appearance of fft2500...

Example is a tube of 23 cm length with open ends.

Best
Mikhail


Attached Files Thumbnail(s)
   

.phyphox   resonance_white_FFT2500c.phyphox (Size: 5.4 KB / Downloads: 24)
Reply
#65
Hm… I still obtain “Runs 1” before I tap play, both on Android and iOS. Is this on purpose?
Reply
#66
I am also surprised where it comes from...
Reply


Forum Jump: