Nice work mate. The only thing that stood out to me was defining updateMap when insertWith exists and would be more efficient by avoiding the member lookup first.
Thank you! I stared at insertWith and ruled it out for some reason. Ended up resorting to updateMap which I wrote for a different blog post. I wrote this while streaming (2 hours and change). I’ll upload the video if this noise reduction filter doesn’t make the audio sound watery this time.
Update: good catch, I’ve fixed it and replaced it with insertWith