Jump to content

Adding double and triple tonguing indications for woodwind: Difference between revisions

From LilyPond wiki
Import snippet from LSR
 
m Replace version="2.24.0" with version="2.24" now that the LilyWiki extension supports auto-selecting the latest release in a stable series
Line 1: Line 1:
Double and triple tonguing indications can be added to notes by tweaking the appearance of staccato articulations.
Double and triple tonguing indications can be added to notes by tweaking the appearance of staccato articulations.


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



Revision as of 18:44, 16 November 2025

Double and triple tonguing indications can be added to notes by tweaking the appearance of staccato articulations.

\version "2.24"

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

tongue =
#(define-music-function (dots) (integer?)
  #{
    \tweak stencil
      #(lambda (grob)
        (let ((stil (ly:script-interface::print grob)))
          (let loop ((count (1- dots)) (new-stil stil))
            (if (> count 0)
                (loop (1- count)
                      (ly:stencil-combine-at-edge new-stil X RIGHT stil 0.2))
                (ly:stencil-aligned-to new-stil X CENTER)))))
     \staccato
  #})

\relative c' {
  \tuplet 3/2 { \repeat tremolo 3 c8-\tongue #3 }
}