lilypond-user
[Top][All Lists]
Advanced

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

Re: Da Capo, Segno, etc.


From: Nicolas Sceaux
Subject: Re: Da Capo, Segno, etc.
Date: Thu, 14 Aug 2003 16:29:25 +0200
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.2 (gnu/linux)

Hi Aaron

I'm not sure you'll find them convenient, as it's 100% scheme, but
nerver mind. I have worked a bit on my scheme utilities for
generating marks.

http://nicolas.sceaux.free.fr/lilypond/scheme-hacks.html
explains what to do to use them your own scores.

Here is a commented example:

------------------------ marks-example.ly ------------------------
% the following lines aim at loading the relevant guile libraries
#((use-modules 
  (ice-9 optargs)
  (lilypond utils)
  (lilypond markups)
  ((lilypond music) :renamer (symbol-prefix-proc 'mus:))
  (lilypond marks))

% here we define where marks appears in the scores
%
% that block means, approximatively:
% s1 \segno s1*2 \fine s1*3 \dalsegno
%
% (segno #:up 2 3 #:down -2 -3) means
% that the segno mark will have a (2 . 3) offset in the
% up context, and a (-2 . -3) offset in the down context.
% all these arguments are optional.

#(def-marks (#:down marksDown #:up marksUp)
  (skip 0 0 1 1)
  (segno #:up 2 3 #:down -2 -3)
  (skip 0 0 2 1)
  (fine #:down 0 -2)
  (skip 0 0 3 1)
  (dalsegno #:down -1 -2))

% two contexts have been created: marksDown and marksUp.
% They can be used in the \score block
\score {
  \context StaffGroup <
    \context Staff = violino <
      \marksUp
      \context Voice = mesnotes {
        \notes \relative c'' { 
          \clef treble 
          c4 c c c | c4 c c c | c4 c c c |
          c4 c c c | c4 c c c | c4 c c c | } } >
    \context Staff = bassi <
      \marksDown
      \context Voice = bass {
        \notes {
          \clef bass
          c4 c c c | c4 c c c | c4 c c c |
          c4 c c c | c4 c c c | c4 c c c | } } > >

    \paper{
        \translator{ \ScoreContext \remove "Mark_engraver" }
        \translator{ \VoiceContext \consists "Mark_engraver" } }
}
------------------------------------------------------------------
http://nicolas.sceaux.free.fr/lilypond/marks.html#examples

Other marks can be defined and used in a `def-marks' block, thanks 
to the `def-signs' and `def-style' utilities.

ns





reply via email to

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