Re: Breath or articulation mark between two beamed eighth or sixteenth notes

2018-02-23 Thread Kieren MacMillan
Hi Joe,

> I am working on organ music. Lily pond does not allow a breath mark beamed 
> eighth or sixteenth notes.

Not sure what you mean:

\version "2.19"
\layout { ragged-right = ##f line-width = 2\in }
{ c''8[ \breathe f'] }

That seems to work for me. Does it not work for you?

Thanks,
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


Breath or articulation mark between two beamed eighth or sixteenth notes

2018-02-23 Thread Joe Srednicki
Hello: 

I am working on organ music. Lily pond does not allow a breath mark beamed 
eighth or sixteenth notes. Is there any way to override this?

If the documentation covers this issue, please point me to the location.

Thanks.

Joe Srednicki 

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


Lyric centre-on-word / ignore-punctuation bug

2018-02-23 Thread Kieren MacMillan
Hi all,

When a lyric syllable begins with a typographer’s single quote (e.g., ’cause, 
’ll, etc.), the "ignore-punctuation" hack doesn't work. Any hints on how to fix 
this would be appreciated.

Thanks,
Kieren.

%%%  SNIPPET BEGINS
\version "2.19"

#(define space-set
  (list->char-set
(string->list "—.?-;,:“”‘’–— */()[]{}|<>!`~&…")))

#(define (width grob text)
  (let* ((X-extent
   (ly:stencil-extent (grob-interpret-markup grob text) X)))
   (if (interval-empty? X-extent)
   0
   (cdr X-extent

#(define (center-on-word grob)
  (let* ((text (ly:grob-property-data grob 'text))
 (syllable (markup->string text))
 (word-position
   (if (string-skip syllable space-set)
   (string-skip syllable space-set)
   0))
 (word-end
   (if (string-skip-right syllable space-set)
   (+ (string-skip-right syllable space-set) 1)
   (string-length syllable)))
 (preword (substring syllable 0 word-position))
 (word (substring syllable word-position word-end))
 (preword-width (width grob preword))
 (word-width (width grob (if (string-null? syllable) text word)))
 (note-column (ly:grob-parent grob X))
 (note-column-extent (ly:grob-extent note-column note-column X))
 (note-column-width (interval-length note-column-extent)))

  (-
(*
  (/ (- note-column-width word-width) 2)
  (1+ (ly:grob-property-data grob 'self-alignment-X)))
preword-width)))

\layout {
  ragged-right = ##f
  line-width = 3\in
}


\score {
  <<
\new Staff { c''2 2 }
\addlyrics { That -- ’ll }
  >>
  \layout {
\context {
  \Lyrics
  \override LyricText.X-offset = #center-on-word
}
  }
}
}

\score {
  <<
\new Staff { c''2 2 }
\addlyrics { That -- ’ll }
  >>
}
%%%  SNIPPET ENDS


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: Error in a very short snippet

2018-02-23 Thread David Kastrup
Paolo Prete  writes:

> Thanks for your reply.In which date (more or less) do you think that a
> new version with this feature will be released as a Linux binary ?

After the next stable release which still has some pending critical bugs.

-- 
David Kastrup

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


Re: Error in a very short snippet

2018-02-23 Thread Paolo Prete
Thanks for your reply.In which date (more or less) do you think that a new 
version with this feature will be released as a Linux binary ? 

Il Venerdì 23 Febbraio 2018 23:09, David Kastrup  ha scritto:
 

 Paolo Prete  writes:

> Hi,what's wrong in the snippet below and how can I fix it?It compiles
> if I remove the tie ~ from the variable, but I need this tie...
>
> x = c'~
>  {    \x\mp }

Without the tie, x is just the pitch c' and nothing else.  With the tie,
it is a c' note event (a quarter if no other notes with different length
are encountered before) with a tie.  You cannot add further
articulations to a finished note event.

Unless you use current master where this would actually work.

-- 
David Kastrup

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


Re: Error in a very short snippet

2018-02-23 Thread David Kastrup
Paolo Prete  writes:

> Hi,what's wrong in the snippet below and how can I fix it?It compiles
> if I remove the tie ~ from the variable, but I need this tie...
>
> x = c'~
>  {    \x\mp }

Without the tie, x is just the pitch c' and nothing else.  With the tie,
it is a c' note event (a quarter if no other notes with different length
are encountered before) with a tie.  You cannot add further
articulations to a finished note event.

Unless you use current master where this would actually work.

-- 
David Kastrup

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


Error in a very short snippet

2018-02-23 Thread Paolo Prete
Hi,what's wrong in the snippet below and how can I fix it?It compiles if I 
remove the tie ~ from the variable, but I need this tie...

x = c'~
 {    \x\mp }
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Override duration of note

2018-02-23 Thread Kieren MacMillan
Hi Joel,

> Perhaps a link to what the * scaling notation means might be added to its use 
> in
> 

That's not a bad idea!

Thanks,
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: Override duration of note

2018-02-23 Thread Joel C. Salomon
On 2018-02-23 3:45 PM, Kieren MacMillan wrote:
> Is there anything that could be written on this page that would make it more 
> clear?
> 

No, that’s clear enough –– when I know to look for it.  Perhaps a link
to what the * scaling notation means might be added to its use in
,
or I might just be atypical in the what I notice and what I miss.

––Joel C. Salomon

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


Re: Override duration of note

2018-02-23 Thread David Kastrup
"Joel C. Salomon"  writes:

> On 2018-02-23 2:55 PM, Kieren MacMillan wrote:
>> \new Staff \relative c'' {
>>   \once \stemDown 2.*5/6 g8
>> }
>
> So *that’s* what the * notation means. I’ve used it for multi-measure
> rests, per the documentation, but I did not understand how it worked.

It just scales the duration without changing the visuals.  Multimeasure
rests actually are untypical here in that they don't have visuals but
just look at the total duration of their length (so for them R1. is just
the same as R1*3/2), but basically all other constructs take their
visuals from the unscaled part.

*2/3 can be used to generate triplets without triplet number.

-- 
David Kastrup

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


Re: Slur after a function

2018-02-23 Thread David Kastrup
Paolo Prete  writes:

> Hello,is there a way to add a slur after the parameters given to \fun
> in the snippet below ?The following code doesn't compile and I wonder
> if I can solve that by using another syntax...
>
> fun = #(define-music-function (parser location num note) (number?
> ly:duration?)#{ c' 4 #})
> \score{ { \fun #1 4 ( d' 4 ) }}

Current master will just accept this syntax.

-- 
David Kastrup

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


Re: Override duration of note

2018-02-23 Thread Kieren MacMillan
Hi Joel,

> So *that’s* what the * notation means. I’ve used it for multi-measure
> rests, per the documentation, but I did not understand how it worked.

Is there anything that could be written on this page that would make it more 
clear?


(I don't *think* this information needs to be moved "earlier" — i.e., into the 
Learning Manual — but maybe I'm wrong?)

Cheers,
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: Override duration of note

2018-02-23 Thread Joel C. Salomon
On 2018-02-23 2:55 PM, Kieren MacMillan wrote:
> \new Staff \relative c'' {
>   \once \stemDown 2.*5/6 g8
> }

So *that’s* what the * notation means. I’ve used it for multi-measure
rests, per the documentation, but I did not understand how it worked.

Thanks!
––Joel C. Salomon

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


Re: Override duration of note

2018-02-23 Thread Kieren MacMillan
Hi Joel,

What about

\new Staff \relative c'' {
  \once \stemDown 2.*5/6 g8
}

?

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


Override duration of note

2018-02-23 Thread Joel C. Salomon
Neighbors,

In setting the attached music, it’s evident that the 2. chord in
bar 4 overlaps with the g8 note at the end of the bar.  And while I’m
able to achieve this

\version "2.19.65"

\new Staff \relative c'' {
  \time 6/8
  <<
{
  s8*5 g8 |
}
\new Voice { \voiceTwo
  2. |
}
  >>
}

(can’t use << {…} \\ {…} >> since I need the g8 note to be in the Voice
where the Lyrics attach to), I would very much like to be able to move
the  chord into the variable where the previous bit of music lives.

To do that, I need to convince LilyPond that what looks like “2.”
actually behaves like “2~q8” (or in 2.19 syntax, “2~8”).

At a guess, the internal ac:setduration function from articulate.ly
should make this possible, but experimenting has not turned up a
successful invocation.

––Joel C. Salomon

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


Edition Engraver and a rebel Tie

2018-02-23 Thread Stefano Troncaro
Hello everyone!

In the attached file there is a Tie whose direction can only be modified
with ly:grob-set-property!. Overrides to Tie.direction and use of \tieDown
seem to fail, and I have no idea why!

The example uses the Edition Engraver, although I don't know if the problem
lies in the EE or in another place.

I'm completely lost. Any ideas?

Thanks in advance for your help!
Stéfano
\version "2.19.80"
\language "english"
\include "oll-core/package.ily"
\loadPackage edition-engraver
\addEdition test
\consistToContexts #edition-engraver Voice

toRH = { \change Staff = "PianoRH" }
toLH = { \change Staff = "PianoLH" }

music = 
\new PianoStaff <<
  \new Staff = "PianoRH" <<
\new Voice \relative c' {
  \time 3/8 \key b \minor
  \voiceOne es8 fs \oneVoice r16 \voiceOne es~
  4 fs8 \bar "||"
}
\new Voice \relative c' {
  \toLH \voiceOne r16  r  r 
  \toRH \voiceTwo r d cs b as cs
}
  >>
  \new Staff = "PianoLH" <<
\new Voice \relative c {
  \clef F \key b \minor
  \voiceTwo d8 bs cs
  \oneVoice r16 \voiceOne b d8 cs
}
  >>
>>


\editionMod test 1 5/16 tiedown.Voice.A {
  \once \tieDown
  \once \override Tie.color = #red }
\score {
  \music
  \header {
piece = "\\tieDown doesn't work"
  }
  \layout {
\context {
  \Score
  \editionID tiedown
}
  }
}


\editionMod test 1 5/16 tiedirection.Voice.A {
  \once \override Tie.direction = #DOWN
  \once \override Tie.color = #red }
\score {
  \music
  \header {
piece = "Overriding Tie.direction doesn't work"
  }
  \layout {
\context {
  \Score
  \editionID tiedirection
}
  }
}


forceRebelTie =
#(define-music-function (dir) (ly:dir?)
   #{
 \override Tie.before-line-breaking =
 #(lambda (grob)
(ly:grob-set-property! grob 'direction dir)) #} )

\editionMod test 1 5/16 blb.Voice.A {
  \once \forceRebelTie #DOWN
  \once \override Tie.color = #red }
\score {
  \music
  \header {
piece = "Overriding Tie.before-line-breaking and setting the property does work"
  }
  \layout {
\context {
  \Score
  \editionID blb
}
  }
}

\editionMod test 1 2/4 testscore.Voice.A \once \tieDown
\editionMod test 2 2/4 testscore.Voice.A \once \override Tie.direction = #DOWN
\editionMod test 3 2/4 testscore.Voice.A \once \forceRebelTie #DOWN
\score {
  \new PianoStaff {
\new Staff {
  \new Voice \relative c'' {
\time 3/4
r2 4~ | 2 4~ | 2 4~ | 2 r4
  }
}
  }
  \header {
piece = "The methods above all work here"
  }
  \layout {
\context {
  \Score
  \editionID testscore
}
  }
}___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Slur after a function

2018-02-23 Thread Paolo Prete
You were faster than light, Simon, thanks ;-) 

Il Venerdì 23 Febbraio 2018 19:12, Simon Albrecht  
ha scritto:
 

 On 23.02.2018 19:02, Paolo Prete wrote:
> The following code doesn't compile and I wonder if I can solve that by 
> using another syntax...

This works:


\version "2.19.80"

fun =
#(define-music-function
   (num note post)
   (number? ly:duration? ly:music?)
   #{ c'4 $post #})

\score {
   {
     \fun #1 4 ( d' 4 )
   }
}
%%%

Best, Simon


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


Re: Slur after a function

2018-02-23 Thread Simon Albrecht

On 23.02.2018 19:02, Paolo Prete wrote:
The following code doesn't compile and I wonder if I can solve that by 
using another syntax...


This works:


\version "2.19.80"

fun =
#(define-music-function
  (num note post)
  (number? ly:duration? ly:music?)
  #{ c'4 $post #})

\score {
  {
    \fun #1 4 ( d' 4 )
  }
}
%%%

Best, Simon

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


Slur after a function

2018-02-23 Thread Paolo Prete
Hello,is there a way to add a slur after the parameters given to \fun in the 
snippet below ?The following code doesn't compile and I wonder if I can solve 
that by using another syntax...

fun = #(define-music-function (parser location num note) (number? 
ly:duration?)#{ c' 4 #})
\score{ { \fun #1 4 ( d' 4 ) }}
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: autoBeam and slurs in tab

2018-02-23 Thread Éric
Thanks for details David.
Yes it's not really a usual beginner wrong-context-use problem.

Another problem (with more consequences) was added to me, by my poor
understanding of the differences between \autoBeamOff and \noBeam !!

Éric



--
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: autoBeam and slurs in tab

2018-02-23 Thread David Kastrup
Éric  writes:

> Ok I understand.
> Thank you very much.

Just to be sure: I remarked that Federico's comment on the autobeaming
problem was wrong.  Which in itself was not entirely accurate since
"autoBeaming" is established at Score and TabStaff level and unless it
is overriden at Voice/TabVoice level (like with the default \autoBeamOn
and \autoBeamOff commands), its value _is_ visible at Voice level as
well.

-- 
David Kastrup

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


Re: autoBeam and slurs in tab

2018-02-23 Thread Éric
Ok I understand.
Thank you very much.
Éric



--
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


ScholarLy and Latex

2018-02-23 Thread Craig Dabelstein
Hi Lilyponders,

I'm having a minor problem with getting my ScholarLy inp file to work with
Latex. The Latex output for each annotation looks like this:

\criticalRemark
   [grob={DynamicText},
grob-location={Can't display grob location yet},
grob-type={DynamicText},
input-file-name={fluteI.ily},
context-id={Flauto 1},
location={/Users//Maximes_Music/Projects/MM0110/Hallager/critical
edition/Parts/../Notes/fluteI.ily 55:2:2},
type={critical-remark},
message={Added missing \lilyDynamics{p}}]
{18}{6}
{Flauto 1}
{DynamicText}

And within my Latex file each entry is displayed with this code:

\noindent
\theAnnotationNo\,)\\
\textit{(#7)}\\
\ifthenelse{\equal{#2}{\value{CurrentMeasure}}}
{}{\textbf{M. #2},
\setcounter{CurrentMeasure}{#2}}%
beat #3\\
#4\\
Affects: #5\\
``#6''}

My problem is that Latex won't display the #6 (the contents of the message
field). It is displaying the quotation marks but just empty space in
between. If I cut and paste the message field and add it to the bottom of
the code it displays perfectly correctly:

\criticalRemark
   [grob={DynamicText},
grob-location={Can't display grob location yet},
grob-type={DynamicText},
input-file-name={fluteI.ily},
context-id={Flauto 1},
location={/Users//Maximes_Music/Projects/MM0110/Hallager/critical
edition/Parts/../Notes/fluteI.ily 55:2:2},
type={critical-remark},
message={Added missing \lilyDynamics{p}}]
{18}{6}
{Flauto 1}
{DynamicText}
{Added missing \lilyDynamics{p}}


Any ideas where I could be going wrong?

Thanks in advance,

Craig


-- 
*Craig Dabelstein*
Maxime's Music
craig.dabelst...@gmail.com
*http://maximesmusic.com *
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: autoBeam and slurs in tab

2018-02-23 Thread David Kastrup
Federico Bruni  writes:

> Il giorno gio 22 feb 2018 alle 23:51, =?iso-8859-1?b?yXJpYw==?=
> <"eric.bellocq"@yahoo.fr> ha scritto:
>> Hello,
>> slurs in polyphonic tab are badly impacted by autoBeam  Off/On
>> Looks related to issue #3542 but I'm not able to understand more.
>
> It seems a context poblem. If you replace \autoBeamOn with this, it
> works again:
>
> %\autoBeamOn
> \set TabStaff.autoBeaming = ##t

That's a noop since the Beam_engraver lives at Voice level.

-- 
David Kastrup

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