notes that occurred to me in the middle of something else
remove DC offset and normalize
purge code duplication from Notebook version