|
From: | William Rehwinkel |
Subject: | Re: overriding digit-names |
Date: | Wed, 28 Jun 2023 21:35:10 -0400 |
User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 |
Hi lilypond,
I'm trying to override StrokeFinger.digit-names like as follows:
\override StrokeFinger.digit-names = #("p" "i" "m" "a" "n")
but it gives me an error
error: Guile signaled an error for the _expression_ beginning here
\override StrokeFinger.digit-names = #
("p" "i" "m" "a" "n")
Wrong type to apply: "p"
Anyone know how I can correctly do this override? Full document follows. I want to change the 'x' notation to an 'n'.
Thank you!- John
\version "2.24.1"
\paper {
ragged-last = ##t
}
strokeUp = \markup\combine\override #'(thickness . 1.3) \draw-line #'(0 . 2)\raise #2 \arrow-head #Y #UP ##f
strokeDown = \markup\combine\arrow-head #Y #DOWN ##f \override #'(thickness . 1.3) \draw-line #'(0 . 2)
RHu = \tweak staff-padding 5 \rightHandFinger \strokeUp
RHd = \tweak staff-padding 5 \rightHandFinger \strokeDown
RHp = \rightHandFinger #1
RHi = \rightHandFinger #2
RHm = \rightHandFinger #3
RHa = \rightHandFinger #4
RHn = \rightHandFinger #5
ras_strum =
#(define-music-function
(chord)
(ly:music?)
#{
\override Beam.positions = #'(4 . 4)
\voiceOne
#chord
\override StrokeFinger.digit-names = #("p" "i" "m" "a" "n")
%\hide NoteHead
\improvisationOn
\hide TabNoteHead
\tuplet 3/2 { <b' \RHd \RHn>16 <b' \RHd\RHa>16 <b' \RHd\RHm>16 }
\override Beam.positions = #'(4 . 4)
<b'\RHd \RHi>8
<b'\RHu \RHi>8
\override Beam.positions = #'(4 . 4)
<b'\RHd \RHi>4
\improvisationOff
#})
notes={
\time 3/4
\ras_strum { <e b e' gis' b' e''\RHd\RHm\RHa>8 }
|
}
\new StaffGroup <<
<<
\context Staff \with {
\consists "Span_arpeggio_engraver"
connectArpeggios = ##t
} {
\set strokeFingerOrientations = #'(up)
\notes
}
\context TabStaff {
\set Staff.stringTunings = \stringTuning <e a d' g' b' e''>
\notes
}
>>
>>
-- + ------------------------------------------- + | William Rehwinkel - Oberlin College and | | Conservatory '24 | | william@williamrehwinkel.net | | PGP key: | | https://ftp.williamrehwinkel.net/pubkey.txt | + ------------------------------------------- +
OpenPGP_signature
Description: OpenPGP digital signature
[Prev in Thread] | Current Thread | [Next in Thread] |