lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: overriding digit-names


From: John Asmuth
Subject: Re: overriding digit-names
Date: Wed, 28 Jun 2023 21:49:23 -0400

Thank you!

On Wed, Jun 28, 2023 at 9:35 PM William Rehwinkel <william@williamrehwinkel.net> wrote:
Dear John,

You need to add another pound sign before the list. StrokeFinger.digit-names is a vector, with is a guile-specific construct not a standard list. This is entered by adding a pound sign, so confusingly we need the lilypond pound sign and the guile pound sign (of course this is actually expected, because the lilypond pound sign just tells the interpreter to read the following as a guile _expression_).

-William

%
----------

\version "2.25.4"


\relative c' {
  c8\rightHandFinger #1 d\rightHandFinger #2  e\rightHandFinger #3  f\rightHandFinger #4  g\rightHandFinger #5
}
\layout {
  \context {
    \Voice
    \override StrokeFinger.digit-names = ##("p" "i" "m" "a" "n")

  }
}

% ----------

On 6/28/23 21:04, John Asmuth wrote:
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 |
+ ------------------------------------------- +

reply via email to

[Prev in Thread] Current Thread [Next in Thread]