{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Oscillations and sound\n", "\n", "### Experiments" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The oscillations of a body can generate sound waves in air. This is the case of musical instruments, but is also the case of other objects, as we can see in the following experiment." ] }, { "cell_type": "code", "execution_count": 1, "metadata": { "scrolled": true }, "outputs": [ { "data": { "text/html": [ "" ], "text/plain": [ "" ] }, "execution_count": 1, "metadata": {}, "output_type": "execute_result" } ], "source": [ "from IPython.display import Video\n", "Video('./video/KostaBoda.mp4', width = 600)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The sound produced depends on the characteristics of the body, which behaves as the source of mechanical waves.\n", "\n", " " ] }, { "cell_type": "code", "execution_count": 14, "metadata": {}, "outputs": [ { "data": { "text/html": [ "" ], "text/plain": [ "" ] }, "execution_count": 14, "metadata": {}, "output_type": "execute_result" } ], "source": [ "from IPython.display import Video\n", "Video('./video/Kristall.mp4', width = 600)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Analysis\n", "\n", "Now we can analyze the sound. To this aim we can use the Audacity app.\n", "\n", "\n", "\"audacity_logo\" \n", "\n", "\n", "We can import the file and look at the signal that has been recorded. The audio wave forces the membrane of the microphone to vibrate. The microphone acts as a **transducer**, generating a time dependent voltage that is proportional to the displacement of the membrane.\n", "\n", "\"Plot" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Looking in greater detail, we observe a kind of complex fluctuation. \n", "\n", "For comparison, using Audacity, we show it in the figure here below, along with a pure sinusoidal function.\n", "\n", "\"FourierSpectrum\"" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "We can describe the recorded sound as a superposition of different sinusoidal functions, applying the **Fourier analyis**.\n", "\n", "\"drawing\"\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "This plots (obtained using Audacity) represents the amplitude of the sinusoidal functions at different frequencies, whose sum will better describe the given signal.\n", "\n", "We can observe that the sound has an intense component at about 823 Hz, and other components at 342 Hz, and 1440 Hz, respectively." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### A surprising effect\n", "\n", "#### Resonance \n", "\n", "Now we can use te Audacity App to generate a continuous wave at 823 Hz, and play this sound close to the object that we have considered above. Suppose that we play the sound for 3 seconds\n", "\n", "* When the sound at 823 Hz is turned off **we can still ear a weak sound at the same pitch, coming from the object**\n", " * What is going on?\n", " \n", " > We have put the object in oscillation. The sound wave makes the object vibrate at this particular frequency, that is a frequency at which that body **can** oscillate. Once the body oscillates, it can itself generate a sound wave at that frequency, since it can transfer its motion to the air molecules near to its walls." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ " \n", "\n", "### Copyright and License\n", "--------------------------\n", "(c) 2022 Andrea Mandanici, Giuseppe Mandaglio, Giovanni Pirrotta, Valeria Conti Nibali, Giacomo Fiumara. All content is under Creative Common Attribution CC BY 4.0 \n", " and all code is under [BSD 3-Clause License](https://opensource.org/licenses/BSD-3-Clause)." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.4" } }, "nbformat": 4, "nbformat_minor": 2 }