[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How to create proper horizontal offsets?
From: |
Marten Visser |
Subject: |
How to create proper horizontal offsets? |
Date: |
Sat, 21 Dec 2013 15:23:12 +0000 (UTC) |
User-agent: |
Loom/3.14 (http://gmane.org/) |
Hi all,
Yesterday, I asked how a custom slur should be coded so that it gets
transposed properly. This was answered immediately, thanks to David
Nalesnik.
There's another related problem I run into when transposing scores, namely
horizontal offsets. In songs this is encountered frequently because the
stanzas may induce deviations from the rhythm.
In the example below one offset is changed when transposing. The log file
shows a warning:
warning: ignoring too many clashing note columns
<<
as'1 \new CueVoice = "SndStanza1" { \shiftNoteRight \stemDown
as2. f8[ f] }>> |
When you leave out the \transpose commmand, this error will not appear.
How could the code be changed that horizontal offsets will always be there?
Thanks,
Marten Visser
---------------------------------------------------------------------
%{
How to transpose horizontal offsets?
%}
\version "2.16.2"
shiftNoteRight = { \once \override NoteColumn #'force-hshift = #1.5 }
myMusic = {
<<as'1 \new CueVoice = "SndStanza1" { \shiftNoteRight \stemDown
as2. f8[ f] }>> |
<<c1 \new CueVoice = "SndStanza2" { \shiftNoteRight \stemDown c2. f8
[ f] }>>
}
\score {
<<
\transpose c e \new Staff {
\key c \minor
\new Voice {\relative c' \myMusic }
}
>>
\layout {}
}
- How to create proper horizontal offsets?,
Marten Visser <=