lilypond-user
[Top][All Lists]
Advanced

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

Re: \compressMusic \grace note woes...


From: Mats Bengtsson
Subject: Re: \compressMusic \grace note woes...
Date: Tue, 04 Oct 2005 13:31:00 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050511

The grace notes in all the parts need to have the same duration, which
means that the one in the beginning of Contb should read
\grace s8*2/3
to compensate for the difference in time scales.

  /Mats

Trent Johnston wrote:

Yes it's me again...

Still find this tricky... Looks like the grace note problem with beginning a
score with a tuplet is also a problem with using \compressMusic....

I've put in the blank grace notes in the other parts but it doesn't seem to
help..

Any help or hints appreciated yet again.

Trent...

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

% Created on Thu Sep 29 10:03:17 EST 2005
\version "2.7.10"
\header {
}
#(set-global-staff-size 16)

\include "english.ly"

\paper {
bottommargin = 3\cm
linewidth = 7.12 \in

}

FluteIb = \new Staff  {
\time 4/4
\set Staff.timeSignatureFraction = #'(12 . 8)
\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*12/8
%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 "|."
}}
FluteIIb = \new Staff  {
\time 4/4
\set Staff.timeSignatureFraction = #'(12 . 8)
\set Staff.midiInstrument="flute"
\key bf \major
\clef treble
\relative c''
\compressMusic #'(2 . 3) {

%bar 1-2
\grace s8 R1*12/8*2
%bar 3
\grace d8 c8.( b16) c8 g'4 ef8 \grace d c8.( b16) c8 r r af
%bar 4
g4 af'8 g4 f8 ef( d) c r8 r4
%bar 5
e4. g c, r4 r8
\bar "|."
} }
Contb = \new Staff  {
\time 4/4
\set Staff.midiInstrument="cello"
\key bf \major
\clef bass
\relative c' {
%bar 1
\grace s8 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 4
b8 a b g c d ef c
%bar 5
c'4 bf af8 g af f
\bar "|."
}}



%%MOVEMENT II Largo - Andante
\score {

  \new StaffGroup <<
  \FluteIb
  \FluteIIb
  \Contb >>

\layout  {    }
}

============================================================
----- Original Message ----- From: "Trent Johnston" <address@hidden>
To: "Mats Bengtsson" <address@hidden>
Cc: <address@hidden>
Sent: Tuesday, October 04, 2005 10:24 AM
Subject: \compressMusic


Thanks Mats...

I re-read the section about this and found that the only reference to
\times
was

"The latter is done with \compressMusic, which is similar to \times, but
does not create a tuplet bracket."


To me this doesn't describe very accurately that you use \compressMusic
the
same way as \times but more that it's function output is similar to \times
but no bracket or tuplet number is created. I think the phrase 'similar
to'
is the problem and may it should be changed to:

"The latter is done with \compressMusic, which is entered similar to
\times,
but does not create a tuplet bracket."

Even your reply to me makes more sense of the use of the function

\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.


Thanks again,

Trent



----- Original Message -----
From: "Mats Bengtsson" <address@hidden>
To: "Trent Johnston" <address@hidden>
Cc: <address@hidden>
Sent: Monday, October 03, 2005 10:42 PM
Subject: Re: Beginning a piece with tuplets with a grace note or
appoggiatura


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
=============================================


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



_______________________________________________
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
=============================================





reply via email to

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