lib/head_music/scale.rb in head_music-0.18.0 vs lib/head_music/scale.rb in head_music-0.19.0

- old
+ new

@@ -59,12 +59,12 @@ end pitches end def octave_scale_pitches(direction, semitones_from_root) - direction_intervals(direction).map.with_index do |semitones, i| + direction_intervals(direction).map.with_index(1) do |semitones, i| semitones_from_root += semitones * direction_sign(direction) - pitch_for_step(i + 1, semitones_from_root, direction) + pitch_for_step(i, semitones_from_root, direction) end end def direction_sign(direction) direction == :descending ? -1 : 1