code: public void setPlaying(boolean playing) {
  
          if (this.playing.get() == playing) {
              return;
          }
  
          this.playing.set(playing);
  
          if (playing) {
              metronome.jumpToBeat(whereStopped.get().getBeat());
              if (isSendingStatus()) {  // Need to also start the beat sender.
                  beatSender.set(new BeatSender(metronome));
              }
          } else {
              final BeatSender activeSender = beatSender.get();
              if (activeSender != null) {  // We have a beat sender we need to stop.
                  activeSender.shutDown();
                  beatSender.set(null);
              }
              whereStopped.set(metronome.getSnapshot());
          }
      }
docs: Controls whether we report that we are playing. This will only have an impact when we are sending status and
  beat packets.
  
  @param playing {@code true} if we should seem to be playing