This is a minimalistic example using WebAudio. The audio source is linked to a low pass filter.

The code (and especially shared.js which is an exact copy) is heavily inspired by webaudioapi.com, and the music sample comes from this website too.