private RingBuffer <int> onsetBuffer = new RingBuffer <int>(6); // needed for onset distribution and hash generation public BandAnalyzer(Profile profile, int band) { this.profile = profile; this.band = band; rmsBlock = new RingBuffer <float>(profile.OnsetRmsWindowSize); rmsWindow = WindowUtil.GetArray(profile.OnsetRmsWindowType, profile.OnsetRmsWindowSize); sampleCount = 0; rmsSampleCount = 0; rmsSampleBuffer = new RingBuffer <float>(FilterCoefficientsBn.Length * 2 + 1); // needed for filtering }