> > I currently find writing a *SkipToBar* function very helpful for certain
> > things like tempi which only happen occasionally.
...

 A "poor mans" version would be something like:
  << \a \b \c \d ... \music >>
 where
  a = { \tempo 2 = 40 }
  b = { s1*40 \tempo 4 = 120 }
  c = { s1*40 | s2.*12 \tempo 4 = 100 }
 ...
 though you still need to know where \time changes.
 If you write down the \time changes like
  { \tempo 2 = 40 s1*22 | \time 3/2 s1.*13 | \time 4/4 s1*9 | ... }
 you can use that as template for the a, b, c's etc. above.

 An example use is in
  https://aspodata.se/git/musik/JohannPachelbel/magnificat/
 where clefCem.ily gives you the choise of the original clefs/positions
 or with modern clefs/positions. Also in magnificat.ily you can see
 how I deals with positions of tempi, marks and bars and let \music
 just deal with the music.

  https://aspodata.se/git/musik/bin/addnum.pl
 is a program I use to add bar numbers to source lines, not perfect
 but sufficiently good for my own use, which helps when writing down
 and debugging lilypond code. Perhaps we could include something
 similar in the lilypond code base, in scripts.

Regards,
/Karl Hammar



Reply via email to