RMS filter

I’m still wrapping my head around Norns and, while I was fiddling around earlier today, I needed an RMS/ standard deviation calculator, so I made myself one, adding it to the filters lib.

It’s a tiny simple thing, but it’s a useful tool in dsp, so if anybody needs it, it’s here:

if you include 'moreFilters', you’ll have all the standard norns filters + this new rms one; usage is the same as the other filters: you create a filter with a fixed window and you feed new samples:

local filters = include 'nau/lib/moreFilters'

local rms = filters.rms(20)
...
local curRms = rms:next(newSample, curMeanValue)

Also: I have no idea how to properly tag my post :slight_smile: anybody willing to point me in the right direction?
thanks for editing it for me (stillgot the dumb and cannot see where the tag control is :slight_smile: )

5 Likes