Re: Function to override the stem direction and flag of a single note?

2018-02-26 Thread Torsten Hämmerle
Sorry, in my reply, the sample coding got "auto formatted" because the the
note b after < was interpreted as bold tag and everything went belly-up.
I've now inserted a space between < and b and the LilyPond code became
readable:

\version "2.19.81"

\relative {
  << 
{ \autoBeamOff e''16*2 e e e } \\ 
{ 8 < b e'> } 
  >>
}

\relative {
  << { e''16 s e s e s e s } \\ 
 { 8 < b e'> } 
  >>
}





--
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: Function to override the stem direction and flag of a single note?

2018-02-26 Thread Torsten Hämmerle
Hi Andy, 

You don't need a special function for this, it's all contained in the
standard.

I've constructed a parallel context (with <<...\\...>>) thus having two
voices with opposite stem directions.
The upper noteheads will automatically be merged.

Now for the tricky part (the 16th flags): First, I've set \autoBeamOff in
the upper voice to get single flags.
Secondly, I've entered 16th notes (to get the semiquaver tails), but
rhythmically made quavers out of them by multiplying their value by 2 (16*2
= 8).
As a result, you get the desired 16th flags where practically there are 8th
notes:

\version "2.19.81"

\relative {
  << { \autoBeamOff e''16*2 e e e } \\ 
 { 8 * } >>
}

Another (simpler) way is to insert invisible rests between ordinary
semiquavers:

\relative {
  << { e''16 s e s e s e s } \\ 
 { 8 * } >>
}

But there's a more or less serious drawback (depending on the overall
spacing, the contents of other staves in the system, etc): the note spacing
will be unnaturally widened (with respect to ordinary quaver spacing).

semiquaver-quavers.png
  

HTH,
Torsten






--
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: \pralllUp inside Staff

2018-02-26 Thread Torsten Hämmerle
Hi Francois,

my previous answer probably went amiss, so the 2nd attempt...


Ali Cuota wrote
>  in BWV 572 (trio Sonate d-minor) 

Ah, I guess you mean BWV 527... ;)


Ali Cuota wrote
> he wants a prallUp (well I
> understand it this way) inside the staff (see picture). I tried with
> the 3 ways I found inside the Notation manual (\raise, \super,
> \dir-column) (version 2.18.2) but none works.

\raise and \super are markup commands. 
And,  in this case, by squeezing the prallup below the beam between the
notes, the note spacing will be affected and you should try to set X-offset
and Y-offset of the Script (technically, \prallup is a Script).
In order to move the follow-up notehead a bit further away, you could use
extra-spacing-width.

In my example, I've included the complete measure and added another stave,
just to show the correct rhythmic alignment of the resulting note columns:

 \version "2.18.2"

 \new PianoStaff <<
   \new Staff \relative {
 \key d \minor
 \time 6/8
 d''8 ~ d32 cis b a e'16 g, g8\prall 
 \once\override Script.Y-offset = #-1.5
 \once\override Script.X-offset = #3.2
 \once\override Script.extra-spacing-width = #'(0 . 0.5)
 f\prallup as
   }
   \new Staff \relative {
 \clef bass
 \key d \minor
 \time 6/8
 bes!8 g a d,8. es16 c! d |
   }
 >>

prallup-inside.png
  

HTH,
Torsten



--
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: \pralllUp inside Staff

2018-02-26 Thread Mark Stephen Mrotek
Ali,

Look at
http://lilypond.org/doc/v2.19/Documentation/notation/list-of-articulations
Command you want is \prallup.

Mark

-Original Message-
From: lilypond-user [mailto:lilypond-user-bounces+carsonmark=ca.rr@gnu.org] 
On Behalf Of Ali Cuota
Sent: Monday, February 26, 2018 1:15 PM
To: lilypond-user 
Subject: \pralllUp inside Staff

Hello to all Lyliponders,

I am typesetting different Works from J.S.Bach and now with following question:
 in BWV 572 (trio Sonate d-minor) he wants a prallUp (well I understand it this 
way) inside the staff (see picture). I tried with the 3 ways I found inside the 
Notation manual (\raise, \super,
\dir-column) (version 2.18.2) but none works.

