lilypond-user-fr
[Top][All Lists]
Advanced

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

Re: Notation banjo 5.cordes


From: Martial R
Subject: Re: Notation banjo 5.cordes
Date: Mon, 31 Oct 2022 08:22:00 +0100

Bonjour,

Je savais bien qu'il y aurait une astuce plus simple !
Bravo Pierre

Le dim. 30 oct. 2022 à 07:52, Pierre Perol-Schneider <pierre.schneider.paris@gmail.com> a écrit :
Le dim. 30 oct. 2022 à 02:38, Jean Louis Thiry <thiryjl@ramierou.eu> a écrit :
 ...
En revanche la méthode de Pierre à laquelle je ne comprend évidemment pas grand’chose,
 ...

En simplifiant, j'échange l'apparence (stencil) par défaut de la NoteHead par un simple markup (ici une double croche)
(voir aussi : https://lilypond.org/doc/v2.23/Documentation/notation/music#index-note_002c-within-text_002c-by-log-and-dot_002dcount )
C'est une méthode relativement courante qu'on retrouve dans pas mal de snippets du LSR (https://lsr.di.unimi.it/LSR/Search)

...
Le seul truc bizarre c’est que ça ne fonctionne pas dans les accords
...

Oups, ma faute, j'aurais dû y penser...
Voilà une solution alternative qui devrait fonctionner -- avec deux tests :

octa = \tweak Y-extent #'(-3.5 . 2)
      \tweak stencil #(lambda (grob)
         (grob-interpret-markup grob              
             #{ \markup\note-by-number #4 #0 #1.2 #})) \etc

% test 1
\fixed c' {
  \time 2/4
  \override TupletBracket.tuplet-slur = ##t
  \override TupletBracket.shorten-pair = #'(1.3 . 1.3)
  \set fingeringOrientations = #'(left)
  \repeat volta 2 { s2 }
  \alternative {
    { <b-0 d'-0 \octa g'>8 d'16 cis' d' cis' d' cis' }
    {
            <b-0 d'-0 \octa g'>4
            \set Staff.ottavationMarkups = #ottavation-ordinals
            \ottava #1
            <b'-2 d''-1 g''-4 >8  
            \ottava  #0  
            \unset fingeringOrientations
            \tuplet 3/2 { <b-0>16_\markup\italic "LOCO" <cis'-2> <dis'-1>}
            \bar "|."
    }
  }
}
% test 2
\fixed c' {
  \time 2/4
  \override TupletBracket.tuplet-slur = ##t
  \override TupletBracket.shorten-pair = #'(1.3 . 1.3)
  \octa g'8
  \once \set fingeringOrientations = #'(left)
  <d'-1 f'-1> <c' e'> <b d'>~
  q \tuplet 3/2 { \octa g'16  g'-4 \octa g' } g'8-4 \octa g'
}

Cordialement,
Pierre


--
Martial Rameaux


reply via email to

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