public TempoChange(int beatsPerMinute, int timeStamp)
      {
         if (beatsPerMinute < 0 || beatsPerMinute > 510)
            throw new IllegalArgumentException("The beats per minute field in the " + FrameType.SYNCHRONIZED_TEMPO_CODES.getId() + " contains an invalid value, " + beatsPerMinute + ". It must be 0 <= beats per minute <= 510.");
         if (timeStamp < 0)
            throw new IllegalArgumentException("The time stamp field in the " + FrameType.SYNCHRONIZED_TEMPO_CODES.getId() + " contains an invalid value, " + timeStamp + ".  It must be >= 0.");

         this.beatsPerMinute = beatsPerMinute;
         this.timeStamp      = timeStamp;
      }