lib/head_music/motion.rb in head_music-6.0.0 vs lib/head_music/motion.rb in head_music-6.0.1
- old
+ new
@@ -46,10 +46,12 @@
send("#{motion_type}?")
end
end
def to_s
- "#{contrapuntal_motion} motion from #{first_harmonic_interval} to #{second_harmonic_interval}"
+ return "repetition of a #{second_harmonic_interval}" unless contrapuntal_motion != :repetition
+
+ "#{contrapuntal_motion} motion from a #{first_harmonic_interval} to a #{second_harmonic_interval}"
end
private
def upper_melodic_interval