operator >= method

bool operator >=(
  1. Pitch other
)

Whether this Pitch is higher than or equal to other.

Example:

Note.c.inOctave(5) >= Note.c.inOctave(4) == true
Note.a.inOctave(4) >= Note.g.inOctave(5) == false
Note.d.inOctave(4) >= Note.d.inOctave(4) == true

Implementation

bool operator >=(Pitch other) => semitones >= other.semitones;