lilypond-user
[Top][All Lists]
Advanced

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

Re: Beginning a piece with tuplets with a grace note or appoggiatura


From: Mats Bengtsson
Subject: Re: Beginning a piece with tuplets with a grace note or appoggiatura
Date: Mon, 03 Oct 2005 14:42:37 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050511

If you read the manual a bit more carefully, you will notice that
\compressMusic works the same way as \times, i.e. that it only
applies to the music expression after the first argument.
In other words, you have to enclose all the music into curly braces.
The simplest solution in your example, is to reuse the already existing
curly braces that you have for \relative c':


staffFlute = \new Staff  {
\time 4/4
\set Staff.timeSignatureFraction = #'(12 . 8)

\set Staff.instrument="Flute"
\set Staff.midiInstrument="flute"
\key bf \major
\clef treble
\relative c'' \compressMusic #'(2 . 3) {

%bar 1
\grace d8 c8.( b16) c8 g'4 ef8 \grace d8 c8.( b16) c8 r r af
%bar 2
g4 af'8 g4 f8 ef( d) c r8 r4
%bar 3
R1.
%bar 4
r4. r4. r4 r8 r8 r8 g'
%bar 5
\grace { g16([ a] } bf4) c,8 c8. d16 e8 \grace g8 f( e) f r r af
%bar 6
g4 e8 c4 bf'8 af( g) f r4 r8
%bar 7
d4. f4. bf, r4 r8
\bar "|."

}

}

(Note also that the full bar rest should read R1. or R1*12/8 since you
are in 12/8.)

  /Mats

Trent Johnston wrote:

Thanks Mats..

I had a look but following the example this doesn't seem to produce anything
except the  12/8 time signature.

In fact changing the compress music doesn't seem to have any effect at all.
The example from the manual seems to work.. so I can't see what's wrong in
the example below...

Windows XP
Lilypond 2.7.10

========================

% Created on Thu Sep 29 15:45:05 EST 2005
\version "2.7"
\header {
}

\include "english.ly"


staffFlute = \new Staff  {
\time 4/4
\set Staff.timeSignatureFraction = #'(12 . 8)
       \compressMusic #'(2 . 3)
\set Staff.instrument="Flute"
\set Staff.midiInstrument="flute"
\key bf \major
\clef treble
\relative c'' {

%bar 1
\grace d8 c8.( b16) c8 g'4 ef8 \grace d8 c8.( b16) c8 r r af
%bar 2
g4 af'8 g4 f8 ef( d) c r8 r4
%bar 3
R1
%bar 4
r4. r4. r4 r8 r8 r8 g'
%bar 5
\grace { g16([ a] } bf4) c,8 c8. d16 e8 \grace g8 f( e) f r r af
%bar 6
g4 e8 c4 bf'8 af( g) f r4 r8
%bar 7
d4. f4. bf, r4 r8
\bar "|."

}

}


\score {
<<
 \staffFlute
>>

\midi {
}

\layout  {
}
}

\paper {
}

========================
----- Original Message ----- From: "Mats Bengtsson" <address@hidden>
To: "Trent Johnston" <address@hidden>
Cc: <address@hidden>
Sent: Friday, September 30, 2005 12:26 AM
Subject: Re: Beginning a piece with tuplets with a grace note or
appoggiatura


In addition to Erik's answer, you may want to take a look at
section "8.4.1 Polymetric notation" in the manual.

 /Mats



Trent Johnston wrote:

Hello again,

I'm currently typesetting a trio sonata by Locatelli...

In one movement the the two flutes are in 12/8 time while the Continuo
part is in Common time.

This is ok I thought I can set the flute parts in tuplets and
fake 12/8 time-signature at the beginning... since essentially this is
what the composer is doing setting the time signature as 12/8 so the
players wouldn't be overwhelmed with triplets everywhere.

But there is a problem with beginning the first note of the system
with either a grace note or appoggiatura. I get the first bar with the
grace or appogiatura but then there seems to be a restart of the
systems and the resest of the music continues.

I get the same problem if change the notes to triplet groups as well
i.e. \times 2/3 {       } etc.

Platform: Windows XP
Lilypond Version: 2.7.10

Is this a bug? or Is there something I need to do?

Regards,

Trent

The code is here...

==================================

% Created on Thu Sep 29 18:19:46 EST 2005
\version "2.7"
tsMarkup = \markup { \override #'(baseline-skip . 0) \number
{\center-align { "12" "8" } } }
\header {
}

\include "english.ly"


staffFlute = \new Staff  {
\time 4/4
\set Staff.instrument="Flute"
\set Staff.midiInstrument="flute"
\key bf \major
\clef treble
\relative c'' {


%bar 1
\appoggiatura d8 \times 8/12 { c8.( b16) c8 g'4 ef8 \appoggiatura d
c8.( b16) c8 r8 r af }
%bar 2
\times 8/12 { g4 af'8 g4 f8 ef( d) c r8 r4 }
%bar 3
R1


\bar "|."
}

}
staffFluteII = \new Staff  {
\time 4/4
\set Staff.instrument="Flute"
\set Staff.midiInstrument="flute"
\key bf \major
\clef treble
\relative c'' {
bar 1-2
R1*2
%bar 3
\times 8/12 { \appoggiatura d8 c8.( b16) c8 g'4 ef8 \appoggiatura d
c8.( b16) c8 r8 r af }

\bar "|."
}

}
staffCello = \new Staff  {
\time 4/4
\set Staff.instrument="Cello"
\set Staff.midiInstrument="cello"
\key bf \major
\clef bass
\relative c' {
%bar 1
c4 bf af8 g af c,
%bar 2
b8 a b g c d ef d
%bar 3
c4 bf af8 g af c
\bar "|."
}

}


\score {
<<

 \staffFlute
 \staffFluteII
 \staffCello
>>

\midi {
}

\layout  {
}
}

\paper {
}

====================================

------------------------------------------------------------------------

_______________________________________________
lilypond-user mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/lilypond-user


--
=============================================
Mats Bengtsson
Signal Processing
Signals, Sensors and Systems
Royal Institute of Technology
SE-100 44  STOCKHOLM
Sweden
Phone: (+46) 8 790 8463
       Fax:   (+46) 8 790 7260
Email: address@hidden
WWW: http://www.s3.kth.se/~mabe
=============================================



--
=============================================
        Mats Bengtsson
        Signal Processing
        Signals, Sensors and Systems
        Royal Institute of Technology
        SE-100 44  STOCKHOLM
        Sweden
        Phone: (+46) 8 790 8463                         
       Fax:   (+46) 8 790 7260
        Email: address@hidden
        WWW: http://www.s3.kth.se/~mabe
=============================================





reply via email to

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