]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/transposing-pitches-with-minimum-accidentals-smart-transpose.ly
font: rename draw_staff to draw_staff_if_debugging
[lilypond.git] / Documentation / snippets / transposing-pitches-with-minimum-accidentals-smart-transpose.ly
index 9d1e274ff5ef6ffdf99faa68a95b3c57bfcda25c..2b647d08547461da83c800de38b9523222c3ee7f 100644 (file)
@@ -43,10 +43,10 @@ In this manner, the most natural enharmonic notes are chosen.
          ;; for historical reasons
          (n (ly:pitch-notename p)))
      (cond
-      ((and (> a 1) (or (= n 6) (= n 2)))
+      ((and (> a 1) (or (eq? n 6) (eq? n 2)))
        (set! a (- a 2))
        (set! n (+ n 1)))
-      ((and (< a -1) (or (= n 0) (= n 3)))
+      ((and (< a -1) (or (eq? n 0) (eq? n 3)))
        (set! a (+ a 2))
        (set! n (- n 1))))
      (cond