lib/head_music/scale.rb in head_music-0.16.2 vs lib/head_music/scale.rb in head_music-0.17.0
- old
+ new
@@ -6,10 +6,10 @@
root_pitch, scale_type = root_pitch.split(/\s+/)
end
root_pitch = HeadMusic::Pitch.get(root_pitch)
scale_type = HeadMusic::ScaleType.get(scale_type || :major)
@scales ||= {}
- name = [root_pitch.to_s, scale_type].join(' ')
+ name = [root_pitch, scale_type].join(' ')
hash_key = HeadMusic::Utilities::HashKey.for(name)
@scales[hash_key] ||= new(root_pitch, scale_type)
end
attr_reader :root_pitch, :scale_type