Playing around with sound in javascript.
Run this code in a test server to play with sound.
This code displays a simple system to produce a Oscilloscope to show various sound wave types. Sine, Square, Triangle, sawtooth. frequency from 40 Hz to 20K Hz Volume from 0 to full controled via sliders and drop downs. index.html is a simple sine wave sound.html has better controls and more wave types scrollwheelsound.html has partial mouse wheel event trigger.... to control frequency.
@ToDo add keybord control to make notes play - Got this working See it live at https://geekzonebooks.com/midisynthscope
etc.... build this out into a synth and create midi files with it.