Class PitchAndOctave<O extends Entity & Comparable<O>,C extends Entity & PitchIndication & Comparable<C>>

java.lang.Object
eu.bandm.music.entities.PitchAndOctave<O,C>
All Implemented Interfaces:
PitchIndication, Comparable<PitchAndOctave<O,C>>
Direct Known Subclasses:
FunctionalPitch

public class PitchAndOctave<O extends Entity & Comparable<O>,C extends Entity & PitchIndication & Comparable<C>> extends Object implements PitchIndication, Comparable<PitchAndOctave<O,C>>
A pitch indication which combines some octave register information and some pitch class modulo octave.
  • Field Details

    • octave

      protected O extends Entity & Comparable<O> octave
      The octave coordinate of this pitch.
    • classModOctave

      protected C extends Entity & PitchIndication & Comparable<C> classModOctave
      The octave-relative coordinate (="pitch class" = "pitch mod octave") of this pitch.
  • Constructor Details

    • PitchAndOctave

      public PitchAndOctave(O octave, C classModOctave)
      Only constructor.
  • Method Details