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