lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Naturals on all notes


From: Nicolas Sceaux
Subject: Re: Naturals on all notes
Date: Sun, 26 Jun 2005 16:38:43 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (darwin)

"Mehmet Okonsar" <address@hidden> writes:

> I want to have a natural OR a Sharp OR a flat on every every note.

does the following function do what you want?

\version "2.5.32"

forceAlterations = 
  #(def-music-function (parser location music) (ly:music?)
     (music-map (lambda (m)
                  (if (eqv? (ly:music-property m 'name) 'NoteEvent)
                      (set! (ly:music-property m 'force-accidental) #t))
                  m)
                music)
     music)

\forceAlterations { 
  \time 5/4
  c' des' e' fis' gis' 
}


nicolas




reply via email to

[Prev in Thread] Current Thread [Next in Thread]