Accord.Audio.Metronome.Tap C# (CSharp) Method

Tap() public method

Taps the metronome (for tempo detection)
public Tap ( ) : void
return void
        public void Tap()
        {
            metronome.Stop();

            DateTime now = DateTime.Now;

            if (Detecting)
            {
                timeUp.Stop();
                TimeSpan span = now - lastTick;
                timeSpan.Add(span);
            }
            lastTick = now;
            timeUp.Start();
        }