lib/head_music/pitch.rb in head_music-0.19.2 vs lib/head_music/pitch.rb in head_music-0.20.0
- old
+ new
@@ -169,10 +169,10 @@
def target_letter_name(num_steps)
@target_letter_name ||= {}
@target_letter_name[num_steps] ||= letter_name.steps(num_steps)
end
- # Enharmonic equivalence occurs when two pitches are spelled differently but refer to the same frequency, such as D♯ and E♭.
+ # An enharmonic equivalent pitch is the same frequency spelled differently, such as D# and Eb.
class EnharmonicEquivalence
def self.get(pitch)
pitch = HeadMusic::Pitch.get(pitch)
@enharmonic_equivalences ||= {}
@enharmonic_equivalences[pitch.to_s] ||= new(pitch)