%% Generated by lilypond-book.py %% Options: [indent=0\mm,verbatim,doctitle,alt=[image of music],texidoc,line-width=160\mm] \include "lilypond-book-preamble.ly" % **************************************************************** % Start cut-&-pastable-section % **************************************************************** \paper { #(define dump-extents #t) indent = 0\mm line-width = 160\mm force-assignment = #"" line-width = #(- line-width (* mm 3.000000)) } \layout { } % **************************************************************** % ly snippet: % **************************************************************** \sourcefilename "flute-slap-notation.ly" \sourcefileline 0 %% Do not edit this file; it is auto-generated from input/new %% This file is in the public domain. \version "2.12.0" \header { lsrtags = "winds" texidoc = " It is possible to indicate special articulation techniques such as flute's \"tongue slap\", by replacing the note head with the appropriate glyph. " doctitle = "Flute slap notation" } % begin verbatim slap = #(define-music-function (parser location music) (ly:music?) #{ \override NoteHead #'stencil = #(lambda (grob) (grob-interpret-markup grob (markup #:musicglyph "scripts.sforzato"))) \override NoteHead #'extra-offset = #'(0.1 . 0.0) $music \revert NoteHead #'stencil \revert NoteHead #'extra-offset #}) \relative c' { c4 \slap c d r \slap { g a } b r } % **************************************************************** % end ly snippet % ****************************************************************