Refactor noise and pulse playback to not duplicate as much code