Re: delayed turn with accidental

2019-08-02 Thread Pierre Perol-Schneider
Hi Mark,
How about:
\version "2.19.81"

\transpose c d \relative c'' <<
  {
\stemNeutral
\slurNeutral
c4.( d8)
  } \\
  {
s4
\once \set suggestAccidentals = ##t
\once \override AccidentalSuggestion.font-size = -3
\once \override AccidentalSuggestion.script-priority = -1
\once \override AccidentalSuggestion.direction = 1
\single \hideNotes
b8^\turn \noBeam -\tweak font-size #-3 ^\markup\halign #-2 \flat
s8
  }
>>
Cheers,
Pierre

Le sam. 3 août 2019 à 05:47, Mark Stephen Mrotek  a
écrit :

> Hello!
>
>
>
> The following is from 2.19 documents
>
>
>
> \version "2.19.81"
>
>
>
> \relative c'' {
>
>   c2*2/3 ( s2*1/3\turn d4) r
>
>   <<
>
> { c4.( d8) }
>
> { s4 s\turn }
>
>   >>
>
>   \transpose c d \relative c'' <<
>
> { c4. (d8) }
>
>
>
>   s4
>
>   \once \set suggestAccidentals = ##t
>
>   \once \override AccidentalSuggestion.outside-staff-priority = ##f
>
>   \once \override AccidentalSuggestion.avoid-slur = #'inside
>
>   \once \override AccidentalSuggestion.font-size = -3
>
>   \once \override AccidentalSuggestion.script-priority = -1
>
>   \single \hideNotes
>
>   b8-\turn \noBeam
>
>   s8
>
> }
>
>   >>
>
> }
>
>
>
> I want the third example – delayed turn with sharp below – and add a flat
> above.
>
> How do I extract only that portion of the snippet?
>
>
>
> Thank you for your kind attention.
>
>
>
> Mark
> ___
> 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: hide barline when \startStaff coincides with system break

2019-08-02 Thread Pierre Perol-Schneider
Hi Mason,
Here it goes:

\version "2.21.0"

\score {
  <<
\new Staff \relative c' {
  c4 c c c |
  c4 c c c |
  \stopStaff
  s1
  \startStaff
  c4 c c c
  \stopStaff
  s1 \once\omit Staff.BarLine
  \startStaff
  \break
  c4 c c c
}
\new Staff \relative c' {
  \repeat unfold 6 { c4 c c c }
}
  >>
}

Cheers,
Pierre

Le sam. 3 août 2019 à 03:29,  a écrit :

> In bar 6 below, where \startStaff coincides with a system break, a lone
> barline is drawn at the end of the previous system. I would prefer for
> the barline to be omitted in this situation.
>
> In bar 4, where \startStaff does not coincide with a system break, I
> have a slight preference to keep the barline.
>
> Is there an override that would cause a lone barline like that at the
> end of the system to be omitted? I would prefer that the override keep
> the barline before bar 4, but if that's not possible I would accept an
> override such that barlines are never drawn at a \startStaff.
>
> %%% begin MWE %%%
>
> \version "2.21.0"
>
> \score {
>   <<
> \new Staff \relative c' {
>   c4 c c c |
>   c4 c c c |
>   \stopStaff
>   s1
>   \startStaff
>   c4 c c c |
>   \stopStaff
>   s1 |
>   \startStaff
>   \break
>   c4 c c c
> }
> \new Staff \relative c' {
>   \repeat unfold 6 { c4 c c c }
> }
>   >>
> }
>
> %%% end MWE %%%
>
> Thanks,
>
> Mason
>
> ___
> 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


delayed turn with accidental

2019-08-02 Thread Mark Stephen Mrotek
Hello!

 

The following is from 2.19 documents

 

\version "2.19.81"

 

\relative c'' {

  c2*2/3 ( s2*1/3\turn d4) r

  <<

{ c4.( d8) }

{ s4 s\turn }

  >>

  \transpose c d \relative c'' <<

{ c4. (d8) }



  s4

  \once \set suggestAccidentals = ##t

  \once \override AccidentalSuggestion.outside-staff-priority = ##f

  \once \override AccidentalSuggestion.avoid-slur = #'inside

  \once \override AccidentalSuggestion.font-size = -3

  \once \override AccidentalSuggestion.script-priority = -1

  \single \hideNotes

  b8-\turn \noBeam

  s8

}

  >>

}

 

I want the third example - delayed turn with sharp below - and add a flat
above.

How do I extract only that portion of the snippet?

 

Thank you for your kind attention.

 

Mark

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


