I’d appreciate some feedback on how I manage state in the notebook. To me, this seems to work well and it’s easy to embed in other notebooks - but I’m not experienced with Observable and I don’t know if there’s a more idiomatic way to do it.
It’s fast and updates really well for the continuous cases.
There may be a use case for recording a set time length from the microphone (default 5 seconds) and saving the analysis as a time series. Then you can do graphs with time on the x-axis and other stuff (energy, chroma) in that time series.
I couldn’t quickly figure out how to do that.
I tried, but got an error:
I couldn’t figure out how to grab a snapshot of the view. What’s happening (I think!) is that every time the chroma is updated, it reruns the input rendering.