$ creates unnecessary copies, unnecessary reinterpretation, and
reassigns the music origin of some expressions to the current parser
location, which in #{ ... #} turns out to be music-functions-init.ly
itself, hardly helpful.
#{
\once \override Staff.TimeSignature.stencil = #(lambda (grob)
(grob-interpret-markup grob (format-compound-time args)))
#{
\once \override Staff.TimeSignature.stencil = #(lambda (grob)
(grob-interpret-markup grob (format-compound-time args)))
- \set Timing.timeSignatureFraction = $timesig
- \set Timing.baseMoment = $beat
- \set Timing.beatStructure = $beatGrouping
+ \set Timing.timeSignatureFraction = #timesig
+ \set Timing.baseMoment = #beat
+ \set Timing.beatStructure = #beatGrouping
\set Timing.beamExceptions = #'()
\set Timing.beamExceptions = #'()
- \set Timing.measureLength = $mlen
+ \set Timing.measureLength = #mlen
#{
\temporary \override Stem.cross-staff = #cross-staff-connect
\temporary \override Flag.style = #'no-flag
#{
\temporary \override Stem.cross-staff = #cross-staff-connect
\temporary \override Flag.style = #'no-flag
\revert Stem.cross-staff
\revert Flag.style
#})
\revert Stem.cross-staff
\revert Flag.style
#})
(ly:grob::stencil-height grob)))
\temporary \override NoteHead.stencil = #(lambda (grob) (ly:grob-set-property! grob 'style 'harmonic-mixed)
(ly:note-head::print grob))
(ly:grob::stencil-height grob)))
\temporary \override NoteHead.stencil = #(lambda (grob) (ly:grob-set-property! grob 'style 'harmonic-mixed)
(ly:note-head::print grob))
(calc-harmonic-pitch (fret->pitch (number->string fret)) music))
\unset harmonicDots
\revert TabNoteHead.stencil
(calc-harmonic-pitch (fret->pitch (number->string fret)) music))
\unset harmonicDots
\revert TabNoteHead.stencil
(ly:grob::stencil-height grob)))
\temporary \override NoteHead.stencil = #(lambda (grob) (ly:grob-set-property! grob 'style 'harmonic-mixed)
(ly:note-head::print grob))
(ly:grob::stencil-height grob)))
\temporary \override NoteHead.stencil = #(lambda (grob) (ly:grob-set-property! grob 'style 'harmonic-mixed)
(ly:note-head::print grob))
(calc-harmonic-pitch (ratio->pitch ratio) music))
\unset harmonicDots
\revert TabNoteHead.stencil
(calc-harmonic-pitch (ratio->pitch ratio) music))
\unset harmonicDots
\revert TabNoteHead.stencil
specified by it. If @var{item} is a music expression, the result is
the same music expression with an appropriate tweak applied to it.")
(if (ly:music? item)
specified by it. If @var{item} is a music expression, the result is
the same music expression with an appropriate tweak applied to it.")
(if (ly:music? item)
- #{ \tweak transparent ##t $item #}
- #{ \override $item #'transparent = ##t #}))
+ #{ \tweak transparent ##t #item #}
+ #{ \override #item . transparent = ##t #}))
inStaffSegno =
#(define-music-function (parser location) ()
inStaffSegno =
#(define-music-function (parser location) ()
specified by it. If @var{item} is a music expression, the result is
the same music expression with an appropriate tweak applied to it.")
(if (ly:music? item)
specified by it. If @var{item} is a music expression, the result is
the same music expression with an appropriate tweak applied to it.")
(if (ly:music? item)
- #{ \tweak stencil ##f $item #}
- #{ \override $item #'stencil = ##f #}))
+ #{ \tweak stencil ##f #item #}
+ #{ \override #item . stencil = ##f #}))
once =
#(define-music-function (parser location music) (ly:music?)
once =
#(define-music-function (parser location music) (ly:music?)