Re: Grace note beams won't hide correctly

2019-07-04 Thread Ben

On 7/4/2019 5:50 PM, Aaron Hill wrote:

On 2019-07-04 2:02 pm, Ben wrote:

This is the first time I've encountered the need to hide /grace note/
beams and/or stems. Can someone show me what I am doing wrong?


Here's my attempt, though it may not be the most ideal:


\version "2.19.82"
\language "english"

overlaySlash = #(define-music-function
    (thickness length angle offset)
    (number? number? number? number-pair?)
  #{ \once \override Beam.stencil =
    #(grob-transformer 'stencil (lambda (grob orig)
  (let ((th (* (ly:staff-symbol-line-thickness grob) thickness))
    (x (interval-start (ly:stencil-extent orig X)))
    (y (interval-start (ly:stencil-extent orig Y)))
    (hl (/ length 2)))
    (ly:stencil-add orig
  (ly:stencil-translate
    (ly:stencil-rotate
  (make-line-stencil th (- hl) 0 hl 0)
  angle 0 0)
    (cons (+ x (car offset)) (+ y (cdr offset #})

noStem = \omit Stem

\relative c' {
  \overlaySlash 1.2 7 35 #'(2 . -1)
  \appoggiatura {
    e!8^[ \noStem g! c! fs bf ef
    bf fs c! \undo \noStem e,!]
  }
  \noStem df4
}



-- Aaron Hill


Aaron,

This code works perfectly. Why do you say it's not ideal? It looks spot 
on. Thank you!



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


Re: Grace note beams won't hide correctly

2019-07-04 Thread Ben

On 7/4/2019 5:45 PM, Shane Brandes wrote:

\undo \omit Stem
  That turns it back on.
regards,
Shane

On Thu, Jul 4, 2019 at 5:07 PM Ben  wrote:

Hi all,

This is the first time I've encountered the need to hide grace note beams 
and/or stems. Can someone show me what I am doing wrong?

I'm attaching an image of what I am after.

Thank you!

Here is my code so far:



\version "2.19.82"
\language "english"


\relative c'

%% This hide the beams and stems, but I only want to hide the middle notes.
{
   \omit Beam
   \omit Stem
   \appoggiatura  {
 e!8(^[

 g! c! fs bf ef bf fs c! e,!]
 df4)
   }
}


%% This hide the stems, and it's 99% there, but I can't figure out how to 
finish this with the correct beaming and slash.

\relative c'
{
   \appoggiatura  {
 e!8(^[

 \omit Beam
 \omit Stem
 g! c! fs bf ef bf fs c! e,!]

 df4)
   }

}

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


Hi Shane,

When I try your code suggestion, it does look correct but I have errors 
in my log?


Drawing systems...

programming error: bounds of this piece aren't breakable.

continuing, cross fingers

% code

\relative c'
{
  \appoggiatura  {
    e!8(^[

    \omit Beam
    \omit Stem
    g! c! fs bf ef bf fs c!
    \undo \omit Stem  e,!]

    df4)
  }

}

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


Re: Grace note beams won't hide correctly

2019-07-04 Thread Aaron Hill

On 2019-07-04 2:02 pm, Ben wrote:

This is the first time I've encountered the need to hide /grace note/
beams and/or stems. Can someone show me what I am doing wrong?


Here's my attempt, though it may not be the most ideal:


\version "2.19.82"
\language "english"

overlaySlash = #(define-music-function
(thickness length angle offset)
(number? number? number? number-pair?)
  #{ \once \override Beam.stencil =
#(grob-transformer 'stencil (lambda (grob orig)
  (let ((th (* (ly:staff-symbol-line-thickness grob) thickness))
(x (interval-start (ly:stencil-extent orig X)))
(y (interval-start (ly:stencil-extent orig Y)))
(hl (/ length 2)))
(ly:stencil-add orig
  (ly:stencil-translate
(ly:stencil-rotate
  (make-line-stencil th (- hl) 0 hl 0)
  angle 0 0)
(cons (+ x (car offset)) (+ y (cdr offset #})

noStem = \omit Stem

\relative c' {
  \overlaySlash 1.2 7 35 #'(2 . -1)
  \appoggiatura {
e!8^[ \noStem g! c! fs bf ef
bf fs c! \undo \noStem e,!]
  }
  \noStem df4
}



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


Re: Grace note beams won't hide correctly

2019-07-04 Thread Shane Brandes
\undo \omit Stem
 That turns it back on.
regards,
Shane

On Thu, Jul 4, 2019 at 5:07 PM Ben  wrote:
>
> Hi all,
>
> This is the first time I've encountered the need to hide grace note beams 
> and/or stems. Can someone show me what I am doing wrong?
>
> I'm attaching an image of what I am after.
>
> Thank you!
>
> Here is my code so far:
>
> 
>
> \version "2.19.82"
> \language "english"
>
>
> \relative c'
>
> %% This hide the beams and stems, but I only want to hide the middle notes.
> {
>   \omit Beam
>   \omit Stem
>   \appoggiatura  {
> e!8(^[
>
> g! c! fs bf ef bf fs c! e,!]
> df4)
>   }
> }
>
>
> %% This hide the stems, and it's 99% there, but I can't figure out how to 
> finish this with the correct beaming and slash.
>
> \relative c'
> {
>   \appoggiatura  {
> e!8(^[
>
> \omit Beam
> \omit Stem
> g! c! fs bf ef bf fs c! e,!]
>
> df4)
>   }
>
> }
>
> ___
> 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: longa of two perfect breves under shiftDurations and Completion_heads_engraver

2019-07-04 Thread Graham King
Corrected MWE (it turns out that \shiftDurations is irrelevant; it is the 
dotted breve that is misbehaving):

\version "2.19.82"

{
  \time 3/1
  c'\longa. % should give \breve. ~ \breve.
  \time 3/2
  c'\breve. % works as expected
}

\layout {
  \context {
\Voice
\remove "Note_heads_engraver"
\consists "Completion_heads_engraver"
  }
}


> On 4 Jul 2019, at 20:30, Graham King  wrote:
> 
> Is there a way to make the following MWE generate a dotted breve tied to a 
> dotted breve, rather than breve~semibreve~breve~semibreve ?
> 
> I would prefer not to abandon the use of shiftDurations or state "c'1. ~ 1." 
> if these things are avoidable, for weak reasons to do with my strategies for 
> transcribing mensural notation.
> 
> \version "2.19.82"
> 
> \shiftDurations #-1 #0 {
>  \time 3/1
>  c'\breve.
> }
> 
> \layout {
>  \context {
>\Voice
>\remove "Note_heads_engraver"
>\consists "Completion_heads_engraver"
>  }
> }
> 
> Grateful, as ever, for your kind suggestions...
> 
> -- Graham
> ___
> 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


Grace note beams won't hide correctly

2019-07-04 Thread Ben

Hi all,

This is the first time I've encountered the need to hide /grace note/ 
beams and/or stems. Can someone show me what I am doing wrong?


I'm attaching an image of what I am after.

Thank you!

Here is my code so far:



\version "2.19.82"
\language "english"


\relative c'

%% This hide the beams and stems, but I only want to hide the middle notes.
{
  \omit Beam
  \omit Stem
  \appoggiatura  {
    e!8(^[

    g! c! fs bf ef bf fs c! e,!]
    df4)
  }
}


%% This hide the stems, and it's 99% there, but I can't figure out how 
to finish this with the correct beaming and slash.


\relative c'
{
  \appoggiatura  {
    e!8(^[

    \omit Beam
    \omit Stem
    g! c! fs bf ef bf fs c! e,!]

    df4)
  }

}

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


Re: Are these brackets alongside a staff group possible?

2019-07-04 Thread Ben

On 7/4/2019 1:57 PM, Aaron Hill wrote:

On 2019-07-04 10:01 am, Pierre Perol-Schneider wrote:

Hi Ben,
How about:


Here are some modifications I made to Pierre's code:

- Removed \overriding InstrumentName.padding and opted instead for 
self-alignment-X of RIGHT.
- Kept the stencil for SystemStartSquare but applied an extra-offset 
to slide it underneath the instrument name for the StaffGroup.
- To prevent the other brackets from being shifted, I also had to 
adjust SystemStartSquare's direction to RIGHT.

- Changed InstrumentName's layer to be top-most.
- Used the OrchestraGroup's instrumentName with \markup \whiteout...



\version "2.19.82"

% Example:
someMusic = {
  \tempo "Andante."
  \time 3/4
  \key c \minor
  c'2. r8
}

\paper { indent = 40 }

\layout {
  \context {
    \Staff
    \override InstrumentName.font-size = #-1
    \override InstrumentName.self-alignment-X = #RIGHT
  }
  \context {
    \StaffGroup
    \name ViolinGroup
    \alias StaffGroup
    systemStartDelimiter = #'SystemStartBrace
  }
  \context {
    \StaffGroup
    \name WindGroup
    \alias StaffGroup
    systemStartDelimiter = #'SystemStartBracket
    \override SystemStartBracket.collapse-height = #1
  }
  \context {
    \StaffGroup
    \name StringGroup
    \alias StaffGroup
    \accepts ViolinGroup
    systemStartDelimiter = #'SystemStartBracket
  }
  \context {
    \StaffGroup
    \name OrchestraGroup
    \accepts WindGroup
    \accepts StringGroup
    systemStartDelimiter = #'SystemStartSquare
    \override SystemStartSquare.thickness = #2
    \override SystemStartSquare.direction = #RIGHT
    \override SystemStartSquare.extra-offset = #'(-15.5 . 0)
    \override InstrumentName.layer = #1000
  }
  \context {
    \GrandStaff
    \remove "System_start_delimiter_engraver"
    \accepts OrchestraGroup
    \accepts StaffGroup
  }
}

\score {
  \new GrandStaff <<
    \new OrchestraGroup \with {
    instrumentName = \markup \whiteout
  \override #'(circle-padding . 1)
  \circle "I"
  } <<
  \new WindGroup <<
    \new Staff \with {
  instrumentName = "Oboe"
    } \someMusic
  >>
  \new StringGroup <<
    \new ViolinGroup <<
  \new Staff \with {
    instrumentName = "Violino I"
  } \someMusic
  \new Staff \with {
    instrumentName = "Violino II"
  } \someMusic
    >>
    \new Staff \with {
    instrumentName = "Viola"
  } { \clef C \someMusic }
  >>
    >>
    \new StaffGroup <<
  \new Staff \with {
  instrumentName = "Soprano"
  } \someMusic
  \new Staff \with {
  instrumentName = "Alto"
  } { \clef C \someMusic }
    >>
  >>
}





Hi Aaron,

Wow. This is so awesome. I think I see how you arrived at this code, I 
really appreciate your help.


I'd like to save this code and re-use it, here is what I came up with I 
think it'll work just perfectly. :) I don't think I made any 
mistakes...? hehe



%


\version "2.19.82"

% Example:
someMusic = {
  \tempo "Andante."
  \time 3/4
  \key c \minor
  c'2. r8
}

\paper { indent = 40 }

\layout {
  \context {
    \Staff
    \override InstrumentName.font-size = #-1
    \override InstrumentName.self-alignment-X = #RIGHT
  }
  \context {
    \StaffGroup
    \name ViolinGroup
    \alias StaffGroup
    systemStartDelimiter = #'SystemStartBrace
  }
  \context {
    \StaffGroup
    \name WindGroup
    \alias StaffGroup
    systemStartDelimiter = #'SystemStartBracket
    \override SystemStartBracket.collapse-height = #1
  }
  \context {
    \StaffGroup
    \name StringGroup
    \alias StaffGroup
    \accepts ViolinGroup
    systemStartDelimiter = #'SystemStartBracket
  }
  \context {
    \StaffGroup
    \name OrchestraGroup
    \accepts WindGroup
    \accepts StringGroup
    systemStartDelimiter = #'SystemStartSquare
    \override SystemStartSquare.thickness = #2
    \override SystemStartSquare.direction = #RIGHT
    \override SystemStartSquare.extra-offset = #'(-15.5 . 0)
    \override InstrumentName.layer = #1000
  }
  \context {
    \GrandStaff
    \remove "System_start_delimiter_engraver"
    \accepts OrchestraGroup
    \accepts StaffGroup
  }
}

\score {
  \new GrandStaff <<
    \new OrchestraGroup \with {
  instrumentName = \markup \whiteout
  \override #'(circle-padding . 1)
  \circle "I"
    } <<
  \new WindGroup <<
    \new Staff \with {
  instrumentName = "Oboe"
    } \someMusic
  >>
  \new StringGroup <<
    \new ViolinGroup <<
  \new Staff \with {
    instrumentName = "Violino I"
  } \someMusic
  \new Staff \with {
    instrumentName = "Violino II"
  } \someMusic
    >>
    \new Staff \with {
  instrumentName = "Viola"
    } { \clef C \someMusic }
  >>
    >>
    \new StaffGroup <<
  \new OrchestraGroup \with {
    instrumentName = \markup \whiteout
    \override #'(circle-padding 

longa of two perfect breves under shiftDurations and Completion_heads_engraver

2019-07-04 Thread Graham King
Is there a way to make the following MWE generate a dotted breve tied to a 
dotted breve, rather than breve~semibreve~breve~semibreve ?
 
I would prefer not to abandon the use of shiftDurations or state "c'1. ~ 1." if 
these things are avoidable, for weak reasons to do with my strategies for 
transcribing mensural notation.

\version "2.19.82"

\shiftDurations #-1 #0 {
  \time 3/1
  c'\breve.
}

\layout {
  \context {
\Voice
\remove "Note_heads_engraver"
\consists "Completion_heads_engraver"
  }
}

Grateful, as ever, for your kind suggestions...

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


Re: Are these brackets alongside a staff group possible?

2019-07-04 Thread Pierre Perol-Schneider
Hi Aaron,

Le jeu. 4 juil. 2019 à 19:58, Aaron Hill  a
écrit :

>
> Here are some modifications I made to Pierre's code:
>
>
Sometimes, for some reason, one cannot see the evidence. In France we say:
"avoir le nez dans le guidon".
Anyway, thank you Aaron,
Cheers,
Pierre
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Are these brackets alongside a staff group possible?

2019-07-04 Thread Aaron Hill

On 2019-07-04 10:01 am, Pierre Perol-Schneider wrote:

Hi Ben,
How about:


Here are some modifications I made to Pierre's code:

- Removed \overriding InstrumentName.padding and opted instead for 
self-alignment-X of RIGHT.
- Kept the stencil for SystemStartSquare but applied an extra-offset to 
slide it underneath the instrument name for the StaffGroup.
- To prevent the other brackets from being shifted, I also had to adjust 
SystemStartSquare's direction to RIGHT.

- Changed InstrumentName's layer to be top-most.
- Used the OrchestraGroup's instrumentName with \markup \whiteout...



\version "2.19.82"

% Example:
someMusic = {
  \tempo "Andante."
  \time 3/4
  \key c \minor
  c'2. r8
}

\paper { indent = 40 }

\layout {
  \context {
\Staff
\override InstrumentName.font-size = #-1
\override InstrumentName.self-alignment-X = #RIGHT
  }
  \context {
\StaffGroup
\name ViolinGroup
\alias StaffGroup
systemStartDelimiter = #'SystemStartBrace
  }
  \context {
\StaffGroup
\name WindGroup
\alias StaffGroup
systemStartDelimiter = #'SystemStartBracket
\override SystemStartBracket.collapse-height = #1
  }
  \context {
\StaffGroup
\name StringGroup
\alias StaffGroup
\accepts ViolinGroup
systemStartDelimiter = #'SystemStartBracket
  }
  \context {
\StaffGroup
\name OrchestraGroup
\accepts WindGroup
\accepts StringGroup
systemStartDelimiter = #'SystemStartSquare
\override SystemStartSquare.thickness = #2
\override SystemStartSquare.direction = #RIGHT
\override SystemStartSquare.extra-offset = #'(-15.5 . 0)
\override InstrumentName.layer = #1000
  }
  \context {
\GrandStaff
\remove "System_start_delimiter_engraver"
\accepts OrchestraGroup
\accepts StaffGroup
  }
}

\score {
  \new GrandStaff <<
\new OrchestraGroup \with {
instrumentName = \markup \whiteout
  \override #'(circle-padding . 1)
  \circle "I"
  } <<
  \new WindGroup <<
\new Staff \with {
  instrumentName = "Oboe"
} \someMusic
  >>
  \new StringGroup <<
\new ViolinGroup <<
  \new Staff \with {
instrumentName = "Violino I"
  } \someMusic
  \new Staff \with {
instrumentName = "Violino II"
  } \someMusic
>>
\new Staff \with {
instrumentName = "Viola"
  } { \clef C \someMusic }
  >>
>>
\new StaffGroup <<
  \new Staff \with {
  instrumentName = "Soprano"
  } \someMusic
  \new Staff \with {
  instrumentName = "Alto"
  } { \clef C \someMusic }
>>
  >>
}



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


Re: Jazz Chord Symbols (as new font - NOT notation font)

2019-07-04 Thread Tyler Mitchell
On Thu, Jul 04, 2019 at 03:29:00PM +0200, Marco Baumgartner wrote:
> Although my font (otf) HAS ligatures (and show up if the font is
> used on my system in other programs) - it doesn't show ANY
> ligatures in lilypond... Can't make it work as of now.
> 
> I'm using 2.18.2 on Debian Linux with Frescobaldi.

Count me as one who says that ligatures are absolutely essential.
(I couldn't say whether it's a bug in LilyPond or not, but I
couldn't work without them.)

I've had this problem on OS X (as it then was). I have both the
official LilyPond binary installed in /Applications and a homebrew
version (can't remember whether bottled or compiled) installed in
/usr/local and one supports ligatures and one does not. (I'm away
from home at the moment and don't have access to that computer, so
I can't check which is which.)

Where did you obtain the LilyPond install from -- was it from apt
package or from the official distribution at lilypond.org?

Best regards,
Tyler

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


Re: Jazz Chord Symbols (as new font - NOT notation font)

2019-07-04 Thread Aaron Hill

On 2019-07-04 6:29 am, Marco Baumgartner wrote:
Although my font (otf) HAS ligatures (and show up if the font is used 
on my

system in other programs) - it
doesn't show ANY ligatures in lilypond... Can't make it work as of now.

I searched about it, and stumbled across people saying, that this was 
like

an official bug. Others saying,
that it should be all working instead...


Well, I would put my vote on the side of "should be working".  Consider 
the following simple example:



\version "2.18.2" % tested on lilybin.org
\markup \roman "fi"


You *should* get the "fi" as a ligature in the output.  It would be good 
to verify this on your system.  Then, use \override #'(font-name . "Your 
custom font") and test your font.



I'm using 2.18.2 on Debian Linux with Frescobaldi.
And: The ligatures I'm talking about are not standard ligatures (tied 
to a

specific language), they're everything but standard.
But like I said, a normal Text-Editor (and even used on the web
via @font-face) can render the ligatures just fine.


This may have more to do with Pango than LilyPond, since it is Pango 
that is the one dealing with fonts.  If there is something wrong with 
how it handles OpenType ligatures, that could certainly end up affecting 
what you see in LilyPond.



Any tips on:
- where to install the font (not so sure about that anymore...)


You can install fonts wherever your fontconfig is set up to load them.  
For instance, I have my custom fonts installed in my home directory:


  ~/.local/share/fonts

I did this as to not conflict with any font packages that are normally 
written to /usr/local/share/fonts.



- how to encode the font in a way that lilypond recognizes ligatures


Unsure, but as I indicated above, I think this is on the Pango side, not 
LilyPond.



- just pointing out, that I'm stupid (that would be at least a valid
excuse) :-)


If I did that, I would have more fingers pointing back at myself.  You 
would not have to dig too far in the mailing list archive to find proof 
of my lapses into incompetence.



-- Aaron Hill

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


Re: Are these brackets alongside a staff group possible?

2019-07-04 Thread Ben

On 7/4/2019 1:01 PM, Pierre Perol-Schneider wrote:

Hi Ben,
How about:

\version "2.19.83"

half-brace = \markup\concat {
  \hspace #.5
  \path #0.2 #'((moveto .5 0) (lineto 0 0)
                 (lineto 0 -15)) % <= to be set
}

% Example:
someMusic = {
  \tempo "Andante."
  \time 3/4
  \key c \minor
  c'2. r8
}

\paper { indent = 40 }

\layout {
  \context {
    \Staff
    \override InstrumentName.font-size = #-1
  }
  \context {
    \StaffGroup
    \name ViolinGroup
    \alias StaffGroup
    systemStartDelimiter = #'SystemStartBrace
  }
  \context {
    \StaffGroup
    \name WindGroup
    \alias StaffGroup
    systemStartDelimiter = #'SystemStartBracket
    \override SystemStartBracket.collapse-height = #1
  }
  \context {
    \StaffGroup
    \name StringGroup
    \alias StaffGroup
    \accepts ViolinGroup
    systemStartDelimiter = #'SystemStartBracket
  }
  \context {
    \StaffGroup
    \name OrchestraGroup
    \accepts WindGroup
    \accepts StringGroup
    systemStartDelimiter = #'SystemStartSquare
    \override SystemStartSquare.stencil = ##f
    \override InstrumentName.extra-offset = #'(-2 . 0)
    instrumentName = \markup {
      \override #'(baseline-skip . 0)
      \override #'(thickness . 2)
      \center-column {
        \half-brace \vspace #-.05 \circle "xxx" \vspace #-.05 \scale 
#'(1 . -1) \half-brace

      }
    }
  }
  \context {
    \GrandStaff
    \remove "System_start_delimiter_engraver"
    \accepts OrchestraGroup
    \accepts StaffGroup
  }
}

\score {
  \new GrandStaff <<
    \new OrchestraGroup <<
      \new WindGroup <<
        \new Staff \with {
          instrumentName = "Oboe"
          \override InstrumentName.padding = #-11
        } \someMusic
      >>
      \new StringGroup <<
        \new ViolinGroup <<
          \new Staff \with {
            instrumentName = "Violino I"
            \override InstrumentName.padding = #-8
          } \someMusic
          \new Staff \with {
            instrumentName = "Violino II"
            \override InstrumentName.padding = #-8
          } \someMusic
        >>
        \new Staff \with {
            instrumentName = "Viola"
            \override InstrumentName.padding = #-11
          } { \clef C \someMusic }
      >>
    >>
    \new StaffGroup <<
      \new Staff \with {
      instrumentName = "Soprano"
      \override InstrumentName.padding = #-8
      } \someMusic
      \new Staff \with {
      instrumentName = "Alto"
      \override InstrumentName.padding = #-10
      } { \clef C \someMusic }
    >>
  >>
}

HTH, Cheers,
Pierre

Le jeu. 4 juil. 2019 à 17:52, Ben > a écrit :


On 7/4/2019 10:30 AM, Kieren MacMillan wrote:

Hi Ben,


How would you suggest I go about creating the bracket markings that 
separate big sections, like in a piece with two orchestras or similar?

Create a custom StaffGroup context.


ideally I'd prefer the circle symbol in the bracket to always be centered 
alongside the staff group

The InstrumentName is center-able — override it.  =)

Hope that helps!
Kieren.


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


Kieren,

I just came across this link!

It helps me visually see how to approach this better. But I'm
confused how to create a custom 'bracket' rather...

I'll keep at it. If you have any hints, I welcome them. :) Thank you!

https://leighverlag.blogspot.com/2015/01/advanced-staff-grouping.html





Pierre,

Wow this is incredibly helpful. I see now how the overrides work 
beautifully with your custom group! How do you recommend I go about 
creating a second bracket though, for the other orchestra? (1 and 2, 
instead of 1 and 1 - see attached). I don't understand the best way to 
duplicate the context in this case.


% Here is my code based on your template %

\version "2.19.83"

half-brace = \markup\concat {
  \hspace #.5
  \path #0.2 #'((moveto .5 0) (lineto 0 0)
 (lineto 0 -15)) % <= to be set
}

% Example:
someMusic = {
  \tempo "Andante."
  \time 3/4
  \key c \minor
  c'2. r8
}

\paper { indent = 40 }

\layout {
  \context {
    \Staff
    \override InstrumentName.font-size = #-1
  }
  \context {
    \StaffGroup
    \name ViolinGroup
    \alias StaffGroup
    systemStartDelimiter = #'SystemStartBrace
  }
  \context {
    \StaffGroup
    \name WindGroup
    \alias StaffGroup
    systemStartDelimiter = #'SystemStartBracket
    \override SystemStartBracket.collapse-height = #1
  }
  \context {
    \StaffGroup
    \name StringGroup
    \alias StaffGroup
    \accepts ViolinGroup
    systemStartDelimiter = #'SystemStartBracket
  }
  \context {
    \StaffGroup
    \name OrchestraGroup
    \accepts WindGroup
    \accepts StringGroup
    systemStartDelimiter = #'SystemStartSquare
    \override 

Re: Are these brackets alongside a staff group possible?

2019-07-04 Thread Pierre Perol-Schneider
Hi Ben,
How about:

\version "2.19.83"

half-brace = \markup\concat {
  \hspace #.5
  \path #0.2 #'((moveto .5 0) (lineto 0 0)
 (lineto 0 -15)) % <= to be set
}

% Example:
someMusic = {
  \tempo "Andante."
  \time 3/4
  \key c \minor
  c'2. r8
}

\paper { indent = 40 }

\layout {
  \context {
\Staff
\override InstrumentName.font-size = #-1
  }
  \context {
\StaffGroup
\name ViolinGroup
\alias StaffGroup
systemStartDelimiter = #'SystemStartBrace
  }
  \context {
\StaffGroup
\name WindGroup
\alias StaffGroup
systemStartDelimiter = #'SystemStartBracket
\override SystemStartBracket.collapse-height = #1
  }
  \context {
\StaffGroup
\name StringGroup
\alias StaffGroup
\accepts ViolinGroup
systemStartDelimiter = #'SystemStartBracket
  }
  \context {
\StaffGroup
\name OrchestraGroup
\accepts WindGroup
\accepts StringGroup
systemStartDelimiter = #'SystemStartSquare
\override SystemStartSquare.stencil = ##f
\override InstrumentName.extra-offset = #'(-2 . 0)
instrumentName = \markup {
  \override #'(baseline-skip . 0)
  \override #'(thickness . 2)
  \center-column {
\half-brace \vspace #-.05 \circle "xxx" \vspace #-.05 \scale #'(1 .
-1) \half-brace
  }
}
  }
  \context {
\GrandStaff
\remove "System_start_delimiter_engraver"
\accepts OrchestraGroup
\accepts StaffGroup
  }
}

\score {
  \new GrandStaff <<
\new OrchestraGroup <<
  \new WindGroup <<
\new Staff \with {
  instrumentName = "Oboe"
  \override InstrumentName.padding = #-11
} \someMusic
  >>
  \new StringGroup <<
\new ViolinGroup <<
  \new Staff \with {
instrumentName = "Violino I"
\override InstrumentName.padding = #-8
  } \someMusic
  \new Staff \with {
instrumentName = "Violino II"
\override InstrumentName.padding = #-8
  } \someMusic
>>
\new Staff \with {
instrumentName = "Viola"
\override InstrumentName.padding = #-11
  } { \clef C \someMusic }
  >>
>>
\new StaffGroup <<
  \new Staff \with {
  instrumentName = "Soprano"
  \override InstrumentName.padding = #-8
  } \someMusic
  \new Staff \with {
  instrumentName = "Alto"
  \override InstrumentName.padding = #-10
  } { \clef C \someMusic }
>>
  >>
}

HTH, Cheers,
Pierre

Le jeu. 4 juil. 2019 à 17:52, Ben  a écrit :

> On 7/4/2019 10:30 AM, Kieren MacMillan wrote:
>
> Hi Ben,
>
>
> How would you suggest I go about creating the bracket markings that separate 
> big sections, like in a piece with two orchestras or similar?
>
> Create a custom StaffGroup context.
>
>
> ideally I'd prefer the circle symbol in the bracket to always be centered 
> alongside the staff group
>
> The InstrumentName is center-able — override it.  =)
>
> Hope that helps!
> Kieren.
> 
>
> Kieren MacMillan, composer
> ‣ website: www.kierenmacmillan.info
> ‣ email: i...@kierenmacmillan.info
>
> Kieren,
>
> I just came across this link!
>
> It helps me visually see how to approach this better. But I'm confused how
> to create a custom 'bracket' rather...
>
> I'll keep at it. If you have any hints, I welcome them. :) Thank you!
>
> https://leighverlag.blogspot.com/2015/01/advanced-staff-grouping.html
>
>
> ___
> 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: Frescobaldi language problem

2019-07-04 Thread Tyler Mitchell
On Thu, Jul 04, 2019 at 11:26:16AM -0500, John Karl wrote:
> I've have apparently reset Frescobaldi's language selection for
> its "Lilypond log" output from English to German and have been
> unable to undo this.

I am having the same problem; I noticed it immediately after
upgrading from El Capitan to Mojave. Although mine is in French
(and since my French reading is not so terrible, and I'm well
familiar with the English LilyPond messages by now, I haven't
bothered to try to figure this out). Would be interested to know
the solution, too.

I am using Frescobaldi 2.19.0 with LilyPond 2.18.2 (yes, I should
upgrade).

Tyler

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


Frescobaldi language problem

2019-07-04 Thread John Karl
I've have apparently reset Frescobaldi's language selection for its 
"Lilypond log" output from English to German and have been unable to 
undo this.  I think this probably happened when I was playing around 
with a lilypond-user request from someone in Germany.  I'm running 
Frescobaldi 2.19.0 on a mac running Osx 10.12.6.


To illustrate, I have the following in a file called lang.ly:

\version "2.19.82"
{ c d e f }

So, if I tell Frescobaldi to compile the file lang.ly, its "Lilypond 
log" output begins:


    Starting lilypond 2.19.82 [lang.ly]...

    "Users/pat/Downloads/lang.ly" wird verarbeitet

    Analysieren...

    Interpretation der Musik...

    usw.


whereas if from a terminal I do:  "lilypond lang.ly"

the terminal output begins:

    GNU LilyPond 2.19.82
    Processing `lang.ly'
    Parsing...
    Interpreting music...

    etc.


I have dropped and restarted Frescobaldi with no effect on this 
problem.  I have looked for language specifications in the Frescobaldii 
preferences, unsuccessfully.



How do I get back to English Frescobaldi output?




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


Re: Are these brackets alongside a staff group possible?

2019-07-04 Thread Ben

On 7/4/2019 10:30 AM, Kieren MacMillan wrote:

Hi Ben,


How would you suggest I go about creating the bracket markings that separate 
big sections, like in a piece with two orchestras or similar?

Create a custom StaffGroup context.


ideally I'd prefer the circle symbol in the bracket to always be centered 
alongside the staff group

The InstrumentName is center-able — override it.  =)

Hope that helps!
Kieren.


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


Kieren,

I just came across this link!

It helps me visually see how to approach this better. But I'm confused 
how to create a custom 'bracket' rather...


I'll keep at it. If you have any hints, I welcome them. :) Thank you!

https://leighverlag.blogspot.com/2015/01/advanced-staff-grouping.html


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


Re: Are these brackets alongside a staff group possible?

2019-07-04 Thread Ben

On 7/4/2019 10:30 AM, Kieren MacMillan wrote:

Hi Ben,


How would you suggest I go about creating the bracket markings that separate 
big sections, like in a piece with two orchestras or similar?

Create a custom StaffGroup context.


ideally I'd prefer the circle symbol in the bracket to always be centered 
alongside the staff group

The InstrumentName is center-able — override it.  =)

Hope that helps!
Kieren.


Hey Kieren!

Thanks for getting me started. I did consider going the path of custom 
StaffGroup context but didn't understand how to get a circle symbol to 
actually /intersect/ the bracket as in the attached image, centered.


Are you suggesting that I make the "instrument name" a circle symbol? :) 
Hmm, that sounds like magic to me...hehe.


At the moment I'm still trying to see how I can create the bracket 
itself, then I'll tackle the middle symbol I guess.


http://lilypond.org/doc/v2.19/Documentation/internals/staffgroup

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


Re: Are these brackets alongside a staff group possible?

2019-07-04 Thread Kieren MacMillan
Hi Ben,

> How would you suggest I go about creating the bracket markings that separate 
> big sections, like in a piece with two orchestras or similar?

Create a custom StaffGroup context.

> ideally I'd prefer the circle symbol in the bracket to always be centered 
> alongside the staff group

The InstrumentName is center-able — override it.  =)

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


Are these brackets alongside a staff group possible?

2019-07-04 Thread Ben

Hi all,

How would you suggest I go about creating the bracket markings that 
separate big sections, like in a piece with two orchestras or similar?


Please see attached.

One problem I see maybe is that the number of staves /visible/ for each 
orchestra group may change from page to page...so ideally I'd prefer the 
circle symbol in the bracket to always be centered alongside the staff 
group, but if not I could always just accept a static height and include 
empty staves throughout the score if need be to keep things uniform. It 
wouldn't be the end of the world for the score I am working on.


Thank you!


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


Re: Jazz Chord Symbols (as new font - NOT notation font)

2019-07-04 Thread Marco Baumgartner
Thanks, Aaron.

I really feel like creating a whole new font.
The problem I'm facing right now is: I can use my self-made otf fonts as
markup.
If I use the same font as ChordNames, it seems like ChordNames is dictating
what's a valid entry and what isn't.
That's the minor issue (I still think, displaying chord symbols as "normal"
markup is fine too.) The bigger issue is:

Although my font (otf) HAS ligatures (and show up if the font is used on my
system in other programs) - it
doesn't show ANY ligatures in lilypond... Can't make it work as of now.

I searched about it, and stumbled across people saying, that this was like
an official bug. Others saying,
that it should be all working instead...

I'm using 2.18.2 on Debian Linux with Frescobaldi.
And: The ligatures I'm talking about are not standard ligatures (tied to a
specific language), they're everything but standard.
But like I said, a normal Text-Editor (and even used on the web
via @font-face) can render the ligatures just fine.

Any tips on:
- where to install the font (not so sure about that anymore...)
- how to encode the font in a way that lilypond recognizes ligatures
- just pointing out, that I'm stupid (that would be at least a valid
excuse) :-)

Thanks a lot for your help.

***
www.marcobaumgartner.com


On Thu, Jul 4, 2019 at 1:55 AM Aaron Hill  wrote:

> On 2019-07-03 4:45 pm, Aaron Hill wrote:
> > NOTE: Similar things will be adjusted to support the slash separator
> > as well, so that you could get a single string like "C#m/E" so your
> > font's logic could handle this.
>
> I typed that poorly.  Trying again:
>
> NOTE: Similar things will need to be adjusted to support the slash
> separator as well, so that you could get a single string like "C#m/E"
> for your font's logic to handle.
>
>
> -- Aaron Hill
>
> ___
> 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: A spacing problem

2019-07-04 Thread Ben

On 7/4/2019 7:45 AM, Robert Blackstone wrote:

Dear all,

Presently I’m vainly struggling with a nasty spacing problem: an empty 
fragment of a new bar sticking out of the last bar of a system.

Dear all,

Presently I’m vainly struggling with a nasty spacing problem: an empty 
fragment of a new bar sticking out of the last bar of a system.

In the piece I’ve been working on it happens 4 times. (See screenshots)
I have carefully checked the note durations in each bar and there 
seems to be nothing wrong with any of them.


What can I do to avoid or remedy this?

I’ll be very grateful for any advice.

Best regards,
Robert Blackstone


NB in the third screenshot with the text “ohi-me v’apri”, the  b-flat 
in the bass belongs to a separate voice. (<< {\stemDown as,2 des2 } 
 \\ {s2. \stemUp bes4  } >> |%P2V1-30}




Hi Robert,

I noticed you included some inline images in your email. Would it be 
possible for you to share some of your code so we can see what you have 
going on? Maybe a tiny example?


It's not easy to tell from just the images.

Thanks!

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


A spacing problem

2019-07-04 Thread Robert Blackstone
Dear all,

Presently I’m vainly struggling with a nasty spacing problem: an empty fragment 
of a new bar sticking out of the last bar of a system. 
Dear all,

Presently I’m vainly struggling with a nasty spacing problem: an empty fragment 
of a new bar sticking out of the last bar of a system. 
In the piece I’ve been working on it happens 4 times. (See screenshots) 
I have carefully checked the note durations in each bar and there seems to be 
nothing wrong with any of them.

What can I do to avoid or remedy this?

I’ll be very grateful for any advice.

Best regards,
Robert Blackstone 




NB in the third screenshot with the text “ohi-me v’apri”, the  b-flat in the 
bass belongs to a separate voice. (<< {\stemDown as,2 des2 }  \\ {s2. \stemUp 
bes4  } >> |%P2V1-30}___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: percent repeats (bug?)

2019-07-04 Thread Wols Lists
On 04/07/19 00:59, Christopher Heckman wrote:
> In a post/email sent out several months ago, Randy brought up some
> issues about percent repeats over more than two measures. He cited two
> issues, related to where the percent sign is placed and what it looks
> like.
> 
> I would like to add a third: line breaks aren't allowed in the middle
> of a \repeat percent. I discovered this when trying to set up a 4-bar
> repetition of a bass riff. A smaller example is:
> 
> \score {<<
> \new TabStaff { \repeat percent 5 { \repeat unfold 16 { c4 } } }
> \lyrics { \repeat unfold 20 "a very long bit of lyrics indeed!"1 }
>>> }
> 
> (Incidentally, I have tried to put a line break in the appropriate
> place, using the LSR and the manuals but gotten nowhere. A fix would
> be nice to have.)
> 
Just to chuck another spanner into the mix :-) if anybody tackles this,
the music I use never starts a line with a percent repeat. If there's a
line break, it repeats the bar at the start of the line before
continuing with the repeats.

Cheers,
Wol


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


Re: Lilypond 2.19.83

2019-07-04 Thread Jean Abou Samra

These mis-predicted force programming errors look like this issue:https://sourceforge.net/p/testlilyissues/issues/4975/The ticket only mentions this problem appearing on Windows but I had also encountered it on Mac OS starting from LilyPond 2.21.0 (pre-release) but not 2.19.83, which is exactly your case. I had been able to reproduce the bug on the two examples given on the ticket and on a third one of my own, a very simple MWE which I reported to -users-fr. Unfortunately, I’m on my webmail right now and I can’t find it again. Could someone on the French list forward it here? The subject was ´mis-predicted force’. Thanks.So, as a recap, Michael, your issue is entirely different from the original one. It is an instance of issue #4975, a platform-specific bug introduced between LilyPond 2.19.83 and a recent master, occurring on Windows and Mac OS X but not GNU/Linux so far. It seems to happen on code involving grace notes and it produces a lot of ´mis-predicted force’ programming errors.Regards,Jean Abou Samra.Le 2 juillet 2019 à 09:49, Michael Hendry  a écrit :On 2 Jul 2019, at 02:47, Stanton Sanderson  wrote:On Jul 1, 2019, at 11:03 AM, John McWilliam  wrote:<25th_kosbs_test.ly>John,I’m probably missing something, but it appears to work on my machine (Mac OS 10.14.5). pdf attached<25th_kosbs_test.pdf>___lilypond-user mailing listlilypond-user@gnu.orghttps://lists.gnu.org/mailman/listinfo/lilypond-userIn case you’re thinking you’re going mad, John, it doesn’t work for me either!The third, fifth and seventh staves extend beyond the others, and off the right margin of the paper.I’m using Lilypond 2.21.0 on an iMac, OSX 10.13.6I tried it before and after applying convert.ly.The log follows: Starting lilypond 2.21.0 [25th_kosbs_test.ly]...Processing `/Users/michaelhendry/tmp/bagpipe/25th_kosbs_test.ly'Parsing...Interpreting music...[8][16][24][32]Preprocessing graphical objects...programming error: mis-predicted force, 157.628268 ~= 157.612550continuing, cross fingersprogramming error: mis-predicted force, 157.628268 ~= 158.198252continuing, cross fingersprogramming error: mis-predicted force, 157.628268 ~= 158.373999continuing, cross fingersprogramming error: mis-predicted force, 157.628268 ~= 164.386816continuing, cross fingersprogramming error: mis-predicted force, 157.628268 ~= 173.858594continuing, cross fingersprogramming error: mis-predicted force, 157.628268 ~= 157.495597continuing, cross fingersprogramming error: mis-predicted force, 157.628268 ~= 158.546509continuing, cross fingersprogramming error: mis-predicted force, 157.628268 ~= 156.553116continuing, cross fingersprogramming error: mis-predicted force, 157.628268 ~= 157.497148continuing, cross fingersprogramming error: mis-predicted force, 157.628268 ~= 166.351458continuing, cross fingersprogramming error: mis-predicted force, 157.628268 ~= 157.468665continuing, cross fingersprogramming error: mis-predicted force, 157.628268 ~= 156.690155continuing, cross fingersprogramming error: mis-predicted force, 157.628268 ~= 154.865500continuing, cross fingersprogramming error: mis-predicted force, 157.628268 ~= 160.256387continuing, cross fingersprogramming error: mis-predicted force, 157.628268 ~= 172.583956continuing, cross fingersprogramming error: mis-predicted force, 157.628268 ~= 172.583956continuing, cross fingersprogramming error: mis-predicted force, 157.628268 ~= 166.351458continuing, cross fingersprogramming error: mis-predicted force, 157.628268 ~= 173.858594continuing, cross fingersprogramming error: mis-predicted force, 157.628268 ~= 154.865500continuing, cross fingersprogramming error: mis-predicted force, 157.628268 ~= 166.351458continuing, cross fingersprogramming error: mis-predicted force, 157.628268 ~= 173.858594continuing, cross fingersFinding the ideal number of pages...Fitting music on 1 page...Drawing systems...programming error: mis-predicted force, 157.628268 ~= 172.583956continuing, cross fingersprogramming error: mis-predicted force, 157.628268 ~= 166.351458continuing, cross fingersprogramming error: mis-predicted force, 157.628268 ~= 173.858594continuing, cross fingersLayout output to `/var/folders/7z/6v5y7dgj181bb5j44lt_6d2wgn/T//lilypond-9acxoa'...Converting to `25th_kosbs_test.pdf'...Deleting `/var/folders/7z/6v5y7dgj181bb5j44lt_6d2wgn/T//lilypond-9acxoa'...Success: compilation successfully completedCompleted successfully in 1.5”.Hope this helps,Michael___lilypond-user mailing listlilypond-user@gnu.orghttps://lists.gnu.org/mailman/listinfo/lilypond-user
 

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