So this answer's my question with using the native html API: https://stackoverflow.com/a/51859377/604950
But I want to use the WAD library: https://github.com/rserota/wad#audio-meter
This is a codepen I started to try and mix the ideas together of #audio-meter and #pitch-detection . https://codepen.io/FlorianMettetal/pen/oNXjPOj?editors=0011
But you can see in the console.logging and playing some music into a microphone, that the volume is always 0 and clipping always false
Object {
clipping: false,
noteName: "G#2",
pitch: 103,
volume: 0
}
Object {
clipping: false,
noteName: "G#2",
pitch: 103,
volume: 0
}
Thanks for any help on this