lib/head_music/circle.rb in head_music-0.20.0 vs lib/head_music/circle.rb in head_music-0.22.0
- old
+ new
@@ -35,9 +35,10 @@
def pitch_classes_by_interval(interval)
[HeadMusic::PitchClass.get(0)].tap do |list|
loop do
next_pitch_class = list.last + interval
break if next_pitch_class == list.first
+
list << next_pitch_class
end
end
end
end