lilypond-user
[Top][All Lists]
Advanced

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

Re: Question for a new LilyPond user (parts-only editing)


From: Flaming Hakama by Elaine
Subject: Re: Question for a new LilyPond user (parts-only editing)
Date: Tue, 5 Dec 2017 17:42:45 -0800


From: Kieren MacMillan <address@hidden>
To: Ben <address@hidden>
Subject: Re: Question for a new LilyPond user (parts-only editing)
Hi Ben,

> how would you tell a new potential-LilyPond user the easiest way to go about changing some markings or music specifically in the part itself only while not touching it in the main score file?

"Easiest" in the short-term, or the long-term?  ;)

Easiest in the short-term is almost certainly using the \tag system.
Easiest in the long-term — and the method I use exclusively (and love!) — is using the edition-engraver.

Hope this helps!
Kieren.


Here is an illustration of using tags for this purpose.

Note that there are other approaches, even using tags.
This approach uses the \keepWithTag within each \score
to distinguish Part vs Score, PDF vs MIDI, the specific
instrument, and each segment the piece.

%%% The Part %%%%
\score {
        \keepWithTag #'(Part PDF Viola
            SegmentA
            SegmentB
            SegmentC
        ) <<
            \include "staves/parts/viola.ily"
        >>
        \layout { }
    }
}

%%% The Score %%%%
\score {
    \keepWithTag #'(Score PDF
        SegmentA
        SegmentB
        SegmentC
    ) <<
        \include "staffgroups/score/Woodwinds.ily"
        \include "staffgroups/score/Percussion.ily"
        \include "staffgroups/score/Strings.ily"
    >>
    \layout { }
}


Apply part-specifc tweaks by wrapping them in a \tag with the appropriate tag name.

Say you started with this:

violaMusic = \relative c {
    c''8( a ) a'4 e c
    c8( a ) a'4 e c


Here's an example of tagging a slur with a part-specific tweak:

violaMusic = \relative c' {
    c''8( a ) a'4 e c
    \tag #'(Part) {
        \shape #'((0.7 . -0.4) (0.5 . -0.4) (0.3 . -0.3) (0 . -0.2)) Slur
    }
    c8( a ) a'4 e c



That's all there is.



The rehearsal mark tweak would probably occur in a different
place, since you probably define rehearsal marks in a global
variable, not as part of each instrument's music.

In which case, using "Part" as the tag might not be appropriate,
since it would apply to all parts, so it is probably best to use
instrument-specific tags.

You can apply several tags to the same tweak, such as having
this rehearsal  mark adjustment apply to a few instruments:

structure = \relative c {
    \key f \major
    \time 4/4
    \tempo "Allegro"
    \tag #'(Viola Flute Kazoo) {
        \override Score.RehearsalMark #'extra-offset = #'( 0 . 2 )
    }
    \mark \markup { \box A1 }
    s1*4
    \bar "|."
}



> I'm a bit confused because most of the time the part (ily) files I have for
> scores are just barebones: setup a staff, paper, and that's about it.
> There's really no "music" in the parts to edit separately.

Correct: you can wrap in tags the adjustments to music in tags
wherever you have, and wrap structural stuff where you have your
structural stuff.

In the part file (where you have your \score), specify which tags to use.


I've found that for all these cases, using tags is sufficient for me.

As such, I have not yet found the need to use the edition engraver.

Since I tend to compose and engrave at the same time, I often add or
subtract sections, and the edition engraver doesn't excel under those
circumstances.  I'd probably be more inclined to use it if had a way of
specifying things by IDs, rather than by timing. 


HTH,

David Elaine Alt
415 . 341 .4954                                           "Confusion is highly underrated"
address@hidden
skype: flaming_hakama
Producer ~ Composer ~ Instrumentalist
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

reply via email to

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