lilypond-user
[Top][All Lists]
Advanced

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

Re: multiple pieces together


From: Mats Bengtsson
Subject: Re: multiple pieces together
Date: Thu, 04 Aug 2005 16:12:54 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050511

Seriously, if you try something like
\paper{printallheaders = ##t}
\include "file1.ly"
\include "file2.ly"
...

then it should work reasonably well. What you have to do in each
of the included files is to move the \header{...} into the \score{...}
(then you will need the \paper{printallheaders = ##t} within each
.ly file if you also want it to work standalone).

The resulting output will not add any page breaks between the scores
unless you use breakbefore as Graham explained in an earlier email.

Graham has also explained in more or less detail how to use
lilypond-book for the same purpose.

   /Mats

Mats Bengtsson wrote:
Funny naming convention for your files!

An \include "somefile.ly" is completely equivalent to taking the
contents of the file and pasting it into the current file at the
point where you do the \include. If you think for a minute what
the result would be, I'm sure you realize why your attempt doesn't
work. Also, please be more careful about details, for example
- To get all headers printed for every score, you should do
  \paper{printallheaders = ##t} nothing else
- How many backslashes should you have in \include ?

  /Mats


Aaron Mehl wrote:

Wow this is exactly what I am trying to do.


I have 16 songs with titles and lyrics that I want to
put one after the other.

I did:

\version "2.7.2"
 \paper{ printallheaders}


 \score { \include
"/demudi/projectnigun/notation/norai/lily/ly/a4gis8e4.e8gis16gis8.gis4.e8f4.e8d2a4.b8c4b8gis2.a4.b8d16gis4.f8e4e8gis4f8-ra.ly"}
\score { \\include
"/demudi/projectnigun/notation/norai/lily/ly/aab4c8e1fis4g1fis4g8g4e1e4fis8fis4dis1b4cis8e1b4b8e1b4.b8e2a4g1fis4-tb.ly"}

\score { \\include
"/demudi/projectnigun/notation/norai/lily/ly/aab8b2.e2e8e4.d8e4.d8e4.d8cis4.b8ais4.g8b2b8b8fis8e2e4a8a4.g8a4.g8-ra.ly"}


\score { \\include
"/demudi/projectnigun/notation/norai/lily/ly/aab8e2fis16e8.fis16e8.dis4b2dis16b8.g16fis8.e4.b8e8.b16e8e4.e2fis16e8.fis16e8.dis4b4.-tb.ly"}


\score { \\include
"/demudi/projectnigun/notation/norai/lily/ly/aab8g4e8g4e4e8fis16e16dis8b8dis8e2b4fis8fis4dis8e2b4dis8e2b4ais8.cis16b4b8.-mh.ly"}

\score { \\include
"/demudi/projectnigun/notation/norai/lily/ly/aad8d8g8d8b16c16d16e16d4.b8b8d8c8b4.a8g4d8d8g8d8b16c16d16e16d4-zl.ly"}


\score { \\include
"/demudi/projectnigun/notation/norai/lily/ly/aad8d8g8d8b16c16d16e16d4.b8b8d8c8b4.a8g4d8d8g8d8b16c16d16e16d4.-zl.ly"}


\score { \\include
"/demudi/projectnigun/notation/norai/lily/ly/aae2b4.b8c16a8b4.a16b2a4a8b16g8g2b8b4.c16a8dis16d8b4b16b4c32g16g8-ra.ly"}


\score { \\include
"/demudi/projectnigun/notation/norai/lily/ly/aae2g8g2a8a2a4g2g4e2g8.fis16e8g1e2g8g4.a8g2a8a4b8a2a4g2g4-tm.ly"}


\score { \\include
"/demudi/projectnigun/notation/norai/lily/ly/aae2g8g2a8a4.b8a2a4g2g4e2g8.fis16e8.fis16g2.b4e2g8g4.a8g2g4.a8g4.-sc.ly"}


\score { \\include
"/demudi/projectnigun/notation/norai/lily/ly/aae4.dis16e4.dis8e4.fis8g4.b8e4.dis16e4.dis8e4.fis8g4.b8g4e16e8.fis4e2fis4g2b4g2-ra.ly"}


\score { \\include
"/demudi/projectnigun/notation/norai/lily/ly/aae4.fis8g4b16e4.fis8g4e4.fis8g4e1e4.fis8g4g8a4g2e4.fis8g4g8a4g2e4.fis8-ng.ly"}


\score { \\include
"/demudi/projectnigun/notation/norai/lily/ly/aae4e8a4gis8e4gis8.gis16gis4gis8.e16a8d4d8.d16e2.e16a8.gis16a8c8.b16c8b4b8b8.-ra.ly"}


\score { \\include
"/demudi/projectnigun/notation/norai/lily/ly/aae8g8.fis16e4.fis8g8.fis16e4.g16.fis32e16g4b4.b8g4a8a4a8a4b16.a32g16e4g8b4-zl.ly"}


\score { \\include
"/demudi/projectnigun/notation/norai/lily/ly/aafis8e16fis4fis8g4fis8e16fis4fis8fis4fis16fis8g4b8g16fis16e16g8e2.e8g4g8a16fis8fis4-ra.ly"}



I used both \book {} and no book. I tried it with
\include ""  and \score {\include ""}

When I remove the \score{} lily complains it can't
find the files. When I add the \score lily complains
about the headers....

I am attaching two of the files.

Thanks
Aaron
--- Graham Percival <address@hidden> wrote:


On 2-Aug-05, at 2:37 AM, Mats Bengtsson wrote:

Graham Percival wrote:

Basically, the current situation is that I have


A.ly and B.ly.  They

both produce
the output I want; I'm happy with them, etc.  Can


I put A.ly and B.ly

together
so that I get one pdf with pagenumbers?
\include "A.ly"
\include "B.ly"
produce two separate .pdfs;


Are you sure? Do you use \book within A.ly and/or


B.ly?

(discussion moved to -user)

Aha, that was the problem!  -- but all is still not
perfect.


Using \include should be completely equivalent to


cutting and

pasting the code of the two files into a new


common file.

Ok, I can get a.ly and b.ly in the same file, but
now there's problems with
the headers -- the headers in b.ly overwrite the
ones in a.ly, and the
breakbefore doesn't work.  \paper{ printallheaders}
doesn't seem to
work here; it was created with \book{} in mind.

Here's my minimal example:  a and b combined in c. Would it be easier
to change the behavior of headers in a non-\book{}
environment, or easier
to make a different kind of \include{} command (such
that it would work
inside a \book environment) ?


_______________________________________________


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



__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

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

\version "2.7.2"

\header{%Slach Nah Ashamos
title = \markup {\fontsize #4 \override #'(font-name . "dglsystem error")
      {"× ×� סלח × ×� "}
       }
      poet = ""
    composer = ""
    meter = "Andante"
    %done but needs words
}
%done
#(set-global-staff-size 18)

\score {
  {


\set Staff.midiInstrument = "oboe"
    \time 4/4
    \key a \minor
    \clef treble
    r2 r4 r8 e' |
    a'4 gis'8 f' e'4. e'8 |
    gis'16 gis'8. ~ gis'4. e'8 gis' b' |
    \time 3/4 a' gis' f'4. e'8 |
%5
    d'2 r8 e' |
    \time 4/4 a'4. b'8 c''4 b'8 a' |
    \time 3/4 gis'2. |
    \time 4/4 a'4. b'8 c'' b' d''16 c'' b' a' |
    gis'4. f'8 e'4. e'8 |
%10
    e' f' gis'4 f'8 e' f' d' |
    e'2. r4 |
    \time 3/4 r a' gis'8 f' |
    gis'4 gis'4. f'8 |
    e'4 e' e' |
%15
    r e' e' |
    r a' gis'8 f' |
    gis'4 gis'4. f'8 |
    e'4 e' d'16 e' f'8 |
    e'2. |
%20
    \time 3/4 r4 a' gis'8 f' |
    gis'4 gis'4. f'8 |
    e'4 e' d'16 e' f'8 |
    e'4 e' e' |
    r a' gis'8 f' |
%25
    gis'4 gis'4. e'8 |
    b'4 b'8 a' gis' f' |
    gis' f' e'2 |
    a'4. gis'8 a' gis' |
    a'4. gis'8 a' gis' |
%30
    a'4. gis'8 b' a' |
    gis'4. f'8 e' f' |
    r4 gis' a' |
    gis'4. f'8 gis' f' |
    r4 e' e' |
%35
    r e' e' |
    e'2. \bar "|."

}


\addlyrics {
ס לח × ×� _ _ ×� ש מות ו _ פש ×¢×™ ל ×� מ ך לע ון _ _ ב × ×™ ך ×�×™×™ - - - - - - - - - - בל ×™ ×— רה ×–×¢ - מ - ך
                                  }





    \layout {
    }
    \midi {
        \tempo 4 = 72
    }
}


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

\version "2.7.2"

\header{%KiBakoras Roeh Edro
    title = "כבקרת רועה עדרו "
    subtitle = ""
    poet = ""
    composer = ""
    meter = "Andante"
    %done but needs words
}

#(set-global-staff-size 18)

\score {
  {

    \set Staff.midiInstrument = "oboe"
    \time 4/4
    \key c \major
    \clef treble
\key e \minor \repeat volta 2 {
      b4 b dis' c'8 b |
    e'1 |
    fis'4 g' a' fis' |
    g'1 |
%5
    fis'4 g'8 a' g'4 fis' |
    e'1     e'4 fis'8 g' fis'4 e'|
    dis'1|
    b4 b dis' cis'8 dis'|
    e'1  }
    %10
\repeat volta 2 {
         b4 b b'8 a' g' fis' |
    e'1 |
    b'4. b'8 c'' b' e' fis' |
    g' b' a' fis' e'2 |
%15
    a'4 fis' b' fis' |
    g'1 |
    fis'4 g'8 a' g'4 fis'8 e' |
    b'1     e'4 fis'8 g' b'4 a'8 g' |     fis'1|
    fis'8 g' a' c'' b' a' fis' g' |
    e'1 }
\bar "|."

}


\addlyrics {\set stanza = "1. "
×› ב ק _ _ רת רו ×¢×” ×¢ _ דרו מ ×¢ ביר צ ×� × ×• ת _ חת ש ב טו ת חת ש _ ב טו ×› ב ק _ _ רת רו ×¢×” ×¢ _ דרו מ ×¢ ביר צ ×� × ×• ת _ חת ש ב טו ת חת ש _ ב טו

}

\addlyrics {\set stanza = "2. "
כן ת ×¢ ביר ו ת _ _ _ מ × ×” ו ת _ _ _ _ פ קוד × _ _ פש כל _ _ _ ×—×™ × _ _ פש כל _ _ _ ×—×™ כן ת ×¢ ביר ו ת _ _ _ מ × ×” ו ת _ _ _ _ פ קוד × _ _ פש כל _ _ _ ×—×™ × _ _ פש כל _ _ _ ×—×™


}




    \layout {
    }
    \midi {
        \tempo 4 = 72
    }
}



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