public SingleInstrumentBeatsMatcher(IInstrumentId instrumentId, PatternBeatsTimesList patternBeats, BeatTimesList playedBeats, PatternMatcher.Settings settings) { this.instumentId = instrumentId; this.patternBeats = patternBeats; this.playedBeats = playedBeats; this.settings = settings; }
private void FillToEnd(BeatTimesList list) { for (; nextBeatIndex < onePassBeats.Length; ++nextBeatIndex) { list.Add(onePassBeats[nextBeatIndex].Offset(Offset)); } nextBeatIndex = 0; ++currentLoops; }
public void FillBeatsUntil(float t, BeatTimesList list) { if (t > repeatLength * (currentLoops + 1)) { FillToEnd(list); } t -= Offset; for (; nextBeatIndex < onePassBeats.Length && onePassBeats[nextBeatIndex].T <= t; ++nextBeatIndex) { list.Add(onePassBeats[nextBeatIndex].Offset(Offset)); } }
public PatternBeatsTimesList(BeatTimesList beatsList, ContinuousBeatsLooper patternBeats) { this.beatsList = beatsList; this.patternBeats = patternBeats; }