Esempio n. 1
0
 public void Arp5(Pitch start, uint duration, uint cycle)
 {
     while (cycle > 0)
     {
         cycle--;
         _sound.PlaySound(start++, duration);
     }
 }
Esempio n. 2
0
        public void PlayScale(uint[] scale, Notes n, uint duration, Octaves o = Octaves.O4)
        {
            var notes = EnumExtensions.GetArray<Notes>();

            for (uint i = 0; i < scale.Count(); i++)
            {
                var p = new Pitch(n, o) + scale[i];
                _sound.PlaySound(p, duration);
            }
        }
Esempio n. 3
0
 public void Play(Pitch pitch, uint duration)
 {
     _sound.PlaySound(pitch, duration);
 }
Esempio n. 4
0
 public void Arp4(Pitch start, Pitch end, uint duration)
 {
     for (Pitch p = start; p != end; p++)
         _sound.PlaySound(p, duration);
 }