Rhythm in C#