string substitution, transpose, auto-time

2002-06-29 Thread Felipe Massia Pereira

Hello,

I have these 3 questions...

1) what's the best way to use string substitution, I mean something like:

tune = c

soprano = \notes \transpose $tune {...}
alto = \notes \transpose $tune {...}

2) What's the best way to transpose a whole score? Should I put a
\transpose on every expression? Can I do it in the global variable?

3) I read in documentation that I could use addLyrics with \notes instead
of \lyrics. I would use it with an alto voice that has the same timing of
the soprano voice (in fact, all voices have the same timing). Is there a
way so I can type the timing only once? e.g.

soprano = \notes { g2 g8 g8 f8 f8 | ... }
alto = \notes { ees ees ees c c | ... }

tia!

-- 
Felipe Massia Pereira   http://www.ic.unicamp.br/~ra000493
CS MSc Student @ IC-UNICAMP


___
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user



Re: string substitution, transpose, auto-time

2002-06-29 Thread Mats Bengtsson

 Hello,
 
 I have these 3 questions...
 
 1) what's the best way to use string substitution, I mean something like:
 
 tune = c
 
 soprano = \notes \transpose $tune {...}
 alto = \notes \transpose $tune {...}

The problem is that the c in this case is not interpreted
as a string but rather as a pitch. For this specific application
you could probably add an extra pitchname and set it at the
top of the file, but I don't know the exact details of how
to do it at the moment.  However, see the answer to next
question.

 2) What's the best way to transpose a whole score? Should I put a
 \transpose on every expression? Can I do it in the global variable?

You can transpose the full score:
\score{ \notes \transpose d 
  \context Staff = first {...}
  \context Staff = second {...}
  ...
  
}

 3) I read in documentation that I could use addLyrics with \notes instead
 of \lyrics. I would use it with an alto voice that has the same timing of
 the soprano voice (in fact, all voices have the same timing). Is there a
 way so I can type the timing only once? e.g.
 
 soprano = \notes { g2 g8 g8 f8 f8 | ... }
 alto = \notes { ees ees ees c c | ... }

Yes, just put \alto where you normally put the lyrics.

  /Mats


___
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user