Jump to content

Creating harp glissandi: Difference between revisions

From LilyPond wiki
Import snippet from LSR
 
m New category
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
You can notate an ad lib. harp glissando in LilyPond using transparent <code>NoteHead</code>s with no ledger lines.
You can notate an ad lib. harp glissando in LilyPond using transparent <code>NoteHead</code>s with no ledger lines.


<lilypond version="2.24.0">
<lilypond version="2.24">
%% http://lsr.di.unimi.it/LSR/Item?id=796
%% http://lsr.di.unimi.it/LSR/Item?id=796


Line 31: Line 31:
[[Category:Staff notation]]
[[Category:Staff notation]]
[[Category:Unfretted strings]]
[[Category:Unfretted strings]]
[[Category:Snippet]]

Latest revision as of 23:15, 21 November 2025

You can notate an ad lib. harp glissando in LilyPond using transparent NoteHeads with no ledger lines.

\version "2.24"

%% http://lsr.di.unimi.it/LSR/Item?id=796

% The positions of the headless notes are dependent on the clef.
% You can use a Pitch_squash_engraver to get around this.

\new PianoStaff <<
  \new Staff = "right" {
    \clef treble
    e'''8\glissando^"gliss. ad lib." s8*3
    \change Staff = "left"
    \override NoteHead.transparent = ##t
    \override NoteHead.no-ledgers = ##t
    c,8\glissando s8*3 |
    \change Staff = "right" c'''8 r
    % Back to normal
    \override NoteHead.transparent = ##f
    \override NoteHead.no-ledgers = ##f
    c''4 d'' e''
  }
  \new Staff = "left" {
    \clef bass
    s1 |
    r4 c d e
  }
>>