<phyphox version="1.5" locale="en">
  <title>Audio Amplitude 2</title>
  <category>Acoustics</category>
  <icon format="base64">iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAN1wAADdcBQiibeAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAABASSURBVHic7d19sF1VecfxtcNLIi8hgFSBSIhgxqngVAQFxcIMoijaKSC+4GDDFAXUgmR0RhFapB11QEWqBSwWHJ1aVFCJIFhRglZArHVGKzUkM0iJgRCBkCYhCbn32z9W0rnennv275yz1n72Xuf5/Jm5Z6/neU7OOftlrWeF4JxzzjnnnHPOOeecc84555xzzjnnnHPOOeecc84555xzzjnnnHPOOeecc84555xzzjnnnHPOOeecc84555xzzjnn2qWyDsA1C5gTQlhqHYeBd1ZVtXbQF+2cIxLXajuHEE60DsLAnGFeNCt1FM6VxD8gzvXhHxDn+vBrkPHzTAjh9dZBGHjcOgDnnHPOORdCGOFBIbBTCGFRCOHA7f+0KoSwoqqqiRSBuXyAPUIIh4UQ9gghbAshLK+q6lHbqAoAVMAbgJuATfx/G4EbgddZx+r+ELAH8F7gp8BEj/duFXAF8CLrWDsJOAL4SY/CzuQu4HDruF0IwFnAavF92wp8DtjLOu7OAM4Htgzw4djhGeAc6/jHFTAX+MYQ7xvASuAI6xxaD/jbIQs81VWAT4xs0PYPx30jvm8bgZOsc2kt4LJRPxlTfMo6n3FBvN4Y5HS4ny3ACdY5tQ5wcaICT3W2dV6lA+YAdyd+354EFlnn1hrEO1WTiYsM8QLweOv8SgZcneF9A1gO7G2dnzlgf2BNpiIDPAEcWB+JGxRwWsb3DeB2xvlaEpgF/GCAgj0MfAT4KPE+umocV7RlBSwgngqp7gLeR/zFGeQO5V9a52oGuGCAQt0C7DnltfOA2wZ4/RmWuZYG+KFY90nggmmvfRnwiPj6pxjHMwDgecA6sUhLgV17HGMX4FbxGGuB/SxyLQ3wNrHmk8B7Zz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ZwBzgavQLwB/R0s2CB13wOHECYuqH2G4c1WnETuTXE7v1YjbiO1Nz8OnkLQOcCLwL/Q+Zd4AfI0h7lR1e4upjIibf744hLBzCGF9COE/q6raZBuVq0N80LcohDB/+z/9LoTwYFVVE3ZROeecc84555zGL9LHDLAghDBwk4qO21RV1VAPBf0DMmaAY0MIP7aOo2FPVlU1VFfL8Z377pzAPyDO9eEfEOf6GKrlpuu034YQxm0bBp8B4ZxzzjnnnHPOOeecc84555xzzjnnnHPOOeecc84555xzzjnnnHPOOeecc84555xzzjnnnHPOOeecc84555xzrlv+F8Vv8rVHE3oWAAAAAElFTkSuQmCC</icon>
  <color>blue</color>
  <description>
        Get the amplitude of sounds.

        This experiments simply records short intervals from the microphone and calculates the sound pressure level (SPL). Note that this calculation is a very naive approach and the results may be rather imprecise. Also, you will have to give a reference to calibrate the measurement.
    </description>
  <link label="Wiki">http://phyphox.org/wiki/index.php?title=Experiment:_Audio_Amplitude</link>
  <translations>
    <translation locale="de">
      <title>Audio Amplitude 2</title>
      <category>Akustik</category>
      <description>
        Ermittelt die Amplitude von Audio-Signalen.

                Dieses Experiment nimmt kurze Intervalle über das Mikrofon auf und berechnet den Schalldruckpegel (SPL). Beachte, dass diese Berechnung sehr simpel ist und die Ergebnisse recht ungenau sind. Außerdem musst du ein Referenzgeräusch erzeugen, um eine Kalibration durchzuführen.
    </description>
      <string original="NOT calibrated">NICHT kalibriert</string>
      <string original="calibrated">kalibriert</string>
      <string original="Sound pressure level">Schalldruckpegel</string>
      <string original="Intensity">Intensität</string>
      <string original="History">Verlauf</string>
      <string original="Clear history">Verlauf löschen</string>
      <string original="Calibration">Kalibration</string>
      <string original="Reference SPL">Referenz-Pegel</string>
      <string original="Calibrate">Kalibrieren</string>
      <string original="Calibration offset">Kalibrations-Offset</string>
      <string original="Custom offset">Eigener Offset</string>
      <string original="Set offset">Offset setzen</string>
      <string original="Time (s)">Zeit (s)</string>
      <string original="Please see the calibration tab to get proper results.">Sieh dir bitte die Seite 'Kalibration' an, um vernünftige Ergebnisse zu erhalten.</string>
      <string original="This experiment uses a rather naive approach to determine the sound pressure level (SPL). You will need a reference sound with a known amplitude in dB. For example, you could setup a constant noise source and measure its sound pressure level with an external device. Enter the measured level as the reference SPL and push 'calibrate' while the experiment is running.">Dieses Experiment nutzt eine recht simple Methode um den Schalldruckpegel zu bestimmen. Du musst ein Referenz-Geräusch mit bekannter Amplitude in dB erzeugen. Beispielsweise könntest du eine konstante Geräuschquelle benutzen und den Schalldruckpegel mit einem externen Gerät in gleichem Abstand messen. Den Pegel kannst du dann als Referenz eingeben und bei laufendem Experiment auf 'Kalibrieren' drücken.</string>
      <string original="If you have done this before or on an identical device you may just enter the calibration offset from your previous calibration directly and press 'set offset'.">Wenn du dieses oder ein identisches Smartphone schon vorher kalibriert hast, kannst du auch einfach den Offset der vorherigen Kalibration unten eingeben und auf 'Offset setzen' drücken.</string>
      <string original="How accurate are these results?">Wie genau sind die Ergebnisse?</string>
      <string original="For teaching and exploring? Probably good enough. For serious studies? Probably not, but other apps might perform better (see below). For scientific or health-related applications? Certainly not, get a dedicated device for this.">Für den Unterricht und einfaches Ausprobieren? Wahrscheinlich gut genug. Für ernstere Studien? Wahrscheinlich nicht so gut, aber andere Apps könnten besser sein (siehe unten). Für Wissenschaft oder Arbeitsschutz? Sicherlich nicht gut genug, dafür braucht man spezielle Geräte.</string>
      <string original="Why isn't this already calibrated?">Warum ist das Experiment nicht schon kalibriert?</string>
      <string original="phyphox is available on more than 10000 devices. Most of them have different microphones, different electronics and different software - all affecting their response to sound. We cannot calibrate them all, but in some cases there are apps which only target a limited number of devices (like apps specific to iPhones) which can calibrate these few devices. If you are interested in better results without calibration, you should check out specific apps for your device.">phyphox ist auf mehr als 10000 Geräten verfügbar. Die meisten haben verschiedene Mikrofone, verschiedene Elektronik und verschiedene Software - das alles beeinflusst die Messung. Wir können diese Geräte nicht alle kalibrieren, aber manche Apps bedienen eine kleinere Geräte-Auswahl (beispielsweise iPhone-Apps) und können diese Auswahl auch kalibrieren. Wenn du Interesse an genaueren Messungen hast, solltest du solche spezielleren Apps ausprobieren.</string>
      <string original="Why can't we get a better calibration?">Warum ist keine genauere Kalibration möglich?</string>
      <string original="We wanted a simple procedure to allow students to get comparable data across different devices. With decent equipment you could calibrate the frequency dependency of your microphone as well and maybe even compensate for non-linear responses. If you have such equipment and want to try it, please let us know - we already have phyphox-experiments that allow for more advanced calibration techniques.">Wir wollen eine einfache Kalibration für Schülerinnen und Schüler sowie Studierende anbieten, so dass vergleichbare Daten für verschiedene Geräte möglich sind. Mit guten Messgeräten könnte man auch den Frequenzgang des Mikrofons und vielleicht sogar nicht-lineares Verhalten kompensieren. Wenn du über solche Geräte verfügst und es ausprobieren möchtest, lass es uns wissen - wir haben bereits phyphox-Experimente, die komplexere Kalibrationstechniken ermöglichen.</string>
      <string original="Time">Zeit</string>
    </translation>
    <translation locale="fr">
      <title>Intensité sonore 2</title>
      <category>Acoustique</category>
      <description>
        Mesure l'intensité d'un son.

        Cette expérience utilise le micro pour à enregistrer le bruit sur de courts intervalles, puis calcule la pression acoustique correspondante (SPL en anglais). Notez que ce calcul est une approche très naïve et que les résultats sont plutôt imprécis. De plus, vous devrez donner une référence pour étalonner la mesure.
    </description>
      <string original="Amplitude">Intensité</string>
      <string original="Status">État</string>
      <string original="NOT calibrated">NON étalonné</string>
      <string original="calibrated">étalonné</string>
      <string original="Sound pressure level">Pression acoustique (SPL)</string>
      <string original="Intensity">Intensité</string>
      <string original="History">Historique</string>
      <string original="Time">Durée</string>
      <string original="Clear history">Vider l'historique</string>
      <string original="Please see the calibration tab to get proper results.">Allez sur l'onglet calibration pour avoir des résultats plus corrects.</string>
      <string original="Calibration">Étalonnage</string>
      <string original="This experiment uses a rather naive approach to determine the sound pressure level (SPL). You will need a reference sound with a known amplitude in dB. For example, you could setup a constant noise source and measure its sound pressure level with an external device. Enter the measured level as the reference SPL and push 'calibrate' while the experiment is running.">Cette expérience utilise une approche plutôt naïve pour déterminer la pression acoustique. Pour étalonner la mesure, vous aurez besoin d'un son de référence, avec son intensité connue en dB. Par exemple, vous pouvez configurer une source de bruit constante et mesurer sa pression acoustique à l'aide d'un sonomètre externe. Entrez l'intensité mesurée comme référence, et appuyer sur 'étalonner' pendant que l'expérience est en cours.</string>
      <string original="Reference SPL">Intensité de référence</string>
      <string original="Calibrate">Étalonner</string>
      <string original="Calibration offset">Offset de l'étalonnage</string>
      <string original="If you have done this before or on an identical device you may just enter the calibration offset from your previous calibration directly and press 'set offset'.">Si vous avez déjà effectué cette opération auparavant sur cet appareil ou un appareil identique, vous pouvez saisir directement le décalage de votre étalonnage précédent et appuyer sur 'enregistrer le décalage'.</string>
      <string original="Custom offset">Décalage adéquat</string>
      <string original="Set offset">enregistrer le décalage</string>
      <string original="How accurate are these results?">Quelle est la précision de ces mesures ?</string>
      <string original="For teaching and exploring? Probably good enough. For serious studies? Probably not, but other apps might perform better (see below). For scientific or health-related applications? Certainly not, get a dedicated device for this.">Dans le but d’enseigner ou d’explorer ? Sans doute suffisamment bonne. Dans le but de faire des études sérieuses ? Probablement insuffisante, mais d'autres applications pourraient être plus performantes (voir ci-dessous). Pour des applications scientifiques ou liées à la santé ? Sans aucun doute insuffisante, utilisez plutôt un appareil adapté.</string>
      <string original="Why isn't this already calibrated?">Pourquoi l'étalonnage n'est-il pas déjà effectué ?</string>
      <string original="phyphox is available on more than 10000 devices. Most of them have different microphones, different electronics and different software - all affecting their response to sound. We cannot calibrate them all, but in some cases there are apps which only target a limited number of devices (like apps specific to iPhones) which can calibrate these few devices. If you are interested in better results without calibration, you should check out specific apps for your device.">phyphox est disponible sur plus de 10000 appareils. Ces appareils ont des micros différents, des composants électroniques différents, et des logiciels différents, tout ceci affectant la mesure du son. Nous ne pouvons pas tous les étalonner ; mais certaines applications ne ciblent qu'un nombre limité d'appareils (comme les applications spécifiques aux iPhones) et peuvent connaître l’étalonnage de ces appareils. Si vous voulez de bons résultats sans étalonnage, vous devriez regarder s’il existe des applications spécifiques à votre appareil.</string>
      <string original="Why can't we get a better calibration?">Pourquoi n'est-il pas possible de faire un meilleur étalonnage ?</string>
      <string original="We wanted a simple procedure to allow students to get comparable data across different devices. With decent equipment you could calibrate the frequency dependency of your microphone as well and maybe even compensate for non-linear responses. If you have such equipment and want to try it, please let us know - we already have phyphox-experiments that allow for more advanced calibration techniques.">Nous voulions une procédure simple pour permettre aux étudiants d'obtenir des résultats comparables sur différents appareils. Avec un équipement adéquat, vous pourriez également étalonner la dépendance en fréquence de votre microphone et peut-être même compenser les réponses non linéaires. Si vous avez un tel équipement et que vous voulez faire l’essai, veuillez nous le faire savoir : nous avons en réserve des expériences qui permettent des techniques d'étalonnage plus avancées.</string>
    </translation>
  </translations>
  <data-containers>
    <container size="4800">recording</container>
    <container size="4800">recordingSquared</container>
    <container>sum</container>
    <container>mean</container>
    <container>dbUncal</container>
    <container>lnMean</container>
    <container>userCalibration</container>
    <container static="true">ln10</container>
    <container size="0">time</container>
    <container>now</container>
    <container init="0">t0</container>
    <container init="0">resetTime</container>
    <container size="0">intensity</container>
    <container size="0">dB</container>
    <container init="0">calibration</container>
    <container init="60">target dB</container>
    <container>newCal</container>
  </data-containers>
  <input>
    <audio rate="48000">
      <output>recording</output>
    </audio>
  </input>
  <views>
    <view label="Amplitude">
      <value label="Status">
        <input>calibration</input>
        <map min="0" max="0">NOT calibrated</map>
        <map>calibrated</map>
      </value>
      <value label="Sound pressure level" unit="dB" size="3" precision="1">
        <input>dB</input>
      </value>
      <separator height="1"/>
      <graph label="Intensity" labelX="Time" unitX="s" labelY="Intensity" unitY="a.u.">
        <input axis="x">time</input>
        <input axis="y">intensity</input>
      </graph>
      <separator height="1"/>
      <graph label="History" labelX="Time" unitX="s" labelY="SPL" unitY="dB">
        <input axis="x">time</input>
        <input axis="y">dB</input>
      </graph>
      <button label="Clear history">
        <input type="empty"/>
        <output>intensity</output>
        <input type="empty"/>
        <output>dB</output>
        <input type="empty"/>
        <output>time</output>
        <input type="value">1</input>
        <output>resetTime</output>
      </button>
      <separator height="1"/>
      <info label="Please see the calibration tab to get proper results."/>
    </view>
    <view label="Calibration">
      <info label="This experiment uses a rather naive approach to determine the sound pressure level (SPL). You will need a reference sound with a known amplitude in dB. For example, you could setup a constant noise source and measure its sound pressure level with an external device. Enter the measured level as the reference SPL and push 'calibrate' while the experiment is running."/>
      <separator height="1"/>
      <edit label="Reference SPL" unit="dB">
        <output>target dB</output>
      </edit>
      <button label="Calibrate">
        <input>newCal</input>
        <output>calibration</output>
      </button>
      <value label="Calibration offset" unit="dB">
        <input>calibration</input>
      </value>
      <separator height="1"/>
      <info label="If you have done this before or on an identical device you may just enter the calibration offset from your previous calibration directly and press 'set offset'."/>
      <separator height="1"/>
      <edit label="Custom offset" unit="dB">
        <output>userCalibration</output>
      </edit>
      <button label="Set offset">
        <input>userCalibration</input>
        <output>calibration</output>
      </button>
    </view>
    <view label="FAQ">
      <info label="How accurate are these results?"/>
      <info label="For teaching and exploring? Probably good enough. For serious studies? Probably not, but other apps might perform better (see below). For scientific or health-related applications? Certainly not, get a dedicated device for this."/>
      <separator height="1"/>
      <info label="Why isn't this already calibrated?"/>
      <info label="phyphox is available on more than 10000 devices. Most of them have different microphones, different electronics and different software - all affecting their response to sound. We cannot calibrate them all, but in some cases there are apps which only target a limited number of devices (like apps specific to iPhones) which can calibrate these few devices. If you are interested in better results without calibration, you should check out specific apps for your device."/>
      <separator height="1"/>
      <info label="Why can't we get a better calibration?"/>
      <info label="We wanted a simple procedure to allow students to get comparable data across different devices. With decent equipment you could calibrate the frequency dependency of your microphone as well and maybe even compensate for non-linear responses. If you have such equipment and want to try it, please let us know - we already have phyphox-experiments that allow for more advanced calibration techniques."/>
    </view>
  </views>
  <analysis sleep="0.1">
    <timer>
      <output clear="false">now</output>
    </timer>
    <if equal="true">
      <input clear="false">resetTime</input>
      <input type="value">1</input>
      <input clear="false">now</input>
      <output>t0</output>
    </if>
    <append>
      <input type="value">0</input>
      <output>resetTime</output>
    </append>
    <subtract>
      <input clear="false">now</input>
      <input clear="false">t0</input>
      <output clear="false">time</output>
    </subtract>
    <power>
      <input as="base" clear="false">recording</input>
      <input as="exponent" type="value">2</input>
      <output>recordingSquared</output>
    </power>
    <integrate>
      <input>recordingSquared</input>
      <output>sum</output>
    </integrate>
    <divide>
      <input>sum</input>
      <input type="value">2400</input>
      <output>mean</output>
    </divide>
    <append>
      <input clear="false">mean</input>          <!-- new mIv Oct 2021 -->
      <output clear="false">intensity</output>
    </append>
    <log>
      <input clear="false">mean</input>
      <output>lnMean</output>
    </log>
    <log>
      <input type="value">10</input>
      <output>ln10</output>
    </log>
    <divide>
      <input clear="false">lnMean</input>
      <input clear="false">ln10</input>
      <input type="value">0.1</input>
      <output>dbUncal</output>
    </divide>
    <add>
      <input clear="false">dbUncal</input>
      <input clear="false">calibration</input>
      <output clear="false">dB</output>
    </add>
    <subtract>
      <input clear="false">target dB</input>
      <input clear="false">dbUncal</input>
      <output>newCal</output>
    </subtract>
  </analysis>
  <export>
    <set name="Amplitudes">
      <data name="Time (s)">time</data>
      <data name="Intensity (a.u.)">intensity</data>
      <data name="Sound pressure level (dB)">dB</data>
    </set>
    <set name="Calibration">
      <data name="calibration offset (dB)">calibration</data>
    </set>
  </export>
</phyphox>
