Class IrregularBeats

    • Constructor Detail

      • IrregularBeats

        public IrregularBeats​(long... beatLocationsInMicroSeconds)
      • IrregularBeats

        public IrregularBeats​(Beat[] beats)
      • IrregularBeats

        public IrregularBeats​(org.json.simple.JSONObject jsonObject)
    • Method Detail

      • getBeatsPerMeasure

        public int getBeatsPerMeasure()
        Description copied from interface: Beats
        Beats per measure.
        Specified by:
        getBeatsPerMeasure in interface Beats
        Returns:
        beats per measure or 1 if unknown
      • changeTime

        public Beats changeTime​(TimeSignature timeSignature)
        Description copied from interface: Beats
        Provide a view that reflects the given time signature and adjust beat numbers accordingly. If no beat number information is available at all, the provided view may be identical to the original view.
        Specified by:
        changeTime in interface Beats
        Parameters:
        timeSignature - time signature
        Returns:
        beat number adjusted view on the same beats
      • toJSONString

        public String toJSONString()
        Specified by:
        toJSONString in interface org.json.simple.JSONAware
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object