Fix #1009 (\transpose error with pitch alteration > double).
commit6ef88209edc32d198656693a94cd07a65ce0e579
authorNeil Puttock <n.puttock@gmail.com>
Sun, 21 Feb 2010 17:10:22 +0000 (21 17:10 +0000)
committerNeil Puttock <n.puttock@gmail.com>
Sun, 21 Feb 2010 17:10:22 +0000 (21 17:10 +0000)
treef903a762cc8417f62171b621f3feb8a17151c2d7
parent19c64d073000e828f190cfddec6058a0184dbfa9
Fix #1009 (\transpose error with pitch alteration > double).

* lily/music.cc (transpose_mutable):

  if delta pitch has an alteration larger than a double, normalize using
  Pitch::normalized (), preventing invalid alterations being converted to strings

  also normalize transposed pitch (this changes note name, but ensures valid
  pitch)

* lily/pitch.cc (normalized):

  new method
lily/include/pitch.hh
lily/music.cc
lily/pitch.cc