public SingleInstrumentBeatsMatcher(IInstrumentId instrumentId, PatternBeatsTimesList patternBeats, BeatTimesList playedBeats, PatternMatcher.Settings settings)
 {
     this.instumentId  = instrumentId;
     this.patternBeats = patternBeats;
     this.playedBeats  = playedBeats;
     this.settings     = settings;
 }
Пример #2
0
 private void FillToEnd(BeatTimesList list)
 {
     for (; nextBeatIndex < onePassBeats.Length; ++nextBeatIndex)
     {
         list.Add(onePassBeats[nextBeatIndex].Offset(Offset));
     }
     nextBeatIndex = 0;
     ++currentLoops;
 }
Пример #3
0
 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));
     }
 }
Пример #4
0
 public PatternBeatsTimesList(BeatTimesList beatsList, ContinuousBeatsLooper patternBeats)
 {
     this.beatsList    = beatsList;
     this.patternBeats = patternBeats;
 }