Re: Letters as note heads

2019-01-08 Thread Gloops
David Kastrup wrote
> Aaron Hill <

> lilypond@

> > writes:
> 
>> On 2019-01-07 6:37 am, Gloops wrote:
>>> Hello!
>>> I am also interested in this code, but is it possible to have a
>>> "list-ref"
>>> running on 12 rather than 7,
>>> and remove the original alterations?
>>> Do you believe that possible?
>>> Thank you for all the help that everyone brings.
>>> Musically
>>>
>>> \relative c' {
>>>\override NoteHead.stencil = #(lambda (grob)
>>>  (let* ((cause (ly:grob-property grob 'cause))
>>> (pitch (ly:event-property cause 'pitch))
>>> (notenames '("C" "C+" "D" "D+" "E" "F" "F+" "G" "G+" "A"
>>> "A+"
>>> "B"))
>>> (notename (list-ref notenames (ly:pitch-notename pitch
>>>(grob-interpret-markup grob #{ \markup
>>>  \halign #0 \vcenter \fontsize #-2 \sans \bold $notename #})))
>>>\hide Stem
>>>c4 cis d dis e f fis g gis a ais b
>>> }
>>
>> ly:pitch-notename returns a value from 0 to 6.  You need to use
>> ly:pitch-alteration to retrieve the information about accidentals.  It
>> will be a rational like -1/2 or 1/2 (for flat and sharp), but possibly
>> other values if you are doing microtonal work.  I recommend using an
>> association-list:
> 
> If he is only interested in the semitone distance, ly:pitch-semitones
> will deliver a numeric value based on 12 semitones per octave.  Of
> course, you can no longer distinguish cis and des then.
> 
> -- 
> David Kastrup
> 
> ___
> lilypond-user mailing list

> lilypond-user@

> https://lists.gnu.org/mailman/listinfo/lilypond-user

Hello !
Indeed it's what I wanted "ly: pitch-semitones" but there is a mistake at
the change of octave ...
Musically

%Good
\relative c' { 
   \override NoteHead.stencil = #(lambda (grob) 
 (let* ((cause (ly:grob-property grob 'cause)) 
(pitch (ly:event-property cause 'pitch)) 
(notenames '("C" "C+" "D" "D+" "E" "F" "F+" "G" "G+" "A" "A+" 
"B")) 
(notename (list-ref notenames (ly:pitch-semitones pitch 
   (grob-interpret-markup grob #{ \markup 
 \halign #0 \vcenter \fontsize #-2 \sans \bold $notename #}))) 
   \hide Stem 
   c4 cis d dis e f fis g gis a ais b
} 

%No good
\relative c' { 
   \override NoteHead.stencil = #(lambda (grob) 
 (let* ((cause (ly:grob-property grob 'cause)) 
(pitch (ly:event-property cause 'pitch)) 
(notenames '("C" "C+" "D" "D+" "E" "F" "F+" "G" "G+" "A" "A+" 
"B")) 
(notename (list-ref notenames (ly:pitch-semitones pitch 
   (grob-interpret-markup grob #{ \markup 
 \halign #0 \vcenter \fontsize #-2 \sans \bold $notename #}))) 
   \hide Stem 
   c4 cis d dis e f fis g gis a ais b c
} 




--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Letters as note heads

2019-01-08 Thread Aaron Hill

On 2019-01-08 12:24 am, Gloops wrote:
Indeed it's what I wanted "ly: pitch-semitones" but there is a mistake 
at

the change of octave …

[ . . . ]

%No good
\relative c' {
   \override NoteHead.stencil = #(lambda (grob)
 (let* ((cause (ly:grob-property grob 'cause))
(pitch (ly:event-property cause 'pitch))
(notenames '("C" "C+" "D" "D+" "E" "F" "F+" "G" "G+" "A" 
"A+"

"B"))
(notename (list-ref notenames (ly:pitch-semitones pitch
   (grob-interpret-markup grob #{ \markup
 \halign #0 \vcenter \fontsize #-2 \sans \bold $notename #})))
   \hide Stem
   c4 cis d dis e f fis g gis a ais b c
}


The output from LilyPond exactly explains the issue:


In procedure list-ref in expression
  (list-ref notenames (ly:pitch-semitones pitch)):
Argument 2 out of range: 12


ly:pitch-semitones is returning 12 as opposed to 0.  I'm not sure why 
this is expected behavior, but a simple modulus operation would be good 
enough to patch it:


(modulo (ly:pitch-semitones pitch) 12)

By the way, you should remove the "\halign #0" as it overly compresses 
the spacing on the left side of a note, resulting in uneven spacing of 
notes within the measure.



-- Aaron Hill

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Letters as note heads

2019-01-08 Thread Gloops
Thanks a lot Aaron and David it works perfectly
Gilles



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Ambitus per voice and Ez_numbers_engraver

2019-01-08 Thread Gloops
Hello!
Ambitus by voice and Ez_numbers_engraver can not work together?
Gilles

#(define Ez_numbers_engraver
   (make-engraver
(acknowledgers
 ((note-head-interface engraver grob source-engraver)
  (let* ((context (ly:translator-context engraver))
 (tonic-pitch (ly:context-property context 'tonic))
 (tonic-name (ly:pitch-notename tonic-pitch))
 (grob-pitch
  (ly:event-property (event-cause grob) 'pitch))
 (grob-name (ly:pitch-notename grob-pitch))
 (delta (modulo (- grob-name tonic-name) 7))
 (note-names
  (make-vector 7 (number->string (1+ delta)
(ly:grob-set-property! grob 'note-names note-names))



\layout {
  ragged-right = ##t
  \context {
\Voice
\consists \Ez_numbers_engraver
\consists "Ambitus_engraver"

  }
}



\new Staff <<
  \new Voice \with {

  } \relative c'' {
\override Ambitus.X-offset = #2.0
\voiceOne
\easyHeadsOn
c4 a d e
f1
  }
  \new Voice \with {

  } \relative c' {
\voiceTwo
\easyHeadsOn
es4 f g  as
b1
  }
>>



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Incorrect behaivor of lyrics aligned to nullvoice

2019-01-08 Thread Павел Буданов
Hello everyone!Look for my example from Bach's chorale. Syllable positioning is incorrect where is the second between soprano and alto. Can you help me? sopranonotes = \relative c'' { a g2 f4 }altonotes = \relative c'' { g8[ f] f[( e16 d] e4) c }aligner = \relative c'' { a8[ a] g( g16 g g8 g) f4 }lyric = \lyricmode { Weh -- kla -- gen, }\new Staff<<  \clef mezzosoprano  \new Voice { \voiceOne \sopranonotes }  \new Voice { \voiceTwo \altonotes }  \new NullVoice = "aligner" { \autoBeamOff \aligner }  \new Lyrics \lyricsto "aligner" { \lyric }>>___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


ps to pdf step not working on Mac

2019-01-08 Thread Glug
I've recently installed Lilypond (2.18.2) onto a new Mac (OS X 14.2),  but
have run into a problem at the beginning. Lilypond hangs when rendering a
file at the 'Converting to .pdf.' stage.

I've tried this both with the default test file and scores I've already got,
and both through and without Frescobaldi. I've got it rendering to SVGs as a
workaround, but Frescobaldi's handling of them isn't quite as fluent, so it
would be nice to be able to make PDFs as normal. Any ideas?



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Lilypond not rendering PDF on Mac

2019-01-08 Thread Stephen Wilkinson
Sorry, not sure if I've posted this twice

I've recently installed Lilypond (2.18.2) onto a new Mac (OS X 14.2),  but
have run into a problem at the beginning. Lilypond hangs when rendering a
file at the 'Converting to .pdf.' stage.

I've tried this both with the default test file and scores I've already
got, and both through and without Frescobaldi. I've got it rendering to
SVGs as a workaround, but Frescobaldi's handling of them isn't quite as
fluent, so it would be nice to be able to make PDFs as normal. Any ideas?
 Thanks
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Brand new user trying to use markups

2019-01-08 Thread Sergio Tovich
Hi all, i'am new on LilyPond.

Following this link:
http://lilypond.org/doc/v2.19/Documentation/snippets/winds

Seems really nice, but i getting frustrating because i can't do a tablature
of a simple note:


*Here is the code:*

global = {

\key d \major

\time 4/4

% \relative mode d'

}

\relative d'' {

\global

\textLengthOn

d4^\markup {

\woodwind-diagram

#'tin-whistle

#'((cc . ( one ))

}

}


*The errors:*

/tmp/frescobaldi-ldcvdy2p/tmplkr21_je/Concerning-Hobbits -
Lilypond.ly:42:20: error: GUILE ha señalado un error para la expresión que
comienza aquí

#

'((cc . (one))

Printing keys in verbose mode for: tin-whistle

cc

possibilities for one:

(one oneT one1qT oneT1q one1q one1qT1h one1hT1q one1qT3q one3qT1q one1qTF
oneFT1q one1hT oneT1h one1h one1hT3q one3qT1h one1hTF oneFT1h one3qT oneT3q
one3q one3qTF oneFT3q oneFT oneF)


I don't found more documentation about makups or online help.

Thanks

Monchito
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Brand new user trying to use markups

2019-01-08 Thread Kieren MacMillan
Hi Monchito,

> i getting frustrating because i can't do a tablature of a simple note:

I think you need to have the lh and rh entries as well, even if they’re null:

\version "2.19.80"

global = {
  \key d \major
  \time 4/4
}

\relative d'' {
  \global
  \textLengthOn
  d4^\markup { \woodwind-diagram #'tin-whistle #'((lh . ()) (rh . ()) (cc . 
(one))) }
}

Hope that helps!
Kieren.


Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: i...@kierenmacmillan.info


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Brand new user trying to use markups

2019-01-08 Thread Sergio Tovich
Hi Kieren, was that !

Here is my firt note with markup

[image: imagen.png]

Thank you very much! :D


On Tue, Jan 8, 2019 at 6:20 PM Kieren MacMillan <
kieren_macmil...@sympatico.ca> wrote:

> Hi Monchito,
>
> > i getting frustrating because i can't do a tablature of a simple note:
>
> I think you need to have the lh and rh entries as well, even if they’re
> null:
>
> \version "2.19.80"
>
> global = {
>   \key d \major
>   \time 4/4
> }
>
> \relative d'' {
>   \global
>   \textLengthOn
>   d4^\markup { \woodwind-diagram #'tin-whistle #'((lh . ()) (rh . ()) (cc
> . (one))) }
> }
>
> Hope that helps!
> Kieren.
> 
>
> Kieren MacMillan, composer
> ‣ website: www.kierenmacmillan.info
> ‣ email: i...@kierenmacmillan.info
>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Lilypond not rendering PDF on Mac

2019-01-08 Thread Michael Hendry
> On 8 Jan 2019, at 17:32, Stephen Wilkinson  
> wrote:
> 
> Sorry, not sure if I've posted this twice
> 
> I've recently installed Lilypond (2.18.2) onto a new Mac (OS X 14.2),  but 
> have run into a problem at the beginning. Lilypond hangs when rendering a 
> file at the 'Converting to .pdf.' stage. 
> 
> I've tried this both with the default test file and scores I've already got, 
> and both through and without Frescobaldi. I've got it rendering to SVGs as a 
> workaround, but Frescobaldi's handling of them isn't quite as fluent, so it 
> would be nice to be able to make PDFs as normal. Any ideas? Thanks

Hi, Stephen.

This is all sounding very familiar - I switched to Mac in 2013, and I’m sorry 
to say I solved this or a similar problem without taking note of how I did it.

I think it may have had to do with the installation of (the right version of?) 
GhostScript.

I would suggest you check that you can run Lilypond in command-line mode using 
the “-ps” switch to generate a PostScript file.

See: http://lilypond.org/doc/v2.19/Documentation/usage.pdf

If that works, and inspection of the resulting .ps file with a text editor 
looks credible, the conversion of PS to PDF is your problem.

You should already have a copy of “ps2pdf” installed, along with lilypond.

Try entering...

which ps2pdf

…on the command-line and see what you get.

On my Mac I get:

| => which ps2pdf
ps2pdf is /usr/local/bin/ps2pdf
ps2pdf is /Applications/LilyPond.app/Contents/Resources/bin/ps2pdf
ps2pdf is /usr/local/bin/ps2pdf

I’m not sure how lilypond finds ps2pdf (or equivalent) when it converts a PS to 
a PDF file, but if you have a working copy of ps2pdf on your Mac it needs to be 
in the path that lilypond searches for executables.

Sorry not to be more specific, hope this helps.

Regards,

Michael




___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Lilypond not rendering PDF on Mac

2019-01-08 Thread Tyler Mitchell
On Tue, Jan 08, 2019 at 05:32:11PM +, Stephen Wilkinson wrote:
> Sorry, not sure if I've posted this twice

Yes.

> I've recently installed Lilypond (2.18.2) onto a new Mac (OS X
> 14.2), but have run into a problem at the beginning. Lilypond
> hangs when rendering a file at the 'Converting to .pdf.' stage.

I would try running something like:

$ lilypond -V --ps --pdf test.ly

It will show the command it's using to convert the .ps file to PDF,
eg:

gs -dNOSAFER -dDEVICEWIDTHPOINTS=595.28 -dDEVICEHEIGHTPOINTS=841.89 
-dCompatibilityLevel=1.4 -dNOPAUSE -dBATCH -r1200 -sDEVICE=pdfwrite 
-sOutputFile=./test.pdf -c.setpdfwrite -ftest.ps

And, you'll be left with the original .ps file.

So then you could try that gs command, perhaps even adding -dDEBUG
to see what's going on.

Cheers,
Tyler

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Lilypond not rendering PDF on Mac

2019-01-08 Thread Henning Hraban Ramm
Am 2019-01-08 um 18:32 schrieb Stephen Wilkinson 
:

> I've recently installed Lilypond (2.18.2) onto a new Mac (OS X 14.2),  but 
> have run into a problem at the beginning. Lilypond hangs when rendering a 
> file at the 'Converting to .pdf.' stage. 

Probably you need to add the path to your lilypond and ps2pdf binaries to your 
$PATH.

Depending on where you installed LilyPond.app, it should be something like 
/Applications/LilyPond.app/Contents/Resources/bin/

Add to your ~/.bashrc (or ~/.profile):

export PATH=$PATH:/Applications/LilyPond.app/Contents/Resources/bin/

Greetlings, Hraban
---
fiëé visuëlle
Henning Hraban Ramm
https://www.fiee.net





___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Ambitus per voice and Ez_numbers_engraver

2019-01-08 Thread Thomas Morley
Am Di., 8. Jan. 2019 um 14:51 Uhr schrieb Gloops :
>
> Hello!
> Ambitus by voice and Ez_numbers_engraver can not work together?

The problem: Ez_numbers_engraver works on every grob with a
note-head-interface. NoteHeads and AmbitusNoteHead both have this.
Though, at the time this engraver works the pitch of AmbitusNoteHead
is not yet known, thus an error occurs if one tries to rely on this
pitch.

Suggestion:
Do settings for AmbitusNoteHead after-line-breaking, switched on by
the (new introduced) details.ez-numbers-property and let the other
code do as before.

There's wide room for improvements, ofcourse. Nevertheless here the code:

\version "2.19.82"

#(define Ez_numbers_engraver_harm
   (make-engraver
(acknowledgers
 ((note-head-interface engraver grob source-engraver)
  (let* ((context (ly:translator-context engraver))
 (tonic-pitch (ly:context-property context 'tonic))
 (tonic-name (ly:pitch-notename tonic-pitch)))
(if (grob::has-interface grob 'ambitus-interface)
(let* ((details (ly:grob-property grob 'details))
   (ez-numbers (assoc-get 'ez-numbers details #f)))
  (if ez-numbers
  (ly:grob-set-property! grob 'after-line-breaking
(lambda (grob)
  (let* ((grob-pitch
  (ly:event-property (event-cause grob) 'pitch))
 (grob-name (ly:pitch-notename grob-pitch))
 (delta (modulo (- grob-name tonic-name) 7))
 (note-names
  (make-vector 7 (number->string (1+ delta)
(ly:grob-set-property! grob 'note-names note-names)
(ly:grob-set-property! grob 'stencil
  (note-head::brew-ez-stencil grob))
(ly:grob-set-property! grob 'font-family 'sans)
(ly:grob-set-property! grob 'font-series 'bold))

(let* ((grob-pitch
(ly:event-property (event-cause grob) 'pitch))
   (grob-name (ly:pitch-notename grob-pitch))
   (delta (modulo (- grob-name tonic-name) 7))
   (note-names
(make-vector 7 (number->string (1+ delta)
  (ly:grob-set-property! grob 'note-names note-names

easyAmbitusHeadsOn = \override AmbitusNoteHead.details.ez-numbers = ##t


\layout {
  ragged-right = ##t
  \context {
\Voice
\consists \Ez_numbers_engraver_harm
\consists "Ambitus_engraver"
\easyAmbitusHeadsOn
  }
}

\new Staff <<
  \new Voice \with {

  } \relative c'' {
  \key f \major
\override Ambitus.X-offset = #2.0
\voiceOne
\easyHeadsOn
c4 a d e
f2
  }
  \new Voice \with {

  } \relative c' {
\voiceTwo
\easyHeadsOn
es4 f g  as
b1
  }
>>

HTH,
  Harm

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Help with figured bass

2019-01-08 Thread Mark Probert

Hi, everyone.

I'm having a problem getting LilyPond to do a figured bass. I've read 
the manual, and followed the examples, but I have clearly missed 
something out.

Here is the code I am currently using

---< cut >---
\score {
  \new StaffGroup <<
\new Staff {
  \relative c'' {
\key d \major
a1 | 
d1 \bar "||"
  }
}
\new Staff = "myStaff" {
  \figuremode { <5>1 <8> } 
  \context Staff = "myStaff" {
\relative c' {
  \key d \major
  d1 
  d1
}
  }
}
}
---< cut >---

Which produces the attached. Any ideas on how I can get the figures (or 
the notes) all coming together nicely?

TIA .. mark. (lilypond 2.19.82 / osx 10.13.6)


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Help with figured bass

2019-01-08 Thread Kieren MacMillan
Hi Mark,

Attached, below, is the way I would code your example. You’ll see that I’ve 
separated the definition of the notes (etc.) from the score — I find it much 
easier to parse that way.

Hope this helps!
Kieren.

%%%  SNIPPET BEGINS
\version "2.19.80"

global = {
  \key d \major
  s1*2
}

theNotes_upper = \relative c'' {
  a1
  d1
}

theNotes_lower = \relative c' {
  d1
  d1
}

theFigures = \figuremode {
  <5>1
  <8>1
}

\score {
 \new StaffGroup <<
   \new Staff << \global \theNotes_upper >>
   \new Staff << \global \theNotes_lower >>
   \new FiguredBass \theFigures
 >>
}
%%%  SNIPPET ENDS

> On Jan 8, 2019, at 8:47 PM, Mark Probert  wrote:
> 
> Hi, everyone.
> 
> I'm having a problem getting LilyPond to do a figured bass. I've read 
> the manual, and followed the examples, but I have clearly missed 
> something out.
> 
> Here is the code I am currently using
> 
> ---< cut >---
> \score {
>  \new StaffGroup <<
>\new Staff {
>  \relative c'' {
>\key d \major
>a1 | 
>   d1 \bar "||"
>  }
>}
>\new Staff = "myStaff" {
>  \figuremode { <5>1 <8> } 
>  \context Staff = "myStaff" {
>\relative c' {
>  \key d \major
>  d1 
>  d1
>}
>  }
>}
> }
> ---< cut >---
> 
> Which produces the attached. Any ideas on how I can get the figures (or 
> the notes) all coming together nicely?


Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: i...@kierenmacmillan.info


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Help with figured bass

2019-01-08 Thread Carl Sorensen


On 1/8/19, 6:47 PM, "Mark Probert"  wrote:



Which produces the attached. Any ideas on how I can get the figures (or 
the notes) all coming together nicely?

I'm not sure exactly what you want, but I decided to try this.

Is this what you want?

\score {
  \new StaffGroup <<
\new Staff {
  \relative c'' {
\key d \major
a1 | 
d1 \bar "||"
  }
}
\new Staff = "myStaff" {<<
  \figuremode { <5>1 <8> } 
  \context Staff = "myStaff" {
\relative c' {
  \key d \major
  d1 
  d1
}
  }
>>
}
  >>
}


Carl


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Aleatoric Elements with barlines

2019-01-08 Thread Martin Neubauer
On 07/01/2019 17:29, Reggie wrote:
> Aaron you are a great teacher thank you. Just a couple few more questions
> please. First how did you know that it had to equal 2 full measures? I did
> not see how you arrived. Second please tell me is there any negative effect
> of moving the barline from score to staff I didn't want to do that on a
> global scale because this alignment is just one small section of a "normal"
> composition, but if it's safe? Then ok. Any caveats with moving to staff?
> Thank you. I don't understand the math of 2 full bars.
In situations like these I might use the \scaleToLength function. That
way it's possible to control the horizontal placement of the music in
the different staves by judicious use of spacer rests and still not
having to worry about getting the synchronisation points right between
the staves. Also in that case there would be no need to use
\cadenzaOn/\cadenzaOff.



signature.asc
Description: OpenPGP digital signature
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Help with figured bass

2019-01-08 Thread Mark Probert
Kieren wrote:
> 
> Attached, below, is the way I would code your example. You’ll see 
> that I’ve separated the definition of the notes (etc.) from the 
> score ― I find it much easier to parse that way.
> 
Wow! I didn't know you could do that. Thanks for the tip.

 .. mark.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Help with figured bass

2019-01-08 Thread Mark Probert
Carl wrote:
> 
> I'm not sure exactly what you want, but I decided to try this.
> Is this what you want?
> 
Yes, exactly. As a lilypond newbie I am still coming to terms with
some of the syntactical feeatures of the program, like the << >> 
pairings.

 .. mark.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Incorrect behavior of lyrics aligned to nullvoice

2019-01-08 Thread Tyler Mitchell
On Tue, Jan 08, 2019 at 04:49:21PM +0300, Павел Буданов wrote:
> Hello everyone!
> Look for my example from Bach's chorale. Syllable positioning is incorrect
> where is the second between soprano and alto. Can you help me?
>  
> sopranonotes = \relative c'' { a g2 f4 }
> altonotes = \relative c'' { g8[ f] f[( e16 d] e4) c }
> aligner = \relative c'' { a8[ a] g( g16 g g8 g) f4 }
> lyric = \lyricmode { Weh -- kla -- gen, }
> \new Staff
> <<
>   \clef mezzosoprano
>   \new Voice { \voiceOne \sopranonotes }
>   \new Voice { \voiceTwo \altonotes }
>   \new NullVoice = "aligner" { \autoBeamOff \aligner }
>   \new Lyrics \lyricsto "aligner" { \lyric }
> >>

I'm not exactly sure what positioning you're looking for -- I think
the usual way to handle this case is to put the lyrics with the
Soprano voice.

Maybe you want the left-alignment of the melismas to match the
soprano line, in which case you do:


sopranonotes = \relative c'' { a g2 f4 }
altonotes = \relative c'' { g8[ f] f[( e16 d] e4) c }
aligner = \relative c'' { a8[ a] g( g16 g g8 g) f4 }
lyric = \lyricmode { Weh -- kla -- gen, }
\new Staff
<<
  \clef mezzosoprano
  % Put the "aligner" voice first:
  \new NullVoice = "aligner" { \autoBeamOff \aligner }
  \new Voice { \voiceOne \sopranonotes }
  \new Voice { \voiceTwo \altonotes }
  \new Lyrics \lyricsto "aligner" { \lyric }
>>


The order of the voices is important.

If that's not what you want, please describe what is wrong with the
positioning.

Cheers,
Tyler

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user