This was done so the collection of loudnesses from an audio file could be mocked in testing, but improves readability TODO: review number of params and consider further refactoring