Education Prize Logo
Science SPORE Prize
November 2011

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

Sound Waveforms JS Model Documents

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

Main Document

Sound Waveforms JS Model 

written by Wolfgang Christian

The Sound Waveforms JavaScript Model explores the aural texture of four basic periodic waveforms: sine, triangle, square, and sawtooth. The sine waveform has a single frequency and is the building block of other periodic waves by summing harmonics in a Fourier Series. The richness of the sound is called the timbre and is determined by the amplitude of the harmonics in the Fourier sum.  

The One-Dimensional Wave Function Superposition JavaScript Model was developed using the Easy Java Simulations (EJS) version 5.  It is distributed as a ready-to-run html page and requires only a browser with JavaScript support.

Published February 25, 2016
Last Modified February 27, 2016

Source Code Documents

Sound Waveforms Source Code 

This source code zip archive contains an XML representation of the Sound Waveforms JavaScript Model.   Unzip this archive in your Easy Java/JavaScript Simulations workspace to compile and run this model using EJS 5.2 or above.  Although EJS is a Java program, EjsS 5.2 creates a stand alone JavaScript program from this source code if the programming language is set to JavaScript.

Last Modified February 27, 2016

The OSP Network:
Open Source Physics - Tracker - EJS Modeling
Physlet Physics
Physlet Quantum Physics