Ejemplo n.º 1
0
 public void Arp5(Pitch start, uint duration, uint cycle)
 {
     while (cycle > 0)
     {
         cycle--;
         _sound.PlaySound(start++, duration);
     }
 }
Ejemplo 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);
            }
        }
Ejemplo n.º 3
0
 public void Play(Pitch pitch, uint duration)
 {
     _sound.PlaySound(pitch, duration);
 }
Ejemplo n.º 4
0
 public void Arp4(Pitch start, Pitch end, uint duration)
 {
     for (Pitch p = start; p != end; p++)
         _sound.PlaySound(p, duration);
 }