hide barline when \startStaff coincides with system break

2019-08-02 Thread mason
In bar 6 below, where \startStaff coincides with a system break, a lone
barline is drawn at the end of the previous system. I would prefer for
the barline to be omitted in this situation.

In bar 4, where \startStaff does not coincide with a system break, I
have a slight preference to keep the barline.

Is there an override that would cause a lone barline like that at the
end of the system to be omitted? I would prefer that the override keep
the barline before bar 4, but if that's not possible I would accept an
override such that barlines are never drawn at a \startStaff.

%%% begin MWE %%%

\version "2.21.0"

\score {
  <<
\new Staff \relative c' {
  c4 c c c |
  c4 c c c |
  \stopStaff
  s1
  \startStaff
  c4 c c c |
  \stopStaff
  s1 |
  \startStaff
  \break
  c4 c c c
}
\new Staff \relative c' {
  \repeat unfold 6 { c4 c c c }
}
  >>
}

%%% end MWE %%%

Thanks,

Mason



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


Re: Programing error significance

2019-08-02 Thread Andrew Bernard
If anybody is going to trigger these things, it's me. :-)

Andrew


On Fri, 2 Aug 2019 at 21:09, Karim Haddad  wrote:

> Thanx Pierre, for the feedback. So apparently it's somehow a bug
>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Programing error significance

2019-08-02 Thread Karim Haddad
Thanx Pierre, for the feedback. So apparently it's somehow a bug

Best
K

On Thu, Aug 01, 2019 at 05:43:00PM +0200, Pierre Perol-Schneider wrote:
> Hi Karim,
> See:
> http://lilypond.1069038.n5.nabble.com/Vertical-alignment-programming-error-td182727.html
> HTH,
> Cheers,
> Pierre
> 
> Le jeu. 1 août 2019 à 14:11, Karim Haddad  a écrit :
> 
> > Hello dear all,
> >
> > Have you met this error message, and if yes, what does it really mean ?
> >
> > Interpreting music...
> > Interpreting music...[8][16]
> > Preprocessing graphical objects...
> > programming error: My pure_y_common is a VerticalAlignment, which might
> > contain several staves.
> > continuing, cross fingers
> > 
> > At first, it doesn't seem an error since the score compiles apparently
> > well. Sorry i can't send it because i couldn't have the error in a small
> > example.
> > Some info : it is a Piano score and i am using change Staff command (maybe
> > it is related).
> >
> > And if no, how can i debug my score ? any tips are welcome. I will try to
> > do by removing extra "features" and see. If i can get to know what's
> > causing it, will let you know.
> >
> > Thanx
> > and best to you all
> >
> > --
> > Karim Haddad
> >
> >
> > ___
> > lilypond-user mailing list
> > lilypond-user@gnu.org
> > https://lists.gnu.org/mailman/listinfo/lilypond-user
> >

-- 
Karim Haddad

email   : karim.had...@ircam.fr
webpage : http://karim.haddad.free.fr

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


\unset in paper block

2019-08-02 Thread Werner LEMBERG

