The LilyPond Snippet Repository ♪♫

What's this? Searching the LSR Browse Contributing Snippet database

Results 1−10 of 81 for notehead

Associate drumnotes with custom NoteHead stencils [0.25000]

Associate drumnotes with custom NoteHead stencils

…which will automagically be used as the standard notehead for the assigned drumnote. In your ly-code you … …you want to have displayed with your own notehead and be sure to put the full notename, …

Associate drumnotes with custom NoteHead stencils

Using ly:grob-object to access grobs with \tweak [0.25000]

…some ways of accessing grobs from within a NoteHead callback, but the technique is not limited to NoteHeads. However, the NoteHead callback is particularly important, since it is the …

#(define (notehead-get-accidental notehead) ;; notehead is grob (ly:grob-object notehead 'accidental-grob)) #(define (… …accidental (notehead-get-accidental notehead)) (arpeggio (notehead-get-arpeggio notehead)) (stem (notehead-get-stem notehead))) (format (current-error-port) "~2&~a\n" (make-string 20 #\… …c' { %% display grobs for each note head: %\override NoteHead.before-line-breaking = #display-grobs <c %% or just for one: \tweak …

Using ly:grob-object to access grobs with \tweak

Customising note heads [0.24107]

…do to create arbitrary noteheads: 1. change the NoteHead stencil to the text-interface. 2. define the text attribute of the NoteHead. It accepts any markup. The easiest thing to …

…was contributed by Victor Adan headCircle = { \once \override NoteHead.stencil = #ly:text-interface::print \once \override NoteHead.text = #(markup #:musicglyph "scripts.flageolet" ) } headPlus = { \once \override NoteHead.stencil = #ly:text-interface::print \once \override NoteHead.text = #(markup #:musicglyph "scripts.stopped") } { \headCircle c'…

Customising note heads

Creating a Schenker Graph [0.21429]

…notes voice, note heads are determined by setting NoteHead #'duration-log. Harmonic connections are implemented by a …

…##t << { \override Beam.positions = #'(8 . 8) \hide NoteHead \override NoteHead.duration-log = #1 s1 b8[^\markup { \override … …Slur.color = #(x11-color "purple") \hide Stem \hide NoteHead \slurDashed \once \override Slur.height-limit = #6.0 \once \… …s s1 s2 \undo \hide Stem \undo \hide NoteHead } >> \bar "|." } } >> } \score { << \staffPiano >> \layout { indent = 0.0 ragged-right = …

Creating a Schenker Graph

Making noteheads look handwritten [0.20536]

…markup path are randomly jittered to form the notehead shapes.

…r 0 r)))) \new Staff \relative c' { \override NoteHead.stencil = #(lambda (grob) (let ((fill (> (ly:grob-property grob '… …0.1) | c8 d8 e8 f8 g2 \revert NoteHead.stencil \revert NoteHead.stem-attachment | c,8 d8 e8 f8 g2 }

Making noteheads look handwritten

Alternative breve notes [0.19643]

…two vertical lines on each side of the notehead instead of one line and in baroque style.

…c'' { \time 4/2 c\breve | \override Staff.NoteHead.style = #'altdefault b\breve \override Staff.NoteHead.style = #'baroque b\breve \revert Staff.NoteHead.style a\breve }

Alternative breve notes

Displaying grob ancestry [0.17857]

…s ancestry. When called this way: { \once \override NoteHead.before-line-breaking = #display-ancestry c } The following output is generated: NoteHead X,Y: NoteColumn X: PaperColumn X,Y: System …

…not a grob" grob)))) \relative c' { \once \override NoteHead.before-line-breaking = #display-ancestry f4 \once \override Accidental.before-line-breaking = #display-ancestry \…

Displaying grob ancestry

Ancient fonts [0.14286]

…f ges cis' \bar "||" } \score { \new VaticanaVoice { \override NoteHead.style = #'vaticana.punctum \key es \major \textMark \… …hufnagel.punctum <>^"hufnagel.punctum" \m \clef "hufnagel-do2" \override NoteHead.style = #'hufnagel.lpes <>^"hufnagel.lpes" \m \clef "hufnagel-do-fa" \override NoteHead.style = #'hufnagel.virga <>^"hufnagel.virga" \m } \layout { …

Ancient fonts

Re-positioning note heads on the opposite side of the stem [0.14286]

…automatically determined based on % the width of the notehead and the width of the stem. % (When there … …#'diamond %\override NoteHead.style = #'xcircle %\override NoteHead.stencil = #rhomb-note %\override NoteHead.stencil = #my-crazy-note-stencil } } %}

Re-positioning note heads on the opposite side of the stem

Differently colored note heads in one staff [0.14063]

…NHreverts! \SBT \RS } NHblue = { % top voice \override Voice.NoteHead.color = #blue % move rests to their expected positons \… …r e \bar "|." } altomusic = \relative e' { \override Voice.NoteHead.color = #magenta \clef treble \key c \major | \tuplet … …r c \bar "|." } tbmusic = \relative c' { \override Voice.NoteHead.color = #red \clef bass \key c \major | \tuplet …

Differently colored note heads in one staff

1 2 3 4 5 6 7 8 9 Next ⇨