Пример #1
0
 public Pattern Add(IPatternProducer producer, int repetitions = 1)
 {
     for (int i = 0; i < repetitions; i++)
     {
         Add(producer.GetPattern().ToString());
     }
     return(this);
 }
Пример #2
0
        public TrackTable Add(int track, int position, IPatternProducer producer)
        {
            var trackList = tracks[track];

            if (trackList == null)
            {
                trackList = new List <IPatternProducer>();
                tracks.Insert(track, trackList);
            }
            trackList.Insert(position, producer.GetPattern());
            return(this);
        }
Пример #3
0
 public void AddInstruction(string key, IPatternProducer value)
 {
     AddInstruction(key, value.GetPattern().ToString());
 }
Пример #4
0
 public void DelayPlay(long millisToDelay, IPatternProducer patternProducer)
 {
     DelayPlay(millisToDelay, patternProducer.GetPattern().ToString());
 }
Пример #5
0
 public void Play(IPatternProducer patternProducer)
 {
     Play(patternProducer.GetPattern().ToString());
 }
Пример #6
0
 public Sequence GetSequence(IPatternProducer patternProducer)
 {
     return(GetSequence(patternProducer.GetPattern().ToString()));
 }
Пример #7
0
 public void Parse(IPatternProducer producer)
 {
     Parse(producer.GetPattern().ToString());
 }