[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Completion_heads_engraver and repeated marks
From: |
Jim Tisdall |
Subject: |
Completion_heads_engraver and repeated marks |
Date: |
Thu, 3 Mar 2016 05:45:00 -0500 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 |
When using the Completion_heads_engraver,
I'm having a problem with repeated fingering markings in my guitar music,
as described in the comments included in these three staves.
.ly and .png image attached.
I have written external code to insert ties across moments and bar lines myself,
but I'm hoping there's a fix within the existing lilypond system that I've
just not found in my state of internals, and general typesetting, ignorance.
(I much prefer the first version, as I'm processing scores algorithmically
and they're a lot easier to parse with the < > groupings, especially
with the right-hand markup syntax as "\RH #2 " (space at the end required) )
Thanks all,
Jim Tisdall
\version "2.18.2"
\language "english"
\score {
\new StaffGroup <<
\new Staff {
\language "english"
\clef "treble_8"
#(define RH rightHandFinger)
\new Voice \with {
\remove "Note_heads_engraver"
\consists "Completion_heads_engraver" completionUnit = #(ly:make-moment
1/2)
\remove "Rest_engraver"
\consists "Completion_rest_engraver" completionUnit = #(ly:make-moment 1/2)
}
{
%% (guitar music)
%%
%% With "Completion_heads_engraver",
%% ties across the bar line or the "moment"
%% generate repeats of markings for:
%% bow, left-hand finger, circled string,
%% and right-hand "p"
%%
<c\6\downbow-4\RH #1 >8
r4
<d\5\downbow-1\RH #1 >
<d\5\downbow-1\RH #1 >
<d\5\downbow-1\RH #1 >
<e\upbow-3\RH #1 >
<f\downbow-4\RH #1 >
}
}
\new Staff {
\language "english"
\clef "treble_8"
#(define RH rightHandFinger)
\new Voice \with {
\remove "Note_heads_engraver"
\consists "Completion_heads_engraver" completionUnit = #(ly:make-moment
1/2)
\remove "Rest_engraver"
\consists "Completion_rest_engraver" completionUnit = #(ly:make-moment 1/2)
}
{
%%
%% The same as before but notes not grouped
%% with the < > symbols.
%% Bow and left-hand fingers now correct,
%% but still generate repeated circled string
%% and right-hand "p" markings
%%
c8\6\downbow-4\RH #1
r4
d\5\downbow-1\RH #1
d\5\downbow-1\RH #1
d\5\downbow-1\RH #1
e\upbow-3\RH #1
f\downbow-4\RH #1
}
}
\new Staff {
\language "english"
\clef "treble_8"
#(define RH rightHandFinger)
\new Voice {
%%
%% Without "Completion_heads_engraver",
%% the markings are correct and are not repeated across bar lines
%% (tie across bar must be explictly specified)
%%
c8\6\downbow-4\RH #1
r4
d\5\downbow-1\RH #1
d\5\downbow-1\RH #1
d8\5\downbow-1\RH #1
~
d8
e4\upbow-3\RH #1
f\downbow-4\RH #1
}
}
\layout { }
}
a.png
Description: PNG image
a.ly
Description: Text document
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Completion_heads_engraver and repeated marks,
Jim Tisdall <=