lib/head_music/circle.rb in head_music-0.1.0 vs lib/head_music/circle.rb in head_music-0.1.1

- old
+ new

@@ -17,9 +17,13 @@ def initialize(interval) @interval = HeadMusic::Interval.get(interval.to_i) @pitch_classes = pitch_classes_by_interval(interval) end + def index(pitch_class) + @pitch_classes.index(HeadMusic::Spelling.get(pitch_class).pitch_class) + end + private_class_method :new private def pitch_classes_by_interval(interval)