lilypond-user
[Top][All Lists]
Advanced

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

Re: Sub-music


From: Reinhold Kainhofer
Subject: Re: Sub-music
Date: Sun, 19 Jun 2011 13:07:14 +0200
User-agent: KMail/1.13.6 (Linux/2.6.38-10-generic; KDE/4.6.4; i686; ; )

Am Sonntag 19 Juni 2011, 12:03:14 schrieb Johan Vromans:
> melody = \relative c' {
>   ... several measures of notes ...
> }
> 
> It is possible to extract a section from this melody, e.g. measure 4 or
> measures 3..15 or something?

The solution really depends on what you want to do with it.

-) If you want to use them as cue notes or quote them in another instrument  
at the same position (e.g. quote the flute solo in the violin, so that the 
violin can play the solo if no flute is available), then you should use 
\addQuote and \cueDuring or \quoteDuring

-) If you want to modify it with scheme or duplicate it or output it at some 
other point, then Kieren already sent you the link to the LSR snippet:
     http://lsr.dsi.unimi.it/LSR/Item?id=542

-) If you want to generate many small PDF or EPS excerpts to include e.g. as 
examples in a publication, you can use clip-regions and the command-line 
option -dclip-systems. See the notation reference, section 3.4.1:
    http://kainhofer.com/~lilypond/Documentation/notation/extracting-
fragments-of-music.html

Of course, there are probably other solutions as well, so it would really help 
to know how you want to use the extracted sections.

Cheers,
Reinhold

-- 
------------------------------------------------------------------
Reinhold Kainhofer, Vienna University of Technology, Austria
email: address@hidden, http://reinhold.kainhofer.com/
 * Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/
 * Edition Kainhofer Music Publishing, http://www.edition-kainhofer.com/
 * LilyPond music typesetting software, http://www.lilypond.org/



reply via email to

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