Public
Edited
Feb 13, 2018
Fork of Sounds
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Play((t) => Math.sin(sineFrequency * t * 2 * Math.PI)) // Play a sine wave at `sineFrequency` Hz.
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Play((t) => (2 * sawtoothFrequency * t) % 2 - 1) // Play a sawtooth wave at `sawtoothFrequency` Hz.
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Play((t) => (squareFrequency * t * 2) % 2 - 1 > 0 ? 1 : -1) // Play a square wave at `squareFrequency` Hz.
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Play((t) => Math.abs((2 * triangleFrequency * t) % 2 - 1) - 0.25 * 2) // Play a triangle wave at `triangleFrequency` Hz.
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more