Thanks in advance,

Francois


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


Re: \pralllUp inside Staff

2018-02-26 Thread Torsten Hämmerle
Ali Cuota wrote
> in BWV 572 (trio Sonate d-minor) 

Ah, I guess you mean BWV 527... ;)



Ali Cuota wrote
> he wants a prallUp (well I understand it this way) inside the staff (see
> picture). I tried with
> the 3 ways I found inside the Notation manual (\raise, \super,
> \dir-column) (version 2.18.2) but none works.

\raise, \super etc. are markup commands.
Moreover, by moving the \prallup (Script) in between the notes, the overall
note spacing is affected (in the other two staves, too, of course).
Therefore, you should try to manipulate the Script positioning.
This is possible by specifying X-offset and Y-offset values, and, in order
to move it away from the preceding notehead, you could even use
extra-spacing-width:

 \version "2.18.2"

 \new PianoStaff <<
   \new Staff \relative {
 \key d \minor
 \time 6/8
 d''8 ~ d32 cis b a e'16 g, g8\prall f
 \once\override Script.Y-offset = #-1.5
 \once\override Script.X-offset = #-3.2
 \once\override Script #'extra-spacing-width = #'(-0.6 . 0)
 as\prallup
   }
   \new Staff \relative {
 \clef bass
 \key d \minor
 \time 6/8
 bes!8 g a d,8. es16 c! d |
   }
 >>

I've set the whole measure and included one other stave to show the correct
rhythmic alignment of the resulting note columns.

prallup-inside.png
  

HTH,
Torsten





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


Function to override the stem direction and flag of a single note?

2018-02-26 Thread Andy Chase
Hello all,

Let me establish a bit of context before getting to the meat of my question: I 
mainly use LilyPond for transcribing 5-string banjo music from the 19th and 
early 20th centuries.  Pretty much all of this music is in standard notation, 
but there’s one very banjo-specific convention that I haven’t been able to 
figure out how to replicate using LilyPond.

On 5-string banjo, the 5th string is a short drone starting at the 5th fret 
position; it’s typically always played open with the thumb.  On modern banjos 
in standard tuning, the note is G4.  Because there are several ways to play a 
G4 across the banjo fingerboard, there was a convention used for 5th string 
notes:  They were always set with the stem up, and with a sixteenth note flag 
(regardless of the actual note duration.) 

Here is an example from a piece published in 1882 (In this instance the 5th 
string is actually an E4, as banjos used to be tuned lower.  The clef is 
treble_8.): http://andychase.net/img/banjo_5th_string_notation.png

All of which is to explain why I’m asking whether it is possible to write a 
function to format notes in this way, that is:

1) Stem always pointing up  2) Always using a 16th note flag (regardless of the 
note’s actual duration)

I’ve spent a fair amount of time tinkering with this but I’m a little bit out 
of my depth.  

Thanks for any suggestions!

-Andy



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


\pralllUp inside Staff

2018-02-26 Thread Ali Cuota
Hello to all Lyliponders,

I am typesetting different Works from J.S.Bach and now with following question:
 in BWV 572 (trio Sonate d-minor) he wants a prallUp (well I
understand it this way) inside the staff (see picture). I tried with
the 3 ways I found inside the Notation manual (\raise, \super,
\dir-column) (version 2.18.2) but none works.

Thanks in advance,

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


Re: Inserting a verical space, or an empty line, between two markups attached to a note.

2018-02-26 Thread Torsten Hämmerle
Hi Robert,

The main problem is the baseline-skip within the columns, i.e. the lines of
text are too far apart from each other.
If the default skip is too wide, inserting positive \vspace can only make it
worse (by the way, it's also possible to insert negative \vspace).

The "proper" and most natural way, however, is to adjust the baseline-skip
at will:

Each \column (or \center-column) has a property called baseline-skip that
can be altered by overriding its default value. I've also included two
separate \center-columns and a \line construct in order to be able to shift
the "Rome, Mars 1934" column slightly to the right. Just for demonstration
purposes how these markup "boxes" can be nested and combined.

\version "2.19.81"

\markup {
  \column {
\override #'(baseline-skip . 2.2) \italic \center-column {
  "m. g."
  "dessus"
}
\vspace #0.8
\line {
  \hspace #1.2
  \override #'(baseline-skip . 1.8) \tiny \center-column { 
"Rome"
\bold "Mars 1934"
  }
}
  }
}

