Jump to content

Adding double and triple tonguing indications for woodwind: 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:
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


Line 27: Line 27:
[[Category:Tweaks and overrides]]
[[Category:Tweaks and overrides]]
[[Category:Workaround]]
[[Category:Workaround]]
[[Category:Snippet]]

Latest revision as of 23:12, 21 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 }
}