APS Excellence in Physics Education Award
November 2019

Education Prize Logo
Science SPORE Prize
November 2011

NSF Logo
The Open Source Physics Project is supported by NSF DUE-0442581.

Microphone Sound Analyzer JS Model Documents

This material has 2 associated documents. Select a document title to view a document's information.

Main Document

Microphone Sound Analyzer JS Model 

written by Wolfgang Christian

The Microphone Sound Analyzer JavaScript Model records the sound from a computer or mobile device microphone and displays its amplitude and frequency spectrum.  Users can vary the recording length by selecting the number of data points. The number of points must, however, be a power of 2 in order to utilize the audio processor's Fast Fourier Transform (FFT) to compute the sound's frequency spectrum.  Because the domain of the computed frequency spectrum is usually too large for audio signals between 20 Hz to 20 kHz, users can set the minimum and maximum values on the graph to display only the range of interest.

The Microphone Sound Analyzer is designed for classroom demonstration and student experimentation. It was developed using the Easy JavaScript Simulations (EjS) version 5.3 and is distributed as a ready-to-run html page and requires only a browser with JavaScript support. This model runs on all platforms, including mobile devices, that support the W3C Media Devices API.

https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices

Last Modified December 9, 2019

This file has previous versions.

Source Code Documents

Microphone Sound Analyzer Source Code 

This source code zip archive contains an XML representation of the Microphone Sound Analyzer JS Model.   Unzip this archive in your Ejs workspace to compile and run this model using EJS 5 or above.  Although EJS is a Java program, EJS will create a stand alone JavaScript program that can run on all devices from this source code.

Last Modified December 9, 2019

This file has previous versions.

OSP Projects:
Open Source Physics - EJS Modeling
Tracker
Physlet Physics
Physlet Quantum Physics
STP Book