lilypond-user
[Top][All Lists]
Advanced

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

Re: How to indicate a set of measures should not be played?


From: Jacques Menu
Subject: Re: How to indicate a set of measures should not be played?
Date: Thu, 19 Jun 2014 21:48:26 +0200

Hello everybody,

It’s impressing how LP offers various angles to tackle my basic problem, thanks to all who answered.

The solution that best fits my needs it the one proposed by David: the original music that is not to be played is placed in a « new Voice » , and zigzags are used to overwrite it in a very explicit manner, leading to the attached result in my case.

Maybe we’ll decide to play those bars in the future, in which case this solution keeps the door open!

I didn’t find an equivalent of a MultiRest.color property, they show up in black, maybe that exists under some other name?

JM


%%%%%%%%%%%
 \version "2.18.2"

\new Staff {
  \clef "bass"
  <<
    \new Voice % the music to be printed but not played
    {
      \temporary\override NoteHead.color = #(rgb-color 0.5 0.5 0.5)
      \temporary\override Rest.color = #(rgb-color 0.5 0.5 0.5)
      c,8 \mf ( [ es8 as8 -> c,8 ] es8 [ as8 -> c,8 es8 ] | % 86
      as8 -> [ c,8 es8 as8 ~ -> ] as4 ) r4 | % 87
      c,8 ( [ es8 as8 -> c,8 ] es8 [ as8 -> c,8 es8 ] | % 88
      as8 -> [ c,8 es8 as8 ~ -> ] as4 ) r4 | % 89
      des,8 \mp ( -> [ f8 as8 -> des,8 ] f8 [ as8 -> des,8 f8 ] |
      \barNumberCheck #90
      as8 -> [ des,8 f8 as8 ~ -> ] as4 ) r4 | % 91
      c,8 ( [ es8 as8 -> c,8 ] es8 [ as8 -> c,8 es8 ] | % 92
      as8 -> [ c,8 es8 as8 ~ -> ] as4 ) r4 es8 \p ( [ g8 bes8 -> es,8 ] g8 [ bes8
      -> es,8 g8  ] | % 94
      bes8 -> [ es,8 g8 bes8 ~ -> ] bes8 ) r8 r4 | % 95
      R1*4 \bar "||" | % 99
      \revert Rest.color
      \revert NoteHead.color
    }

    \new Voice % the zigzags to explicit that the above should not be played
    {
      \repeat unfold 14 {
        s4-\tweak outside-staff-priority ##f
        \tweak dash-fraction 1 \tweak thickness 3 \tweak direction #CENTER
        \tweak style #'zigzag \tweak zigzag-length #2 \tweak zigzag-width 4
        \startTextSpan s4 s4 s4\stopTextSpan
      }
    }
  >>
}
%%%%%%%%%%%


Le 19 juin 2014 à 21:02, Thomas Morley <address@hidden> a écrit :

2014-06-19 20:49 GMT+02:00 Thomas Morley <address@hidden>:
2014-06-19 19:52 GMT+02:00 Thomas Morley <address@hidden>:
2014-06-19 19:38 GMT+02:00 David Kastrup <address@hidden>:
Thomas Morley <address@hidden> writes:

Can't confirm Marc's and Werner's observations.

I successfully ran David's snippet:
On 64-bit Ubuntu 10.04 with
 2.18.2 (released version)
 2.19.8 (released version)
On 32-bit Ubuntu 10.04 (lilydev) with
 2.19.8 (self-compiled)
 2.19.9 (self-compiled from latest master)

Compiled with -DDEBUG or configured using -without-optimizing or
whatever that option was called?

Because assertions are not compiled by default for whatever reason.

--
David Kastrup

I did a simple
 make

Right now I repeat with
 ../configure --disable-optimising
 make

Hi David,

with
 ../configure --disable-optimising
 make
and running your code, I now get it:

GNU LilyPond 2.19.9
Processing `various-tests.ly'
Parsing...
Interpreting music...[8][16][24][32][40]
Preprocessing graphical objects...lilypond:
/home/harm/lilypond-git/flower/include/drul-array.hh:35: T&
Drul_array<T>::at(Direction) [with T = Skyline]: Assertion `d == 1 ||
d == -1' failed.
Aborted

Minimal example triggering the problem:
{ s4-\tweak direction #0 \startTextSpan s\stopTextSpan }

Same while using an override:
{ \override TextSpanner.direction = #0 s4\startTextSpan s\stopTextSpan }

Cheers,
 Harm

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


reply via email to

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