[Top][All Lists]

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

Spacer Rests Global Problem Please

From: Doug Walker
Subject: Spacer Rests Global Problem Please
Date: Thu, 26 Apr 2018 14:09:24 +0000

Hi list.

I am new to LilyPond. I am trying to understand spacer rests and global block. I know that you can use the global block to handle things like tempo and time throughout a piece however regardless of what I try it always seems to create an extra unnecessary staff. Of course I tried to combine my global variable with my music variable using << >> but the staff still remains added extra and all my music gets "erased" by the spacer rests. Clearly I am doing something wrong. I have two questions please.

1) Using Frescobaldi's template creation, it automatically separates out the global block into the parts, not the staff. Do I need to delete these and move the global to the score block in order to use correctly? Or how can I add global to existing template code below? I am confused sorry.

2) What is the formula for determining the spacer rest? For example, when I see s8*3, what does that mean? What does each number mean in sx*y?

Thank you for your advice. Here is Frescobaldi's default global block handling. I can't get it to work << >>

\version "2.19.81"

global = {
  \key c \major
  \time 4/4
  \tempo "Fast!"
  s1*4 \tempo "Largo" s1*3 \tempo "Allegro"

cello = \relative c {
  % Music follows here.
  c d e f e d c d e f e d c d e f e d

right = \relative c'' {
  % Music follows here.
  c1 d e f c d e f

left = \relative c' {
  % Music follows here.
   c1 d e f c d e f

celloPart = \new Staff \with {
  instrumentName = "Cello"
} { \clef bass \cello }

pianoPart = \new PianoStaff \with {
  instrumentName = "Piano"
} <<
  \new Staff = "right" \right
  \new Staff = "left" { \clef bass \left }

\score {
  \layout { }

reply via email to

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