%% Generated by lilypond-book
%% Options: [exampleindent=10.16\mm,indent=0\mm,line-width=160\mm,paper-height=845.047\pt,paper-width=597.508\pt,papersize='(cons (* 597.508 pt) (* 845.047 pt))]
\include "lilypond-book-preamble.ly"


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

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



\paper {
  #(set-paper-size '(cons (* 597.508 pt) (* 845.047 pt)))
  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 the LilyPond Wiki
%% (https://wiki.lilypond.community).
%%
%% Make any changes in the Wiki itself, or in
%% `Documentation/snippets/new/`, then run
%% `scripts/auxiliar/makelsr.pl`.
%%
%% This file is in the public domain.

\version "2.24.0"

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

%% Translation of GIT committish: c043783aac6c35926d633aa2daf60ed4f2e7ca7a
  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: beda50f64452870aee2823454a6cbd75b93f4825
  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.  Para ello podemos
trazar la cabeza de la nota en forma de acento con
@code{\\markup}.

"
  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"

  categories = "Contemporary notation, Scheme, 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
% ****************************************************************
