]> git.donarmstrong.com Git - lilypond.git/blobdiff - scm/music-functions.scm
Fix 763 Fretboards don't transpose properly
[lilypond.git] / scm / music-functions.scm
index de8b5973fb67f0101a741a58c2d51803187707e2..0263d498e94038890c7ce4a30af0e4561e03f5e1 100644 (file)
@@ -951,6 +951,16 @@ Syntax:
      (skip-as-needed x parser)
    )))
 
+;;;;;;;;;;
+;;; general purpose music functions
+
+(define (shift-octave pitch octave-shift)
+  (_i "Add @var{octave-shift} to the octave of @var{pitch}.")
+  (ly:make-pitch
+     (+ (ly:pitch-octave pitch) octave-shift)
+     (ly:pitch-notename pitch)
+     (ly:pitch-alteration pitch)))
+
 
 ;;;;;;;;;;;;;;;;;
 ;; lyrics