• Willkommen im Forum „Archiviertes Lilypond Forum (2017)“.
 

Dies ist das Archiv des alten Forums (bis März 2017). Das aktuelle Forum ist unter lilypondforum.de zu finden.
This is the archive of the old forum (until March 2017). You can find the current forum at lilypondforum.de.

Hauptmenü

markup auf Variable

Begonnen von iugin, Sonntag, 2. November 2014, 18:00

Vorheriges Thema - Nächstes Thema

iugin

Hallo miteinander

kurze Frage: wie kriege ich den \markup auf einer Variable, welche eine Note repräsentiert?
Beispiel:
\version "2.18.2"

fn = #(define-music-function (parser location n)
        (ly:music?)
        #{
          $n^\markup{hallo} % <-- das geht nicht.
        #})

{ \fn c'4 }


Danke für die Antwort und einen schönen Abend

Eugenio

iugin

...ist vielleicht diese die einzige Möglichkeit?
\version "2.18.2"

fn = #(define-music-function (parser location n)
        (ly:music?)
       (set! (ly:music-property n 'articulations)
        (cons (make-music 'TextScriptEvent
               'direction
                  1
                  'text
                  (markup #:line (#:simple "hallo")))
              (ly:music-property n 'articulations)))
  n)

{ \fn c'4 }


Grüsse

Eugenio