[Top][All Lists]

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

Re: Default a sequence of notes to show flageolet

From: Jonathan Kulp
Subject: Re: Default a sequence of notes to show flageolet
Date: Thu, 01 Jan 2009 21:07:00 -0600
User-agent: Thunderbird (X11/20081125)

Nick Payne wrote:
I have about ten bars where every note is a harmonic, which I wish to
indicate with a flageolet above each notehead. Is there a way to change the
default for these ten bars so that I don't have to put ^\flageolet after
every note? The list of note head styles doesn't seem to include a way to do

Nick Payne

I found a snippet in Lilypond Tips & Tricks called "" where it showed how to do this with staccato notes using a bit of scheme, and I modified it to put flageolet instead of staccato. Works great! Code below


Jonathan Kulp


\version "2.12.0"

#(define (make-script x)
   (make-music 'ArticulationEvent
               'articulation-type x))

#(define (add-script m x)
     (equal? (ly:music-property m 'name) 'EventChord)
     (set! (ly:music-property m 'elements)
           (cons (make-script x)
                 (ly:music-property m 'elements))))

#(define (add-flageolet m)
   (add-script m "flageolet"))

addFlag =
#(define-music-function (parser location music)
                (music-map add-flageolet music))        

\relative c' {
  c d e d
  \addFlag { c d e f }

reply via email to

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