lilypond-user
[Top][All Lists]
Advanced

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

Re: Ossia fragments in 2.8.2


From: Mats Bengtsson
Subject: Re: Ossia fragments in 2.8.2
Date: Fri, 30 Jun 2006 16:50:39 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.13) Gecko/20060417

Well, you have to do the same trick for all kinds of contexts that
are used in your score (at least, all that print bar lines). So, in your
\layout block you also need a

       \context
       {
           \RhythmicStaff
           \consists "Timing_translator"
           \consists "Default_bar_line_engraver"
           \consists "Repeat_acknowledge_engraver"
       }

Note also that you can replace
       \context { \RemoveEmptyStaffContext }
       \context
       {
         \Staff
          \consists "Timing_translator"
          \consists "Default_bar_line_engraver"
          \consists "Repeat_acknowledge_engraver"
       }

by

       \context
       {
           \RemoveEmptyStaffContext
           \consists "Timing_translator"
           \consists "Default_bar_line_engraver"
           \consists "Repeat_acknowledge_engraver"
       }


  /Mats

Shamus wrote:

Oops, sent this to myself. D'oh!

-------- Original Message --------
\score{
\relative c' <<
\new Staff{ R1 | R1 | \repeat volta 2 { c4 e d f } | \break R1 |
\repeat volta 2 { c4 f e d } | R1 | \break \repeat volta 2 { c4 d e f }
| f e d c | g' f e d | }
\new Staff{ c4 d e f | c d e f | \stopStaff s1 \startStaff c4 d e f |
\stopStaff s1 \startStaff | c4 d e f | \stopStaff s1 \startStaff | c4 d
e f | g4 f e d }
\layout {
\context { \Score
   \remove "Timing_translator"
   \remove "Default_bar_line_engraver"
   \remove "Repeat_acknowledge_engraver"
}
\context {
  \Staff
  \consists "Timing_translator"
  \consists "Default_bar_line_engraver"
  \consists "Repeat_acknowledge_engraver"
}
}
}


Well, it turns out this doesn't work for what I'm trying to do. The
example below is a bit long, but it does show the problem with the
\layout block that the example above does not.

-- Shamus

\version "2.8.2"
\include "english.ly"

%
% Lead vocal
%

LeadVox = \relative c'
{
        \set Voice.autoBeaming = ##f
        \clef G
        \key a \major
        \override Staff.TimeSignature #'style = #'()
        \time 4/4
\override Score.SpacingSpanner #'average-spacing-wishes = ##f

        % Intro

        R1^\markup { \italic { Light ballad } } |   % 1
        R1 |   % 2
        R1 |   % 3
        r2 r4. cs16 [ d ] |   % 4

        \repeat volta 4
        {
                % Verse

\once \override Score.RehearsalMark #'self-alignment-X = #left
\mark \markup { \override #'(font-family . sans) { \box { A } } \small
\italic { Solo 3rd time } }

                e8 [ e e fs ] ~ fs4 fs |   % 5
                e4 d cs r8 cs16 [ d ] |   % 6
                e8 [ e e fs ] ~ fs4 fs |   % 7
                e4 b' a r8 a16 [ b ] |   % 8
                cs2 b4 r8 b16 [ cs ] |   % 9
                d4. cs8 cs4 r8 a16 [ gs ] |   % 10
                fs8 [ gs a a ] ~ a4 b |   % 11
                cs4 gs a2 \bar "||"   % 12
        }
}

LeadVoxText = \lyricmode
{
        Do you know what the heck is go- ing on,
}

%
% Riff/rhythm figures
%

StaffRiffs = \relative c'
{
        \set Voice.autoBeaming = ##f
        \key a \major
        \override Staff.TimeSignature #'style = #'()
        \time 4/4

        % Intro

        <e b>8 [ a, <e' b> a, ] <e' b> [ a, <e' b> a, ] |   % 1
        <e' b>8 [ a, <e' b> a, ] <e' b> [ a, <e' b> a, ] |   % 2
        <e' b>8 [ a, <e' b> a, ] <e' b> [ a, <e' b> a, ] |   % 3
        <e' b>8 [ a, <e' b> a, ] <e' b> [ a, <e' b> a, ] |   % 4
\stopStaff
}

%
% Chord names
%

Chords = \chordmode
{
        % Intro

        a1:sus2 |   % 1
        d1:6.9 |   % 2
        a1:sus2 |   % 3
        d2:6.9 e:sus4 |   % 4

        \repeat volta 4
        {
                % Verse

                a2 d |   % 5
                a4/e e:7 a2 |   % 6
                a2 d |   % 7
                a4/e f:dim7 fs2:m7 |   % 8
                a2/e e |   % 9
                b2:m7 fs:m7 |   % 10
                b2:m7 a/cs |   % 11
                d4:maj7 e a2 \bar "||"   % 12
        }
}


%
% Chord rhythms
%

StaffC = \relative c
{
        \set Voice.autoBeaming = ##f
        \override Staff.TimeSignature #'style = #'()
        \time 4/4
        \override NoteHead #'style = #'slash

        % Intro

        c4 c c c |   % 1
        c4 c c c |   % 2
        c4 c c c |   % 3
        c4 c c c |   % 4

        \repeat volta 4
        {
                % Verse

                c4 c c c |   % 5
                c4 c c c |   % 6
                c4 c c c |   % 7
                c4 c c c |   % 8
                c4 c c c |   % 9
                c4 c c c |   % 10
                c4 c c c |   % 11
                c4 c c c \bar "||"   % 12
        }
}


\score
{
        <<
                <<
                        \new Staff = leadStaff { \new Voice = "lead" \LeadVox }
                        \new Lyrics \lyricsto "lead" \LeadVoxText
                >>

                \new Staff \with
                {
                        \remove "Time_signature_engraver"
                        \remove "Clef_engraver"
%Hmm, removing this screws up the formatting...
%                       \remove "Key_engraver"
                        fontSize = #-3.0
                        \override StaffSymbol #'staff-space = #(magstep -3.0)
                }
                \StaffRiffs

                \new ChoirStaff = "Rhythm"
                <<
                        \new ChordNames = "chords" \Chords
                        \new RhythmicStaff = "chordRhythm" \StaffC
                >>

                \set Score.melismaBusyProperties = #'()
        >>

        \layout
        {
                \context { \RemoveEmptyStaffContext }
                ragged-last = ##t

                \context
                {
                        \Score
                        \remove "Timing_translator"
                        \remove "Default_bar_line_engraver"
                        \remove "Repeat_acknowledge_engraver"
                }
                \context
                {
                        \Staff
                        \consists "Timing_translator"
                        \consists "Default_bar_line_engraver"
                        \consists "Repeat_acknowledge_engraver"
                }
        }
}



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