[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: New LilyPond tutorial
From: |
Janek Warchoł |
Subject: |
Re: New LilyPond tutorial |
Date: |
Wed, 24 Aug 2011 12:33:53 +0200 |
2011/8/24 Reinhold Kainhofer <address@hidden>:
> 2) Resetting the tie direction to the default in rightOne is much simpler than
> you thought. In particular, \voiceOne simply sets (i.e. does the same as
> \override) the 'direction property of several grobs, including Tie.
> So, to get the oneVoice-behaviour, all you have to do is to revert the Tie's
> 'direction property to the default:
>
> tweakSix = {
> % Simulate \oneVoice style ties
> \once \revert Tie #'direction
> }
>
> <a a'>4 <b b'> \tweakSix <cis cis'>~ q <d d'>
>
> Note that now the \tweakSix has to be placed right before the tie's start,
> which is what one would intuitively expect.
Another way is to write ties inside the chord and set lower tie's direction.
\relative c'' { \voiceOne <a a'>4 <b b'> <cis_~ cis'~> q <d d'> }
I think it's the best way of doing this because:
- it is more structurally correct than tie-configuration (won't break
when music is transposed, and you don't have to care for correct upper
tie positioning)
- it is shorter than reverting tie direction.
> 4) Thanks for tellung us about the tupletSpannerDuration... I wasn't aware of
> that and always copied dozens of "} \times 2/3 {" strings when I wrote some
> string ensemble works... This makes life way easier!
Somehow i don't like this solution...
I wrote a small scheme function that could be used when the triplets
are simple (i.e. consisting of three notes). surprisingly, it even
supports chords, dynamics and articulations!
tri =
#(define-music-function
(parser location noteI noteII noteIII)
(ly:music? ly:music? ly:music?)
#{
\times 2/3 {
$noteI
$noteII
$noteIII
}
#})
\relative c'' {
\key e \major
\time 3/16
r16 r \tri <a cis>32 ( b a
|
\tri fis-> dis cis \tri a fis dis \tri cis\f dis fis
|
\tri a-> cis dis \tri fis \< a cis \tri dis fis b\f )
}
Feel free to add it to LSR and anywhere you'd like.
cheers,
Janek
- Re: New LilyPond tutorial, (continued)
Re: New LilyPond tutorial, Mike Solomon, 2011/08/24
Re: New LilyPond tutorial, Henning Hraban Ramm, 2011/08/24
Re: New LilyPond tutorial, Reinhold Kainhofer, 2011/08/24