lilypond-user
[Top][All Lists]
Advanced

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

Re: Dynamics: cresc not correctly typesetted


From: Mats Bengtsson
Subject: Re: Dynamics: cresc not correctly typesetted
Date: Wed, 21 Jan 2004 11:33:40 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031007

You didn't say that you put your \cresc command within a
\Dynamic context, as it is defined in the piano-dynamics.ly
template (your first email from January 17 was much clearer in
this aspect, but I didn't realize that both these emails were
posted by the same person).

The explanation is very simple; the \cresc command is a macro that,
among others sets properties on the Voice context, such as:
  \property Voice.crescendoText = \markup { \italic "cresc." }
Since you use it in a completely different \context, the settings
will not have any effect.

However, the solution is just as simple, just add the line \alias Voice:
>     \paper {
>    \translator {
>        \type "Engraver_group_engraver"
>        \name Dynamics

% Fool this context to take properties intended for the Voice context:
            \alias Voice

>        \consists "Output_property_engraver"

I'll add it also to the template in the distribution.

   /Mats



Alberto Manuel Brandao Simoes wrote:
Here it goes. If it is not small enough tell me and I'll try to cut some more.

Mats Bengtsson wrote:

Please send (to the list) a small example illustrating the problem and
tell use what LilyPond version you use.

   /Mats

Alberto Manuel Brandão Simões wrote:

basicall, I have
  \cresc s1 s1 s1 \endcresc s1\< s1\!
and cresc is being typeset exactly as it were \< \! :(

Thanks,
Alb

Mats Bengtsson wrote:

I love it. And I just wonder how to put cresc.---- on my music :'(





Have you seen the \cresc and \endcresc commands described in
http://lilypond.org/doc/v2.0/Documentation/user/out-www/lilypond/Dynamics.html#Dynamics

I have two ready to contribute to mutopia, but without that I have a very large < followed by a little other <... thats not correct notation..





Sorry, I don't understand what you mean.

   /Mats



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

\version "2.0.1"
% $Revision: 1.2 $

\header {
    title = "28 melodische Übungsstücke"
    subtitle = "7."
    composer = "Anton Diabelli"
    opus = "Op 149"

}


primoTrioDynamics = \notes {
    s1\p s1 s1 s4 s8\< s2 s8\! s1\f
    s1 s1 s1
    s16\p s16_\markup\bold\italic{dolce} s8 s2.
    s1 s1 s1 \cresc s1 s4 \endcresc s8\< s2 s8\! s1\f s1_\markup{Da Capo al 
fine}
}

primoTrioUp = \notes {
    \time 4/4
    \clef treble
    \key ees \major
    \relative c''' {
        \property Score.OttavaSpanner \override #'padding = #2
        #(set-octavation 1)
        \repeat volta 2 {
            c8-1 r ees-3 r g-5 r f-.-4 ees-.-3
            d-2 r f r g r f-.-4 d-.
            ees-3 r d r c r d-. ees-.
d-2 r g8. g16 g4 g4 c,8-1 r ees8.-3 ees16 g4-5-> f8-. ees-. d r f8. f16 g4-> f8-.-4 d-.
            ees4-3 c8. c16 d4-2 g
            c,-1 c8. c16 c4 r
        }
        \repeat volta 2 {
            ees4-3 ees8. ees16 ees8.( f32 ees) d8-. ees-.
            f4.-4->( g8) f4 r8 ees-3
            d-2-. ees-. f-. ees-. d-. ees-. f-. d-.
            ees4.-3->( f8) g4 r
            g-5 f8. f16 f4 ees8. ees16
            ees4-3 d8. d16 c4 d
            ees-3 d8. c16 d4-2 g8. g16
            c,4-1 c8. c16 c4 r
        }
    }
}

primoTrioDown = \notes {
    \time 4/4
    \clef treble
    \key ees \major
    \relative c'' {
        \repeat volta 2 {
            c8-5 r ees-3 r g-1 r f-.-2 ees-.-3
            d-4 r f r g r f-.-2 d-.
            ees-3 r d r c r d-. ees-.
d-4 r g8. g16 g4 g4 c,8-5 r ees8.-3 ees16 g4-1-> f8-. ees-. d r f8. f16 g4-> f8-.-2 d-.
            ees4-3 c8. c16 d4-4 g
            c,-5 c8. c16 c4 r
        }
        \repeat volta 2 {
            ees4-3 ees8. ees16 ees8.( f32 ees) d8-. ees-.
            f4.-2->( g8) f4 r8 ees-3
            d-4-. ees-. f-. ees-. d-. ees-. f-. d-.
            ees4.-3->( f8) g4 r
            g-1 f8. f16 f4 ees8. ees16
            ees4-3 d8. d16 c4 d
            ees-3 d8. c16 d4-4 g8. g16
            c,4-5 c8. c16 c4 r
        }
    }
}


\score{ \context PianoStaff << \property PianoStaff.instrument = "Primo " \context Staff = up \primoTrioUp
        \context Dynamics = dynamics \primoTrioDynamics
        \context Staff = down \primoTrioDown
    >>

    \paper {
        \translator {
            \type "Engraver_group_engraver"
            \name Dynamics
            \consists "Output_property_engraver"
minimumVerticalExtent = #'(-1 . 1) \consists "Script_engraver"
            \consists "Dynamic_engraver"
            \consists "Text_engraver"
TextScript \override #'font-relative-size = #1
            TextScript \override #'font-shape = #'italic
            DynamicText \override #'extra-offset = #'(0 . 2.0)
            Hairpin \override #'extra-offset = #'(0 . 2.0)
\consists "Skip_event_swallow_translator" \consistsend "Axis_group_engraver"
        }
        \translator {
            \PianoStaffContext
            \accepts Dynamics
            VerticalAlignment \override #'forced-distance = #7
        }
    }
    \header { piece = "Trio." }
}




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

_______________________________________________
Lilypond-user mailing list
address@hidden
http://mail.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]