lilypond-user
[Top][All Lists]
Advanced

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

Re: that acciaccatura issue


From: Thomas Morley
Subject: Re: that acciaccatura issue
Date: Sun, 21 Aug 2016 22:44:31 +0200

2016-08-21 19:59 GMT+02:00 Mark Stephen Mrotek <address@hidden>:
> Simon,
>
> Since I am not a power user as some on this list are, please indicate what I
> should leave out.
> The indication of a Piano Staff?
> The key and time signatures?
> The indication of two explicit voices in the "upper" staff?
> The inclusion of the "\grace s8" in two of the other voices?
> The pitches and durations after the first in each of the voices?
>
> Thank you for your kind consideration.
>
> Mark
>
>
> -----Original Message-----
> From: Simon Albrecht [mailto:address@hidden
> Sent: Sunday, August 21, 2016 10:23 AM
> To: Mark Stephen Mrotek <address@hidden>; address@hidden
> Subject: Re: that acciaccatura issue
>
> On 21.08.2016 19:18, Mark Stephen Mrotek wrote:
>> A minimal example was attached.
>
> No it wasn't. There were lots of stuff in it that have nothing to do with
> the problem. Please (re)read <http://lilypond.org/tiny-examples.html>
> carefully, and do as it says.
>
> Yours, Simon

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% About making the minimal example
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%% to show the problem not needed:

\version "2.18.2"

%% next line
\new PianoStaff <<
%% next line
  \set PianoStaff.instrumentName = #"Var. IX  "
%% Staff-naming
   \new Staff = "upper" <<
     \time 4/4
     \key bes \major
%% Voice-naming
     \new Voice = "soprano"
     { \voiceOne \relative c'' {
     \acciaccatura a8 bes4 %% rest of line: ^. r \acciaccatura a8 bes4^. r |
       }
     }
%% Voice-naming
     \new Voice = "alto"
     { \voiceTwo \relative c'' {
     \grace s8 r4 %% rest of line: \stemDown <d, f> r q |
       }
     }
   >>
%% next 8 lines
   \new Staff = "lower"
   {
     \time 4/4
     \key bes \major
     \clef bass
     \relative c {
%% replace 16th with a 4th note
     \grace s8 r16 bes' (f d bes4) %% rest of line: r16 bes' (f d bes4)
     }
   }
%% next line
  >>
%% next 3lines
    \layout {

   }

%% I.e. remaining

   \new Staff <<
     \time 4/4
     \key bes \major
     \new Voice
     { \voiceOne \relative c'' {
     \acciaccatura a8 bes4
       }
     }
     \new Voice
     { \voiceTwo \relative c'' {
     \grace s8 r4
       }
     }
   >>

%% now we can talk further

%% why repeating relative?
%% relative can be deleted anyway, when using rests only
%% all those braces, why?

%% leads to

\new Staff <<
  \time 4/4
  \key bes \major
  \new Voice { \voiceOne \acciaccatura r8 r4 }
  \new Voice { \voiceTwo \grace s8 r4 }
>>

%% Now we have a small example.
%% Note I don't call it a minimal one, but I will not reduce it further, to
%% avoid making it too abstract.


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Analysis
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%% Now let's see what happens

\new Staff <<
  %% next line _creates_ a voice _without_ grace synchroniziation
  \time 4/4
  %% next line _creates_ a voice _without_ grace synchroniziation
  \key bes \major
  \new Voice { \voiceOne \acciaccatura r8 r4 }
  \new Voice { \voiceTwo \grace s8 r4 }
>>


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% sollutions
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%% Two possibilities to solve the problem:

%% First the worst, do grace synchroniziation in all voices you've created :
\new Staff <<
  \new Voice { \time 4/4 \grace s8 }
  \new Voice { \key bes \major \grace s8 }
  \new Voice { \voiceOne \acciaccatura r8 r4 }
  \new Voice { \voiceTwo \grace s8 r4 }
>>

%% I think we'll agree next one is preferable
%% put \time and \key in a Voice you creates explicitely anyway:

\new Staff <<
  \new Voice { \time 4/4 \key bes \major \voiceOne \acciaccatura r8 r4 }
  \new Voice { \voiceTwo \grace s8 r4 }
>>

%% Which is basically what Simon already suggested

%% Cheers,
%%   Harm



reply via email to

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