%% Generated by lilypond-book
%% Options: [exampleindent=10.16\mm,indent=0\mm,line-width=160\mm]
\include "lilypond-book-preamble.ly"


% ****************************************************************
% Start cut-&-pastable-section
% ****************************************************************

#(ly:set-option 'eps-box-padding 3.000000)



\paper {
  indent = 0\mm
  line-width = 160\mm
  % offset the left padding, also add 1mm as lilypond creates cropped
  % images with a little space on the right
  line-width = #(- line-width (* mm  3.000000) (* mm 1))
}

\layout {
  
}




% ****************************************************************
% ly snippet:
% ****************************************************************
\sourcefilename "snippets/flute-slap-notation.ly"
\sourcefileline 0
%% DO NOT EDIT this file manually; it was automatically
%% generated from `Documentation/snippets/new/`.
%%
%% Make any changes in `Documentation/snippets/new/`,
%% then run `scripts/auxiliar/makelsr.pl --new`.
%%
%% This file is in the public domain.
%%
%% Note: this file works from version 2.23.13.

\version "2.23.13"

\header {
%% Translation of GIT committish: f11513f36c131dab18338d6a3a729e24a927150d
  texidocja = "
@qq{スラップ タンギング} のような、特別なアーティキュレーション テクニックを@c
指示するために、符頭を別のグリフに置き換えることができます。
"
  doctitleja = "フルート スラップの記譜"

%% Translation of GIT committish: a3fd5364fc4f247579da0ed2bfea887ab37285c6
  texidocfr = "
L'indication d'une technique particulière d'articulation, telle le
« coup de langue » des flûtistes, s'obtient en remplaçant la tête
de note par un glyphe approprié. Pour ce faire, on peut dessiner une
tête de note en forme d'accent à l'aide d'un @code{\\markup}.
"

  doctitlefr = "Coup de langue à la flûte"

%% Translation of GIT committish: 0c00cd98e81b27325bed5891b950fe7f0f0ebe5d
  texidoces = "
Es posible indicar técnicas de articulación especiales como el golpe
de lengua de la flauta (@qq{tongue slap}) sustituyendo la cabeza de la
figura con el glifo adecuado.

"
  doctitlees = "Notación de los golpes de lengua de la flauta"

%% Translation of GIT committish: db963831475f58bc64d88bd527e408722ebe8954
  texidocca = "
És possible indicar tècniques d'articulació especial com el cop de
llengua de la flauta substituint el cap de la figura amb el glif
adequat.

"
  doctitleca = "Notació dels cops de llengua de la flauta"

  lsrtags = "contemporary-notation, winds"

  texidoc = "
It is possible to indicate special articulation techniques such as a
flute @qq{tongue slap} by replacing the note head with the appropriate
glyph.  For that we can draw the accent-like note head with
@code{\\markup}.
"

  doctitle = "Flute slap notation"
} % begin verbatim


slap =
#(define-music-function (music) (ly:music?)
#{
  \temporary \override NoteHead.stencil = #ly:text-interface::print
  \temporary \override NoteHead.text =
    \markup
    \translate #'(1 . 0)
    \override #'(thickness . 1.4)
    \overlay {
      \draw-line #'(-1.2 . 0.4)
      \draw-line #'(-1.2 . -0.4)
    }
  \temporary \override NoteHead.stem-attachment =
  #(lambda (grob)
     (let* ((stem (ly:grob-object grob 'stem))
            (dir (ly:grob-property stem 'direction UP))
            (is-up (eqv? dir UP)))
       (cons dir (if is-up 0 -0.8))))
  #music
  \revert NoteHead.stencil
  \revert NoteHead.text
  \revert NoteHead.stem-attachment
#})

\relative c' {
  c4 \slap c d r
  \slap { g4 a } b r
}



% ****************************************************************
% end ly snippet
% ****************************************************************
