]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/pitch.cc
Merge branch 'master' of git://git.sv.gnu.org/lilypond
[lilypond.git] / lily / pitch.cc
index 4d983ab6d5e4e6a729e0440c51d9e6e302426285..880dc79edfdb4339ab99dba99d54d11338a32f92 100644 (file)
@@ -304,3 +304,9 @@ Pitch::transposed (Pitch d) const
 
 Rational FLAT_ALTERATION (-1, 2);
 Rational SHARP_ALTERATION (1, 2);
+
+Pitch
+Pitch::negated () const
+{
+  return pitch_interval (*this, Pitch ());
+}