adding audio analysis and reactivity (mostly ported from Connect)