lilypond-user
[Top][All Lists]
Advanced

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

Re: rhythm marks


From: Jan-Peter Voigt
Subject: Re: rhythm marks
Date: Tue, 26 Oct 2010 14:03:06 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.14) Gecko/20101006 Thunderbird/3.0.9

Hello Ole,

Xavier missed a pair of braces {}. But it is a very interesting example, so I made it compilable in 2.12.3 (stable) - see below. In this snippet I use a rehearsal \mark instead of \tempo, because with \tempo the alignement fails in 2.12.3 ... it is left aligned to the start of notes, not the clef?

Jan-Peter.

--snip--

\version "2.12.3"

rhythmicMark = {
  % align objects on left edge of clef
  \once \override Score.Clef #'break-align-anchor-alignment = #LEFT
  % align Rehearsal Mark on clef
  \once \override Score.RehearsalMark #'break-align-symbols = #'(clef)
  % left align Rehearsal Mark
  \once \override Score.RehearsalMark #'self-alignment-X = #LEFT
  % a mark-markup with score
  \mark \markup \rounded-box {
    \score {
      \new Staff \with {
        drumStyleTable = #percussion-style
        \override StaffSymbol #'line-count = #1
        \override BarLine #'bar-size = #3
        \override Clef #'stencil = ##f
      } {
        \relative b' {
          \time 9/8
          \stemDown
          a8[ c] a8[ c] a8[ c] a8[ c c]
        }
      }
      \layout {
        #(layout-set-staff-size 10)
        % prevent indent on markuped score
        indent = 0
      }
    }
  }
}


\score {
<<
    \new Staff {
      \relative f' {
        \key f \minor
        \time 9/8
        \rhythmicMark % is now a rehearsal mark
        r8 c8 f[ aes] c[ c] bes4 aes8
      }
    }
>>
}

--snip--

On 26.10.2010 13:29, Ole Schmidt wrote:
Hi,

I've just tried to compile the example below and get the following error 
warning:

  »/Users/ole/Desktop/RM.ly« wird verarbeitet
Analysieren...
/Users/ole/Desktop/RM.ly:2:1: Fehler: syntax error, unexpected \once

  \once \override Score.MetronomeMark #'break-align-symbols = #'(clef)
/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/scm/lily.scm:848:21:
 In procedure module-lookup in expression (ly:parse-file file-name):
/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/scm/lily.scm:848:21:
 unbound variable: MetronomeMark


whats wrong?

ole






reply via email to

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