mg-dessus.png
  

There are two different baseline-skip values for the two boxes (Rome, Mars
1934 is in smaller type and requires a smaller baseline-skip).

I generally used double qoutes for text because it will be coloured as
verbatim text in my editor and (in this case to prevent "Mars 1934" from
begin split into two lines.

HTH
Torsten

PS: I don't know the original page layout, but probably it would be best to
use tagline for "Rome...", as in Noeck's proposal. But it is always
beneficial to know about baseline-skip, anyway.



--
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: scheme function returning two scores

2018-02-26 Thread Simon Albrecht

On 26.02.2018 08:05, Gianmaria Lari wrote:



On 26 February 2018 at 00:07, Simon Albrecht > wrote:


On 25.02.2018 22:55, Gianmaria Lari wrote:

(I have never reported a bug before. Please let me know if
this is not  the correct procedure).


>

Best, Simon



That's exactly what I was following to make the report. Thank Simon


This might help as well: 


I made a patch to add that to the page linked to above.

Best, Simon

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


Re: Inserting a verical space, or an empty line, between two markups attached to a note.

2018-02-26 Thread Noeck
% Perhaps something like

\header {
  tagline = \markup \center-column { "Rome" "Mars 1934" }
}

{ c''1^\ppp_\markup \italic \center-column { "m. d." "dessus" }

  \override Score.RehearsalMark.direction = #DOWN
  \override Score.RehearsalMark.font-size = -1
  \override Score.RehearsalMark.self-alignment-X = #RIGHT
  \mark \markup \center-column { " Rome " "Mars 1934"}
  \bar "||"
}

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


Re: Inserting a verical space, or an empty line, between two markups attached to a note.

2018-02-26 Thread Noeck
Hi Robert,

the original score looks like "Rome Mars 1934" is not a markup to the
final note (c''), but rather some kind of footer.

I would suggest to engrave it as a footer or as attached to the final
bar line (like a mark).

Best,
Joram

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


Re: Regarding laissez vibrers

2018-02-26 Thread David Kastrup
Robert Murdoch  writes:

> There is currently a bug in LilyPond where repeat ties appended to a
> single note in a chord don't appear, hence why I wrote my message in
> the first place.

That was issue 5220, will be fixed come 2.21.0 and is already so in
current master.

-- 
David Kastrup

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


Re: Regarding laissez vibrers

2018-02-26 Thread Robert Murdoch
There is currently a bug in LilyPond where repeat ties appended to a 
single note in a chord don't appear, hence why I wrote my message in the 
first place.



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


Re: Edition Engraver bug?

2018-02-26 Thread Jan-Peter Voigt

Hi Stefano,

thanks a lot for researching this issue! Sometimes I also noticed "rebel 
ties", but I didn't identified it as an EE bug. So your research file 
looks meaningful.

I hope to have a deeper look into it next week.

Best
Jan-Peter

Am 26.02.2018 um 15:26 schrieb Stefano Troncaro:
Hi everyone! I tried to isolate the issue with Tie directions that I 
posted earlier and I'm fairly confident I've stumbled upon a bug.


Look at the output of this snippet (Sorry for the length, I made it as 
short as I could)


\version  "2.19.80" \language  "english" \include  "oll-core/package.ily" 
\loadPackage  edition-engraver
\addEdition  test
\consistToContexts  #edition-engraver Voice

\layout  { \context  { \Score \time  6/4
 \omit  TimeSignature \omit  Clef } } forceRebelTie =
#(define-music-function  (dir) (ly:dir?)
#{
  \override  Tie.before-line-breaking  =
  #(lambda  (grob)
 (ly:grob-set-property!  grob 'direction dir)) #} )

ovA =\once  \tieDown ovB =\once \override  Tie.direction  = #DOWN ovC =\once  \forceRebelTie  #DOWN formA =\new  Staff  \with  {  instrumentName  ="All V1"  } << \new  Voice  \relative  c''{  \voiceOne  b~  4 4~  4 4~  4} >> formB =\new  Staff  \with  
{  instrumentName  ="1V V1"  } << \new  Voice  \relative  c''{  b~  \voiceOne  4  \oneVoice  4~  \voiceOne  4  \oneVoice  4~  \voiceOne  4  } >> controlA =\new  Staff  \with  {  instrumentName  ="No EE"  } << \new  Voice  \relative  c''{  
\voiceOne  \ovA  b~  4 4~  4 4~  4  } >> controlB =\new  Staff  \with  {  instrumentName  ="No EE"  } << \new  Voice  \relative  c''{  \voiceOne  \ovB  b~  4 4~  4 4~  4  } >> controlC =\new  Staff  \with  {  instrumentName  ="No EE"  } 
<< \new  Voice  \relative  c''{  \voiceOne  \ovC  b~  4 4~  4 4~  4  } >> \markup  "Results with \\tieDown" \editionMod  test1 0  Voice.A\ovA \editionMod  test1 0  Voice.B\ovA \score  { \new  StaffGroup  << \formA \formB \controlA >> } \markup 
 "Results with \\override Tie.direction" \editionMod  test1 0  Voice.D\ovB \editionMod  test1 0  Voice.E\ovB \score  { \new  StaffGroup  << \formA \formB \controlB >> } \markup  "Results with ly:grob-set-property!" \editionMod  test1 0  
Voice.G\ovC \editionMod  test1 0  Voice.H\ovC \score  { \new  StaffGroup  << \formA \formB \controlC >> } \markup  "No overrides (default behavior for comparison)" \score  { \new  StaffGroup  << \formA \formB >> }


When \voiceOne is in full effect, both \once \tieDown and\once 
\override Tie.direction seem to have a permanent effect that kicks in 
after the moment they are used, which is exactly the opposite to what 
they should do (take effect only in the moment they are called and 
revert to the previous behavior after). This is very clear when you 
compare the All V1 Staff with the No EE Staff: the All V1 behaves in 
the exact opposite way.


I have absolutely no idea about why this may be happening, but I'm 
certain that one should expect the EE to achieve the same results that 
manually writing the code in the desired place and moment would.


Hopefully Jan-Peter or someone more knowledgeable than I can look into it!

I hope this "research" can be useful!
Stéfano


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




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


Re: Inserting a verical space, or an empty line, between two markups attached to a note.

2018-02-26 Thread Robert Blackstone
Hi Andrew

Thanks for your advice. 
Your code certainly inserts vertical spaces, but too many and too wide. Setting 
\vspace #0 does not change their width.

I tried several other potential tweaks but in the end I accepted what you can 
see in the left screenshot. Not bad compared with the originalon the right.

  



Thanks again.

Best regards,
Robert

On 26 Feb 2018, at 11:34 , Andrew Bernard  wrote:

> Hi Robert,
> 
> Use \vspace perhaps?
> 
> \markup {
>   \column {
> "m. d."
> dessus
> \vspace #1
> Rome
> Mars 1934
>   }
> }
> 
> Andrew
> 
> 

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


Edition Engraver bug?

2018-02-26 Thread Stefano Troncaro
Hi everyone! I tried to isolate the issue with Tie directions that I posted
earlier and I'm fairly confident I've stumbled upon a bug.

Look at the output of this snippet (Sorry for the length, I made it as
short as I could)

> \version "2.19.80"\language "english"\include 
> "oll-core/package.ily"\loadPackage edition-engraver\addEdition 
> test\consistToContexts #edition-engraver Voice
> \layout {
>   \context {
> \Score
> \time 6/4
> \omit TimeSignature
> \omit Clef
>   }
> }
> forceRebelTie =
> #(define-music-function (dir) (ly:dir?)
>#{
>  \override Tie.before-line-breaking =
>  #(lambda (grob)
> (ly:grob-set-property! grob 'direction dir)) #} )
>
> ovA = \once \tieDownovB = \once \override Tie.direction = #DOWNovC = \once 
> \forceRebelTie #DOWN
> formA = \new Staff \with { instrumentName = "All V1" } <<
>   \new Voice \relative c'' { \voiceOne b~ 4 4~ 4 4~ 4} >>formB = \new Staff 
> \with { instrumentName = "1V V1" } <<
>   \new Voice \relative c'' { b~ \voiceOne 4 \oneVoice 4~ \voiceOne 4 
> \oneVoice 4~ \voiceOne 4 } >>controlA = \new Staff \with { instrumentName = 
> "No EE" } <<
>   \new Voice \relative c'' { \voiceOne \ovA b~ 4 4~ 4 4~ 4 } >>controlB = 
> \new Staff \with { instrumentName = "No EE" } <<
>   \new Voice \relative c'' { \voiceOne \ovB b~ 4 4~ 4 4~ 4 } >>controlC = 
> \new Staff \with { instrumentName = "No EE" } <<
>   \new Voice \relative c'' { \voiceOne \ovC b~ 4 4~ 4 4~ 4 } >>
>
> \markup "Results with \\tieDown"
> \editionMod test 1 0 Voice.A \ovA
> \editionMod test 1 0 Voice.B \ovA\score {
>   \new StaffGroup <<
> \formA
> \formB
> \controlA
>   >>
> }
> \markup "Results with \\override Tie.direction"
> \editionMod test 1 0 Voice.D \ovB
> \editionMod test 1 0 Voice.E \ovB\score {
>   \new StaffGroup <<
> \formA
> \formB
> \controlB
>   >>
> }
> \markup "Results with ly:grob-set-property!"
> \editionMod test 1 0 Voice.G \ovC
> \editionMod test 1 0 Voice.H \ovC\score {
>   \new StaffGroup <<
> \formA
> \formB
> \controlC
>   >>
> }
> \markup "No overrides (default behavior for comparison)"\score {
>   \new StaffGroup <<
> \formA
> \formB
>   >>
> }
>
>
When \voiceOne is in full effect, both \once \tieDown and \once \override
Tie.direction seem to have a permanent effect that kicks in after the
moment they are used, which is exactly the opposite to what they should do
(take effect only in the moment they are called and revert to the previous
behavior after). This is very clear when you compare the All V1 Staff with
the No EE Staff: the All V1 behaves in the exact opposite way.

I have absolutely no idea about why this may be happening, but I'm certain
that one should expect the EE to achieve the same results that manually
writing the code in the desired place and moment would.

Hopefully Jan-Peter or someone more knowledgeable than I can look into it!

I hope this "research" can be useful!
Stéfano
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


RE: Regarding laissez vibrers

2018-02-26 Thread Mark Stephen Mrotek
Robert,

 

Perhaps the use of a “repeat tie?”

 

http://lilypond.org/doc/v2.19/Documentation/notation/writing-rhythms#ties

 

Mark

 

From: lilypond-user [mailto:lilypond-user-bounces+carsonmark=ca.rr@gnu.org] 
On Behalf Of Robert Murdoch
Sent: Monday, February 26, 2018 4:08 AM
To: lilypond-user 
Subject: Regarding laissez vibrers

 

Hi, looking at this post 
 , the 
(currently) broken repeatTie on single notes in a chord can be faked with 
\override LaissezVibrerTie.head-direction = #RIGHT <{note}\laissez Vibrer 
{note}\laissezVibrer>. Unfortunately, I can't figure out how to get two or more 
laissez vibrers facing different directions on the same chord. The log says 
that laissez vibrers in the same chord should all face the same direction, so 
is there another way?

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


Re: edition-engraver error

2018-02-26 Thread Stefano Troncaro
Hi Kieren, this has been fixed already! Just update the Edition Engraver :)

FYI the problem is here

> ((integer? m)(ly:make-moment m/4))
>

m/4 is interpreted as a variable name (that doesn't exist), thus the
"unbound variable" error. I think the line was replaced by (/ m 4).

2018-02-26 9:57 GMT-03:00 kieren_macmillan kieren_macmillan <
kieren_macmil...@sympatico.ca>:

> Hello all,
>
> Trying to use the EE. Running into the following fatal error:
>
> While evaluating arguments to ly:make-moment in expression (ly:make-moment
> m/4):
> /Volumes/KMac
> Seagate/scores/_include/openlilylib/edition-engraver/engine.scm:68:17:
> Unbound
> variable: m/4
> Exited with return code 1.
>
> I've never run into this error before. (But then again, my whole setup is
> changed here: I'm working remotely, and am borrowing a friend's computer.)
>
> That part of the code doesn't LOOK problematic to me:
>
> (define (short-mom? v)(or (integer? v)(fraction? v)(rational?
> v)(ly:moment? v)))
> ; convert to a moment
> (define (short-mom->moment m)
>   (cond
>((integer? m)(ly:make-moment m/4))
>((fraction? m)(ly:make-moment (car m) (cdr m)))
>((rational? m)(ly:make-moment m))
>((ly:moment? m) m)
>(else (ly:make-moment 0/4
> ; predicate for a pair of measure and short-mom
> (define (mom-pair? v)
>   (and (or (pair? v)
>(and (list? v)(= 2 (length v
>(integer? (car v))
>(short-mom? (cadr v
>
> But then again, my Scheme-fu is zero.
>
> Any help would be appreciated.
>
> Thanks!
> Kieren.
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


edition-engraver error

2018-02-26 Thread kieren_macmillan kieren_macmillan
Hello all,

Trying to use the EE. Running into the following fatal error:

While evaluating arguments to ly:make-moment in expression (ly:make-moment m/4):
/Volumes/KMac
Seagate/scores/_include/openlilylib/edition-engraver/engine.scm:68:17: Unbound
variable: m/4
Exited with return code 1.

I've never run into this error before. (But then again, my whole setup is
changed here: I'm working remotely, and am borrowing a friend's computer.)

That part of the code doesn't LOOK problematic to me:

(define (short-mom? v)(or (integer? v)(fraction? v)(rational? v)(ly:moment? v)))
; convert to a moment
(define (short-mom->moment m)
  (cond
   ((integer? m)(ly:make-moment m/4))
   ((fraction? m)(ly:make-moment (car m) (cdr m)))
   ((rational? m)(ly:make-moment m))
   ((ly:moment? m) m)
   (else (ly:make-moment 0/4
; predicate for a pair of measure and short-mom
(define (mom-pair? v)
  (and (or (pair? v)
   (and (list? v)(= 2 (length v
   (integer? (car v))
   (short-mom? (cadr v

But then again, my Scheme-fu is zero.

Any help would be appreciated.

Thanks!
Kieren.

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


Regarding laissez vibrers

2018-02-26 Thread Robert Murdoch
Hi, looking at this post 
, 
the (currently) broken repeatTie on single notes in a chord can be faked 
with \override LaissezVibrerTie.head-direction = #RIGHT <{note}\laissez 
Vibrer {note}\laissezVibrer>. Unfortunately, I can't figure out how to 
get two or more laissez vibrers facing different directions on the same 
chord. The log says that laissez vibrers in the same chord should all 
face the same direction, so is there another way?


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


Re: Inserting a verical space, or an empty line, between two markups attached to a note.

2018-02-26 Thread Andrew Bernard
Hi Robert,

Use \vspace perhaps?

\markup {
  \column {
"m. d."
dessus
\vspace #1
Rome
Mars 1934
  }
}

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


Inserting a verical space, or an empty line, between two markups attached to a note.

2018-02-26 Thread Robert Blackstone
Dear all, 
 A piano piece that I have transcribed has, below its last note in the  lower 
staff, three or four texts, two of which are dynamics, and the other some 
general info about the piece.
In the original it looks like this:

m. d.
dessus

Rome
Mars 1934

How can I insert a vertical space or an empty line between “Rome” and “Mars 
1934”?
As a kind of emergency solution I inserted a dot, so it now looks like this:

m. d.
dessus
.
Rome
Mars 1934

More or less OK, but I would prefer the horizontal space.
Thanks in advance for any advice.

Best regards,
Robert Blackstone


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