I wonder whether it is possible to use \unset in the paper block.  The
use-case is lyluatex, which sets `left-margin'; I want to unset this
value so that lilypond only takes the line width into account to
automatically center it.

In other words, I would like to have

   % from lyluatex
   \paper {
 left-margin = 100\pt
 line-width = 200\pt
   }

   ...

   % user code
   \paper {
 \unset left-margin
   }


Werner

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


Re: Accidentals from note grob

2019-08-02 Thread Nils Nommensen
Alright, it was a mistake on my side. Your solutions work perfectly.

Thanks a lot for your help!

Am Fr., 2. Aug. 2019 um 09:48 Uhr schrieb Urs Liska :

>
>
> Am 2. August 2019 08:43:51 MESZ schrieb Nils Nommensen <
> n.nommen...@gmail.com>:
> >That's exactly the point, I actually need the glyph name.
> >If I am noch mistaken, the alteration attribute also incorporates the
> >information of the key signature. I need to know which accidental is
> >directly in front of the notehead.
> >Therefore, the glyph name is probably what I need. However,  the line
> >
> >(write (ly:grob-property acc 'glyph-name))
> >
> >is not a string, but something else and I'm not really sure how to
> >extract
> >the string part of it. Do you have a suggestion?
>
> I'm somewhat confused now. This expression "is" not a string but the
> result of the "write" procedure, which I "nothing". If you strip off the
> "write" part you have the actual glyph name (and to reiterate: the glyph
> name is "accidentals.natural", not "natural") which you can then work with.
>
> Maybe that's not a string but a symbol (don't have a PC with me to check),
> in which case you could use the (symbol->string sym) procedure to convert
> it to a string.
>
> Urs
>
> >
> >Am Fr., 2. Aug. 2019 um 00:16 Uhr schrieb Thomas Morley <
> >thomasmorle...@gmail.com>:
> >
> >> Am Do., 1. Aug. 2019 um 15:23 Uhr schrieb Nils Nommensen
> >> :
> >> >
> >> > Sorry to bother you with this, but I'm really new to Lilypond and
> >> Scheme. I need a String representation of the name. If I use display
> >on the
> >> return value, I get something like:
> >"accidentals.natural"#".
> >> > How can I extract the "natural" part?
> >>
> >> Well, it's not clear what you want.
> >> "accidentals.natural" _is_ the glyph-name in the Emmentaler-font.
> >> Ofcourse you could do some string-operation on it to get the
> >> "natural", but I have my doubts this would be helpfull.
> >>
> >> Probably you don't want the glyph-name displayed, but rather see
> >> whether there is some (which) alteration:
> >>
> >> \version "2.19.83"
> >>
> >> #(define get-accidental
> >>   (lambda (note)
> >> (let*  ((acc (ly:grob-object note 'accidental-grob))
> >> (alt (ly:grob-property acc 'alteration)))
> >>
> >>   (newline)
> >>   (write
> >> (case alt
> >>   ((-1) "double-flat")
> >>   ((-1/2) "flat")
> >>   ((0) "natural")
> >>   ((1/2) "sharp")
> >>   ((1) "double-sharp")
> >>   (else (format #f "not yet kown alteration: ~a" alt)))
> >>   
> >>
> >> {
> >> \override NoteHead.after-line-breaking = #get-accidental
> >> ceses'
> >> ces'
> >> c'
> >> cis'
> >> cisis'
> >>
> >> ceh'
> >> }
> >>
> >> HTH,
> >>   Harm
> >>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Accidentals from note grob

2019-08-02 Thread Urs Liska


Am 2. August 2019 08:43:51 MESZ schrieb Nils Nommensen :
>That's exactly the point, I actually need the glyph name.
>If I am noch mistaken, the alteration attribute also incorporates the
>information of the key signature. I need to know which accidental is
>directly in front of the notehead.
>Therefore, the glyph name is probably what I need. However,  the line
>
>(write (ly:grob-property acc 'glyph-name))
>
>is not a string, but something else and I'm not really sure how to
>extract
>the string part of it. Do you have a suggestion?

I'm somewhat confused now. This expression "is" not a string but the result of 
the "write" procedure, which I "nothing". If you strip off the "write" part you 
have the actual glyph name (and to reiterate: the glyph name is 
"accidentals.natural", not "natural") which you can then work with.

Maybe that's not a string but a symbol (don't have a PC with me to check), in 
which case you could use the (symbol->string sym) procedure to convert it to a 
string.

Urs

>
>Am Fr., 2. Aug. 2019 um 00:16 Uhr schrieb Thomas Morley <
>thomasmorle...@gmail.com>:
>
>> Am Do., 1. Aug. 2019 um 15:23 Uhr schrieb Nils Nommensen
>> :
>> >
>> > Sorry to bother you with this, but I'm really new to Lilypond and
>> Scheme. I need a String representation of the name. If I use display
>on the
>> return value, I get something like:
>"accidentals.natural"#".
>> > How can I extract the "natural" part?
>>
>> Well, it's not clear what you want.
>> "accidentals.natural" _is_ the glyph-name in the Emmentaler-font.
>> Ofcourse you could do some string-operation on it to get the
>> "natural", but I have my doubts this would be helpfull.
>>
>> Probably you don't want the glyph-name displayed, but rather see
>> whether there is some (which) alteration:
>>
>> \version "2.19.83"
>>
>> #(define get-accidental
>>   (lambda (note)
>> (let*  ((acc (ly:grob-object note 'accidental-grob))
>> (alt (ly:grob-property acc 'alteration)))
>>
>>   (newline)
>>   (write
>> (case alt
>>   ((-1) "double-flat")
>>   ((-1/2) "flat")
>>   ((0) "natural")
>>   ((1/2) "sharp")
>>   ((1) "double-sharp")
>>   (else (format #f "not yet kown alteration: ~a" alt)))
>>   
>>
>> {
>> \override NoteHead.after-line-breaking = #get-accidental
>> ceses'
>> ces'
>> c'
>> cis'
>> cisis'
>>
>> ceh'
>> }
>>
>> HTH,
>>   Harm
>>

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