Reverting TextSpanner properties

2019-02-06 Thread Andrew Bernard
I have a text spanner set up nicely to do sul ponticello -> nat. All works
beautifully. But how does one revert the overrides use to achieve this to
go back to a plain text spanner without undoing each and every line? Can't
you just revert bound-details?

Searching the list archives did not reveal anything for me. Perhaps a poor
choice of search keywords.

I hope this is not one of those cases again where I should not be using
braces in the definition, but it won't compile if I don't.


Andrew


%

\version "2.19.82"

spToNatSpan = {
  \override TextSpanner.font-size = #-4
  \override TextSpanner.bound-padding = #1.0
  \override TextSpanner.style = #'line
  \override TextSpanner.bound-details.right.arrow = ##t
  \override TextSpanner.bound-details.left.text = #"SP"
  \override TextSpanner.bound-details.right.text = #"NAT"
  \override TextSpanner.bound-details.right.padding = #0.6
  \override TextSpanner.bound-details.right.stencil-align-dir-y = #CENTER
  \override TextSpanner.bound-details.left.stencil-align-dir-y = #CENTER
  \override TextSpanner.bound-details.left-broken.text = ##f
  \override TextSpanner.bound-details.right-broken.text = ##f
}

treble = {
  \time 4/4

  \spToNatSpan
  c''4\startTextSpan c'' c'' c''\stopTextSpan |
  c'' c'' c''\startTextSpan c'' |
  c'' c'' c'' c'' |
  \break
  c'' c''\stopTextSpan c'' c''\startTextSpan |
  \break
  c''\stopTextSpan c'' c'' c'' |
  \break
  % how to revert to basic TextSpanner here?
  \revert TextSpanner.bound-details
  c''\startTextSpan c''\stopTextSpan c'' c'' |
}

\score {
  \new Staff \treble
  \layout {}
}

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


Re: How to fix this divisi please

2019-02-06 Thread Valentin Villenave
On 2/7/19, Reggie  wrote:
> I don't know what to say but thank you from the bottom of my heart. You
> saved me and my code.

Thanks! Sure, what you posted wasn’t "minimal"… but at least it
worked, unlike the last time (where you had copied only a piece of the
code and we couldn’t compile it on its own), so I appreciate your
effort! :-)

> then I would have
> variables: violinone, violinonediv1, violinonediv2, violinonediv3, for the
> entire instrumentation? Wow that is a lot of variables :))

Yes, exactly. See below for an example of how I would do it; as you
can see, there are a _lot_ of variables.


> Second please, why do you need to  \remove Time_signature_engraver when you
> create my divisi part? I don't see why that is needed for me. Thanks

Well, since you’re starting in the middle of the score, it doesn’t
make sense to print a Time Signature like if it was the beginning.
However, this will also remove new Time Signatures, so if you need to
change \time in your divisi section, you’ll need to use something
else.

Just remove (or comment, by adding "%" at the beginning of the line)
my \remove line, and you’ll see the difference.

> One more thing. I wanted the markup center instrument name for Violin 1 a4
> div which you did perfect. But, you say I hackish a bit with making the
> StaffGroup in my violin variable. Well, how else would you be able to center
> a instrument name like you did if it wasn't a StaffGroup? What if I kept all
> instrument staffs separate and added them instead? How could you hide all
> instrument  names and replace with centered a4 divisi without Group? I feel
> like I did not bad :))

The only way to print a name for a group of staves is to (logically)
group them as a StaffGroup… (Or a GrandStaff, or ChoirStaff, or
PianoStaff, well you get the idea.)

As you may have noticed, I had to remove (or comment) the individual
names for each divisi staff; otherwise the name for the whole
StaffGroup would be added to these names and it would be messy.

> Please. in a simple MWE how can you have a group of string staffs like that
> without StaffGroup but also have shortInstrumentName = \markup
> \center-column {Vl. "(div. a 4)"} for each staff line separate?

Well, if you need to use your markup several times, you can put it in
a variable as well.

Here is how I would type your example, using many variables (and no
\tags, like I did earlier). As you can see, everything with notes is
defined first, and _then_ comes every structural information: what
should be printed where, in which group, coming after this and before
that, etc. I think it’s a bit cleaner that way.

Please also note that I created two new contexts, miniStaff and
miniStaffGroup (modified from Staff and StaffGroup), to avoid using
\with {…} too much.

%%%

scoreAViolinIbegin = \relative c'' {
  \repeat unfold 10 c1
  ges1
}
scoreAViolinImiddle = \relative c' {
  \repeat unfold 10 {c2 d}
}
scoreAViolinIend = \relative c' {
  \repeat unfold 20 fes1
}
scoreAViolinDivI = \relative c'' {
  \repeat unfold 10 g1:32
}
scoreAViolinDivII = \relative c'' {
  \repeat unfold 10 bes1:32
}
scoreAViolinDivIII = \relative c' {
  \repeat unfold 10 f1:32
}
scoreAViolinDivIV = \relative c'' {
  \repeat unfold 10 as1:32
}

scoreAViolinII = \relative c'' {
  \repeat unfold 50 d1
}

scoreAViola = \relative c' {
  \clef alto
  \repeat unfold 50 e1
}

scoreACello = \relative c {
  \clef bass
  \repeat unfold 50 f1
}

scoreAContrabass = \relative c {
  \clef bass
  \repeat unfold 50 g1
}

violinDivGroupName=\markup \center-column {Vl. "(div. a 4)"}

%% Big violin Staff and additional divisi.
%% (This will be used only in the full score.)

scoreAViolinConductor = {
  \scoreAViolinIbegin
  <<
\scoreAViolinImiddle \break
\new miniStaffGroup \with {
  instrumentName = \violinDivGroupName
  shortInstrumentName = \violinDivGroupName
} <<
  \new miniStaff \scoreAViolinDivI
  \new miniStaff \scoreAViolinDivII
  \new miniStaff \scoreAViolinDivIII
  \new miniStaff \with {
\override BarLine.allow-span-bar = ##f
  } \scoreAViolinDivIV
>>
  >>
  \scoreAViolinIend
}

\score {
  \header { title = "Full Score." }
  \new StaffGroup <<
\new Staff = "ViolinMain" \with {
  instrumentName = "Violin I"
  shortInstrumentName = "Vl. 1"
} \scoreAViolinConductor
\new Staff \with {
  instrumentName = "Violin II"
  shortInstrumentName = "Vl. 2"
} \scoreAViolinII
\new Staff \with {
  instrumentName = "Viola"
  shortInstrumentName = "Vla."
} \scoreAViola
\new Staff \with {
  instrumentName = "Cello"
  shortInstrumentName = "Vlc."
} \scoreACello
\new Staff \with {
  instrumentName = "Double Bass"
  shortInstrumentName = "Cb."
} \scoreAContrabass
  >>
  %% Here’s the layout for _this_ \score only.
  %% (it doesn’t apply to individual parts.)
  \layout {
  \context {
\Staff
\name "miniStaff"
alignAboveContext =

Re: Make Ties Transparent

2019-02-06 Thread Aaron Hill

On 2019-02-06 7:21 pm, Mike iLL wrote:

I’m using `\hideNotes` so that multiple similar verses can be lined up
beneath one another:

Melody with four beats here
Four syl — la — bles
Five syl — la — bil — lies

[ . . . ]

The melody is hidden but ties and slurs are quite visible.

I think that making objects transparent is going to be the solution,
but am not sure what objects I’m looking for:


Before getting to transparency, know that there are several ways to 
solve the problem of disparate timing in lyrics.  One option is to use 
explicit durations in the lyrics rather than use \lyricsto.  This lets 
you customize the timing per stanza and gives you the most freedom at 
the cost of added verbosity while entering lyrics.  If you have stanzas 
with wildly different timing, this is probably the best option as it 
saves on having to create voices per stanza.


A second option is to stick to a single voice for all stanzas but make 
use of melismata either implicitly via ties and slurs or explicitly via 
placeholder syllables.  For instance, your half note could be written as 
two, tied quarters, which would accommodate both stanzas.  For the 
second stanza, you need only `\set ignoreMelismata = ##t` to be able to 
assign more lyrics as needed.  This approach tends to be best if you 
have only a few variations in timing between stanzas, as it allows you 
to share the majority of the timing in a single Voice.


A third option is to use a NullVoice to specify timing.  This does not 
render any notes in the staff and does not require embedding the 
explicit durations within the lyrics.  This may be handy for cases where 
you would prefer to reuse lyrics variables against different timing, or 
if you simply do not prefer to use explicit durations.


Lastly, you can use a normal Voice but hide its content as you have 
mentioned.  There are a few challenges with this approach.  Firstly, you 
need to set \voiceXxx appropriately to accommodate both voices even 
though one will ultimately be hidden.  Secondly, the hidden voice will 
still take up space in the layout which may produce unexpected spacing.  
Lastly, there are a number of grobs that can appear as part of 
processing the music.  As you have found, \hideNotes is not sufficient.


NOTE: I noticed that in your snippet you included braces around music 
after \hideNotes.  These are superfluous, as \hideNotes does not take 
any arguments.  I am not certain whether it was your intention that the 
effect of \hideNotes only applied to the music expression in braces.  
But for your reference, you need to manually include \unHideNotes to 
reinstate things.



Is it something like this `\override NoteHead.transparent = ##t`?


Yes.  Although, `\hide Grob` is shorthand for `\override 
Grob.transparent = ##t` for any grob, so you might consider it for 
brevity if you are going to go down this path.  The Internals reference 
can be a handy guide for looking up the various grob names: e.g. Tie, 
Slur, PhrasingSlur.


Be aware that setting transparent to true only makes the grobs 
invisible; the grobs will still occupy space within the layout.  In some 
cases this is fine, but hidden grobs can result in what appears to be 
extra whitespace where the grob would have been.  If this is a problem, 
you can use `\omit Grob` instead if it is your desire that the grobs 
should both be invisible and take up no space.  (This second command is 
shorthand for `\override Grob.stencil = ##f` if I am recalling 
correctly.)


-- Aaron Hill

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


Make Ties Transparent

2019-02-06 Thread Mike iLL
I’m using `\hideNotes` so that multiple similar verses can be lined up beneath 
one another:

Melody with four beats here
Four syl — la — bles 
Five syl — la — bil — lies

The code:

melody = \relative c'' {
 \clef treble
 \key c \major
 \time 3/4
 <<
   \new Voice = "chorus" {
 \voiceOne
 d4 c4. b8~ | b4 c2 |
   }
   \new Voice = "hidden" {
  \voiceTwo
  \hideNotes {
  d4 c4. b8~ | b4 g4 c4 |
}
}
>>
}


chorus =  \lyricmode {
\set stanza = #"1. " 
 Cho -- ir choir __ 
}

wordsTwo =  \lyricmode {
\set associatedVoice = "hidden"
\set stanza = #"2. " 
  Cho -- ir sing -- ing it.
}


\score {
 <<
   \new Staff  {
 \new Voice = "main" { \melody }
   }
   \new Lyrics \lyricsto "chorus" \chorus
   \new Lyrics \lyricsto "hidden" \wordsTwo
 >>


The melody is hidden but ties and slurs are quite visible.

I think that making objects transparent is going to be the solution, but am not 
sure what objects I’m looking for:

http://lilypond.org/doc/v2.18/Documentation/notation/visibility-of-objects#making-objects-transparent
 


Is it something like this `\override NoteHead.transparent = ##t`?

Thanks much.


Mike iLL Kilmer
m...@madhappy.com
http://www.madhappy.com



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


Re: Reducing top margin for a single page in a score

2019-02-06 Thread David Wright
On Mon 04 Feb 2019 at 11:39:20 (-0700), foxfanfare wrote:
> Andrew Bernard wrote
> > I am doing a long string quartet. The full score sits nicely in the middle
> > of an A4 landscape page with a generous top margin. But there's a solo
> > viola part that's very dense and the staves fill out the whole page very
> > tightly right to the bottom, and it looks clumsy because there is lots of
> > space at the top margin not able to be utilised.
> > 
> > Is it possible to alter the top margin for just a single page in the midst
> > of a score where it is otherwise OK?
> 
> I think there is a better way (at least it is the one that I use), simply
> with
> \overrideProperty Score.NonMusicalPaperColumn.line-break-system-details
> #'((Y-offset . -10))
> 
> Place it before the first note of the highest system of your page and then
> you can gain some space in your top margin.

This appears to raise the top system without moving anything else;
specifically, without moving the other systems upwards in proportion.
OTOH running LP a second time with smaller margins (and stealing
a page) redistributes the staves automatically. It also takes care
of page numbers etc.

(BTW it might sometimes be more tasteful to steal pages two by two,
ie as double spreads.)

> I often use #'((Y-offset . 0)) because I think the margins should stay
> intact and never have content inside (that's the whole purpose of the
> margins !). But LP calculate the distance of the first stave between the top
> markup (generally the page number) and the highest thing in the first staff.
> But in some cases it isn't convenient, for instance on ottava bracket in the
> middle of the line will not interfer with the page number and there is no
> reason to align the bottom of the page number to this item. That's where I
> find this command verry useful because it will put the ottava bracket
> exactly at the limit of the margin.
> 
> I don't know if what I said was clear enough!

Cheers,
David.

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


Re: ChordNames on Staff

2019-02-06 Thread Kieren MacMillan
Hi Valentin,

> I can think of two ways:
> 
> \new ChordNames \with {
>  \consists Staff_symbol_engraver
> } \chordmode {
>  c1
> }

Ooh, that’s clever.  =)
K.


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: How to fix this divisi please

2019-02-06 Thread Reggie
Valentin Villenave-3 wrote
> On 2/6/19, Reggie <

> reegistoop@

> > wrote:
>> Hi. I have put together as much as I can to truly do my best. I hope I am
>> able to get some help to learn why I am wrong. I have a few questions.
>> One,
>> how can I input notes in Violin in the empty measures below divisisi?
> 
> Well, you’re using something a bit unusual : you’re actually starting
> a new StaffGroup _inside_ the variable that’s normally used for a
> single staff (your first violins) alone.
> It’s not impossible, but it’s still a bit hasardous.
> 
> So, if you want your "main" Violin1 to keep playing while all of this
> is happening, you have to include it as a simultaneous voice, like I
> did in the corrected version of your code below.
> 
>> Finally, how can I create a violin 1 part so each part shows the violin 1
>> and then only the "appropriate" divisi for each part only? I don't
>> understand this engraver at all.
> 
> OK, this is where it become tricky. Because of your rather unusual
> hack, _all_ of the divisi part are stored in _one_ variable (where we
> usually prefer to define lots of different variables, and then use
> these whenever we want). 

One more thing. I wanted the markup center instrument name for Violin 1 a4
div which you did perfect. But, you say I hackish a bit with making the
StaffGroup in my violin variable. Well, how else would you be able to center
a instrument name like you did if it wasn't a StaffGroup? What if I kept all
instrument staffs separate and added them instead? How could you hide all
instrument  names and replace with centered a4 divisi without Group? I feel
like I did not bad :))

Please. in a simple MWE how can you have a group of string staffs like that
without StaffGroup but also have shortInstrumentName = \markup
\center-column {Vl. "(div. a 4)"} for each staff line separate?






--
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: How to fix this divisi please

2019-02-06 Thread Reggie
Valentin Villenave-3 wrote
> On 2/6/19, Reggie <

> reegistoop@

> > wrote:
>> Hi. I have put together as much as I can to truly do my best. I hope I am
>> able to get some help to learn why I am wrong. I have a few questions.
>> One,
>> how can I input notes in Violin in the empty measures below divisisi?
> 
> Well, you’re using something a bit unusual : you’re actually starting
> a new StaffGroup _inside_ the variable that’s normally used for a
> single staff (your first violins) alone.
> It’s not impossible, but it’s still a bit hasardous.
> 
> So, if you want your "main" Violin1 to keep playing while all of this
> is happening, you have to include it as a simultaneous voice, like I
> did in the corrected version of your code below.
> 
>> Finally, how can I create a violin 1 part so each part shows the violin 1
>> and then only the "appropriate" divisi for each part only? I don't
>> understand this engraver at all.
> 
> OK, this is where it become tricky. Because of your rather unusual
> hack, _all_ of the divisi part are stored in _one_ variable (where we
> usually prefer to define lots of different variables, and then use
> these whenever we want). So we have to start with your huge variable
> with all the staves inside, and then select the ones we want or filter
> the ones we don’t want. LilyPond has a mechanism for that: the \tag
> command, that allows you to mark one music expression and everything
> inside. See
> http://lilypond.org/doc/v2.19/Documentation/notation/different-editions-from-one-source
> 
> Oh, one other thing: you don’t need to copy all your definitions
> (global, scoreAViolinI etc.) in every file! Just put them all in one
> file, that you can call, for example, "variables.ly":
> 
> % file: variables.ly 
> global = {…}
> scoreAViolinI = {…}
> etc.
> %%%
> 
> And then in another file you can just type :
> 
>  file: score.ly %
> 
> \include "variables.ly"
> \header { title = "Full Score" }
> \score {
>   \new StaffGroup <<
>  \new Staff \scoreAViolinI
>  \new Staff … etc …
>   >>
> }
> %
> 
> And then you can have other files such as
> 
> %% file : solo_part.ly 
> 
> \include "variables.ly"
> \header { title = "individual part" }
> \score {
>   \new Staff \scoreAViolinI
> }
> %%
> 
> Anyway. Here’s my version of your code, I’ve used tags and added some
> examples of divisi parts as \bookparts blocks (just to have nicer
> titles, and to force them to start on separate pages in the PDF).
> 
> 
> 
> 
> \version "2.19.80"
> 
> \header {
>   % Remove default LilyPond tagline
>   tagline = ##f
> }
> 
> global = {
>   \key c \major
>   \time 4/4
> }
> 
> scoreAViolinI = \relative c'' {
>   \global
>   % Music follows here.
>   \repeat unfold 10 { c1 } ges1 \break
>   <<
> \tag #'divMain {
>   \oneVoice
>   \repeat unfold 10 {c,2 d}
> }
> \\
> \new StaffGroup = "Group"
> \with {
>   shortInstrumentName = \markup \center-column {Vl. "(div. a 4)"}
>   systemStartDelimiter = #'SystemStartSquare
> } <<
>   \tag #'div1 \new Staff = "diva1" \with {
> \remove Time_signature_engraver
> alignAboveContext = "ViolinMain"
> %shortInstrumentName = "v1.1"
>   }  { g1:32 g1:32 g1:32 g1:32 g1:32 g1:32 g1:32 g1:32 g1:32 g1:32 }
>   \tag #'div2 \new Staff = "diva2" \with {
> \remove Time_signature_engraver
> alignAboveContext = "ViolinMain"
> % shortInstrumentName = "v1.2"
>   }  { bes1:32 bes1:32 bes1:32 bes1:32 bes1:32 bes1:32 bes1:32 bes1:32
>bes1:32 bes1:32 }
>   \tag #'div3 \new Staff = "diva3" \with {
> \remove Time_signature_engraver
> alignAboveContext = "ViolinMain"
> % shortInstrumentName = "v1.3"
>   }  { f1:32 f1:32 f1:32 f1:32 f1:32 f1:32 f1:32 f1:32 f1:32 f1:32 }
>   \tag #'div4 \new Staff = "diva4" \with {
> \remove Time_signature_engraver
> alignAboveContext = "ViolinMain"
> \override BarLine.allow-span-bar = ##f
> % shortInstrumentName = "v1.4"
>   }  { as1:32 as1:32 as1:32 as1:32 as1:32 as1:32 as1:32 as1:32 as1:32
>as1:32 }
> >>
>   >>
>   \repeat unfold 20 { fes1 }
> }
> 
> scoreAViolinII = \relative c'' {
>   \global
>   % Music follows here.
>   \repeat unfold 50 { d1 }
> }
> 
> scoreAViola = \relative c' {
>   \global
>   % Music follows here.
>   \repeat unfold 50 { e1 }
> }
> 
> scoreACello = \relative c {
>   \global
>   % Music follows here.
>   \repeat unfold 50 { f1 }
> }
> 
> scoreAContrabass = \relative c {
>   \global
>   % Music follows here.
>   \repeat unfold 50 { g1 }
> }
> 
> scoreAViolinIPart = \new Staff = "ViolinMain" \with {
>   instrumentName = "Violin I"
>   shortInstrumentName = "Vl. I"
> } \scoreAViolinI
> 
> scoreAViolinIIPart = \new Staff \with {
>   instrumentName = "Violin II"
>   shortInstrumentName = "Vl. II"
> } \scoreAViolinII
> 
> scoreAViolaPart = \new Staff \wit

Re: ChordNames on Staff

2019-02-06 Thread Valentin Villenave
On 2/6/19, Robert Hennig  wrote:
> I would like to print the ChordNames casually directly on the staff, Not
> above the staff. Using extra-offset works if there are no other objects
> which adjusts the spacing. What is the proper way to get the ChordNames
> fixed to the staff?

Greetings,
I can think of two ways:

\new ChordNames \with {
  \consists Staff_symbol_engraver
} \chordmode {
  c1
}
\new Staff \with {
  \consists Chord_name_engraver
  \denies "Voice"
} \chordmode {
  c1
}



Cheers,
V.

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


Re: How to fix this divisi please

2019-02-06 Thread Valentin Villenave
On 2/6/19, Reggie  wrote:
> Hi. I have put together as much as I can to truly do my best. I hope I am
> able to get some help to learn why I am wrong. I have a few questions. One,
> how can I input notes in Violin in the empty measures below divisisi?

Well, you’re using something a bit unusual : you’re actually starting
a new StaffGroup _inside_ the variable that’s normally used for a
single staff (your first violins) alone.
It’s not impossible, but it’s still a bit hasardous.

So, if you want your "main" Violin1 to keep playing while all of this
is happening, you have to include it as a simultaneous voice, like I
did in the corrected version of your code below.

> Finally, how can I create a violin 1 part so each part shows the violin 1
> and then only the "appropriate" divisi for each part only? I don't
> understand this engraver at all.

OK, this is where it become tricky. Because of your rather unusual
hack, _all_ of the divisi part are stored in _one_ variable (where we
usually prefer to define lots of different variables, and then use
these whenever we want). So we have to start with your huge variable
with all the staves inside, and then select the ones we want or filter
the ones we don’t want. LilyPond has a mechanism for that: the \tag
command, that allows you to mark one music expression and everything
inside. See 
http://lilypond.org/doc/v2.19/Documentation/notation/different-editions-from-one-source

Oh, one other thing: you don’t need to copy all your definitions
(global, scoreAViolinI etc.) in every file! Just put them all in one
file, that you can call, for example, "variables.ly":

% file: variables.ly 
global = {…}
scoreAViolinI = {…}
etc.
%%%

And then in another file you can just type :

 file: score.ly %

\include "variables.ly"
\header { title = "Full Score" }
\score {
  \new StaffGroup <<
 \new Staff \scoreAViolinI
 \new Staff … etc …
  >>
}
%

And then you can have other files such as

%% file : solo_part.ly 

\include "variables.ly"
\header { title = "individual part" }
\score {
  \new Staff \scoreAViolinI
}
%%

Anyway. Here’s my version of your code, I’ve used tags and added some
examples of divisi parts as \bookparts blocks (just to have nicer
titles, and to force them to start on separate pages in the PDF).




\version "2.19.80"

\header {
  % Remove default LilyPond tagline
  tagline = ##f
}

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

scoreAViolinI = \relative c'' {
  \global
  % Music follows here.
  \repeat unfold 10 { c1 } ges1 \break
  <<
\tag #'divMain {
  \oneVoice
  \repeat unfold 10 {c,2 d}
}
\\
\new StaffGroup = "Group"
\with {
  shortInstrumentName = \markup \center-column {Vl. "(div. a 4)"}
  systemStartDelimiter = #'SystemStartSquare
} <<
  \tag #'div1 \new Staff = "diva1" \with {
\remove Time_signature_engraver
alignAboveContext = "ViolinMain"
%shortInstrumentName = "v1.1"
  }  { g1:32 g1:32 g1:32 g1:32 g1:32 g1:32 g1:32 g1:32 g1:32 g1:32 }
  \tag #'div2 \new Staff = "diva2" \with {
\remove Time_signature_engraver
alignAboveContext = "ViolinMain"
% shortInstrumentName = "v1.2"
  }  { bes1:32 bes1:32 bes1:32 bes1:32 bes1:32 bes1:32 bes1:32 bes1:32
   bes1:32 bes1:32 }
  \tag #'div3 \new Staff = "diva3" \with {
\remove Time_signature_engraver
alignAboveContext = "ViolinMain"
% shortInstrumentName = "v1.3"
  }  { f1:32 f1:32 f1:32 f1:32 f1:32 f1:32 f1:32 f1:32 f1:32 f1:32 }
  \tag #'div4 \new Staff = "diva4" \with {
\remove Time_signature_engraver
alignAboveContext = "ViolinMain"
\override BarLine.allow-span-bar = ##f
% shortInstrumentName = "v1.4"
  }  { as1:32 as1:32 as1:32 as1:32 as1:32 as1:32 as1:32 as1:32 as1:32
   as1:32 }
>>
  >>
  \repeat unfold 20 { fes1 }
}

scoreAViolinII = \relative c'' {
  \global
  % Music follows here.
  \repeat unfold 50 { d1 }
}

scoreAViola = \relative c' {
  \global
  % Music follows here.
  \repeat unfold 50 { e1 }
}

scoreACello = \relative c {
  \global
  % Music follows here.
  \repeat unfold 50 { f1 }
}

scoreAContrabass = \relative c {
  \global
  % Music follows here.
  \repeat unfold 50 { g1 }
}

scoreAViolinIPart = \new Staff = "ViolinMain" \with {
  instrumentName = "Violin I"
  shortInstrumentName = "Vl. I"
} \scoreAViolinI

scoreAViolinIIPart = \new Staff \with {
  instrumentName = "Violin II"
  shortInstrumentName = "Vl. II"
} \scoreAViolinII

scoreAViolaPart = \new Staff \with {
  instrumentName = "Viola"
  shortInstrumentName = "Vla."
} { \clef alto \scoreAViola }

scoreACelloPart = \new Staff \with {
  instrumentName = "Cello"
  shortInstrumentName = "Cl."
} { \clef bass \scoreACello }

scoreAContrabassPart = \new Staff \with {
  instrumentName = "Contrabass"
  shortInstrumentName = "Cb."
} { \clef bass \scoreAContrabass }

\score

Re: How to fix this divisi please

2019-02-06 Thread Reggie
Michael Gerdau wrote
>> Hi. I have put together as much as I can to truly do my best. I hope I am
>> able to get some help to learn why I am wrong. I have a few questions.
>> One,
>> how can I input notes in Violin in the empty measures below divisisi? I
>> don't understand where to insert in my code please. Second, how can I put
>> a
>> center group name like my attachment image for my strings in my code
>> please.
>> Finally, how can I create a violin 1 part so each part shows the violin 1
>> and then only the "appropriate" divisi for each part only? I don't
>> understand this engraver at all. Each violin one part has all four divisi
>> staffs. I'd like separate. Thank you for the help. I have included all my
>> files for help.,
> 
> That is far too much code for my liking.
> 
> Please create a MWE. Chances are that while doing it you'll find a
> solution to your problem.
> 
> The code you attached is very obviously NOT a MWE.
> 
> Kind regards,
> Michael
> -- 
> Michael Gerdau email: 

> mgd@

> GPG-keys available on request or at public keyserver
> 
> ___
> lilypond-user mailing list

> lilypond-user@

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

Hello. Not only did I literally include the files as attachment files, which
could not be easier, I also said I am sorry but I do not know how to proceed
so clearly this was the best I could do. Other than not using Liillypond and
not posting for help, I did all work that I could do make helping me easy. I
hope someone else then would kindly download my files and compile them in 5
seconds to help me. I think the code is quite minimal enough if you see 2
files total in body and in attachment. Yes not "MWE" but I think my attempt
is not the most horrible. Thank you. Maybe I should not have body copied
text to scare people away. Obviously you saw the code and felt like MWE was
better. Sorry. In this case if you actually look at divisi problems, it
makes sense. Especially for beginners? 

Just download my ly files please and it's magic :)) all ready for help. MWE
as best I could let's.



--
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: ChordNames on Staff

2019-02-06 Thread Aaron Hill

On 2019-02-06 12:25 pm, Robert Hennig wrote:

Dear lilypond community,

I would like to print the ChordNames casually directly on the staff, 
Not

above the staff. Using extra-offset works if there are no other objects
which adjusts the spacing. What is the proper way to get the ChordNames
fixed to the staff?
I would like to create lead sheets which contain lots of remarks, only
sometimes there are notes in the staff.
Uncomment the Annotation to see what I mean.
Regards Robert

\version "2.19.82"
<<
  \new ChordNames \chordmode {
\override ChordNames.ChordName #'extra-offset = #'(0 . -3.5)
c1
  }
  s1%^"Text"




You need to change the nonstaff-relatedstaff-spacing so that the 
baselines between the ChordNames and Staff align.  The key is setting 
padding to a large enough negative number, which permits the stencils to 
overlap.  You will still need an additional extra-offset if you want the 
text to sit on the next lower staff line:



\version "2.19.82"
<<
  \new ChordNames \with {
\override VerticalAxisGroup.nonstaff-relatedstaff-spacing =
  #'((basic-distance . 0)(minimum-distance . 0)(padding . -10))
\override ChordName.extra-offset = #'(0 . -1)
  }
  \chordmode { c1 | dis1:m | ees1/g }
  { s1-"Text" | s1^"Text" | s1_"Text" }





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


Re: How to fix this divisi please

2019-02-06 Thread Michael Gerdau
> Hi. I have put together as much as I can to truly do my best. I hope I am
> able to get some help to learn why I am wrong. I have a few questions. One,
> how can I input notes in Violin in the empty measures below divisisi? I
> don't understand where to insert in my code please. Second, how can I put a
> center group name like my attachment image for my strings in my code please.
> Finally, how can I create a violin 1 part so each part shows the violin 1
> and then only the "appropriate" divisi for each part only? I don't
> understand this engraver at all. Each violin one part has all four divisi
> staffs. I'd like separate. Thank you for the help. I have included all my
> files for help.,

That is far too much code for my liking.

Please create a MWE. Chances are that while doing it you'll find a solution to 
your problem.

The code you attached is very obviously NOT a MWE.

Kind regards,
Michael
-- 
Michael Gerdau email: m...@qata.de
GPG-keys available on request or at public keyserver

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


Re: height of breath mark

2019-02-06 Thread Craig Dabelstein
Thank you lilyponders! Brilliant as always.

All the best,

Craig

On Thu., 7 Feb. 2019, 2:39 am David Nalesnik, 
wrote:

> On Wed, Feb 6, 2019 at 9:01 AM Kieren MacMillan
>  wrote:
> >
> > Hi Craig (and Andrew),
> >
> > > \version "2.19.82"
> > > {
> > >   c''4   \once \override BreathingSign.Y-offset = 4 \breathe
> > >   c'' c'' c''
> > > }
> >
> > Note that you can also use the tweak version:
> >
> > \version "2.19.82"
> > {
> >   c''4 \tweak Y-offset 4 \breathe
> >   c'' c'' c''
> > }
> >
>
> And you can also use \offset to move it relative to its default position:
>
> {
>   c''4 \offset Y-offset 2 \breathe
>   c'' c'' c''
> }
>
> David
>
> ___
> 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: Another question about two voices

2019-02-06 Thread Klaus Ethgen
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Am Mo den  4. Feb 2019 um 21:25 schrieb Klaus Ethgen:
> Am Mo den  4. Feb 2019 um  2:50 schrieb Ivan Kuznetsov:
> > Would you post an example that compiles successfully ?
> 
> Sure, why not.

Any comments to my sheet? I like to learn from it. But without feedback,
...

Regards
   Klaus
- -- 
Klaus Ethgen   http://www.ethgen.ch/
pub  4096R/4E20AF1C 2011-05-16Klaus Ethgen 
Fingerprint: 85D4 CA42 952C 949B 1753  62B3 79D0 B06F 4E20 AF1C
-BEGIN PGP SIGNATURE-
Comment: Charset: ISO-8859-1

iQGzBAEBCgAdFiEEMWF28vh4/UMJJLQEpnwKsYAZ9qwFAlxbWjoACgkQpnwKsYAZ
9qz/xQwAudlIzzewN0/jeDzvCzzniv5TFNkH8j+EOlbR9p2u25yfPsfAyrAsQDHR
ErzooYB8af/HNhvM4chaRQm1ClWDDFY9CSHlJRy0dZhncBPOT7NLuBjE80BoV94H
be4AbQcsY6JYq7781bvLg4zhQuv6DoQ26o1zsZGKWc+L5h8+FcyVHnRLbdjmAtx2
781evbpDR7sNyUIO/HGMMVS304KoAPQakmoeqZNq1N1aMpcdosMt+5QA9x598eH+
KQY0JgkaCCsAgEVid1Npjxb/DtzU1l88g4EEQhiY4XCqGmQEz1zT6QNXHUDmi9uA
w96nZrAH61h4YPv6QeLI/zmr2Z6/xKX+Z7u2/g/oscivex80ME+DQnqYxq+LgtlL
oaOMmXiERplKo1xPs6q1joP7I/k7Q9BjrdQuiKvDNNJCAvyFyY1sYOUnPumkHyPG
2DuG4aoTdEJtLIUcQ07qXrLuJ5/nlnldW7qkgjqUgpqn/UVwrTeXscSUAwno7VVz
QumvnlFK
=FjL6
-END PGP SIGNATURE-

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


ChordNames on Staff

2019-02-06 Thread Robert Hennig

Dear lilypond community,

I would like to print the ChordNames casually directly on the staff, Not
above the staff. Using extra-offset works if there are no other objects
which adjusts the spacing. What is the proper way to get the ChordNames
fixed to the staff?
I would like to create lead sheets which contain lots of remarks, only
sometimes there are notes in the staff.
Uncomment the Annotation to see what I mean.
Regards Robert

\version "2.19.82"
<<
  \new ChordNames \chordmode {
\override ChordNames.ChordName #'extra-offset = #'(0 . -3.5)
c1
  }
  s1%^"Text"
>>

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


Re: Slur connecting fingering numbers

2019-02-06 Thread Thomas Morley
Am Mi., 6. Feb. 2019 um 06:57 Uhr schrieb Werner LEMBERG :
>
>
> >> Hooray, it works and looks amazing!
> >
> > Glad I could help.
>
> This small example is really nice, and perhaps it can be added as a
> `harp music snippet' to the documentation.
>
>
> Werner

Hi Werner,

currently the code hijacks Glissando. I.e. the default glissando is no
longer printable.
I don't feel such a workaround should be in the docs.

Though, I'd like to come to a behaviour where "Finger-glissandos" are
possible without disturbing default-glissando (between NoteHeads)
That would be a nice amendment for our docs, not only for the harp,
but for guitar, violin, etc

I'll have to find a way to create glissandos and select properly.

For the creation part I've found that I can add additional glissandos
with glissandoMap. See:

val = 0

{
  \override Glissando.after-line-breaking =
  #(lambda (grob)
(ly:grob-set-property! grob 'extra-offset (cons 0 val))
(set! val (1+ val)))

  \set glissandoMap = #'((0 . 0) (0 . 0))
  c'\glissando f'
}

Is it safe to rely on it, or is it rather bug-using?

Cheers,
  Harm

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


Re: text block as spanner

2019-02-06 Thread Thomas Morley
Am Mi., 6. Feb. 2019 um 12:44 Uhr schrieb Leo Correia de Verdier
:
>
> Thanks a lot to all for the help and all code you’ve written!
> I included Thomas'/Harm's multiple-text-spanners-via-id from February third.

Credits to David Nalesnik!
I did only some minor updating/amending.

Best,
  Harm

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


How to fix this divisi please

2019-02-06 Thread Reggie
Hi. I have put together as much as I can to truly do my best. I hope I am
able to get some help to learn why I am wrong. I have a few questions. One,
how can I input notes in Violin in the empty measures below divisisi? I
don't understand where to insert in my code please. Second, how can I put a
center group name like my attachment image for my strings in my code please.
Finally, how can I create a violin 1 part so each part shows the violin 1
and then only the "appropriate" divisi for each part only? I don't
understand this engraver at all. Each violin one part has all four divisi
staffs. I'd like separate. Thank you for the help. I have included all my
files for help.,

problem.png   
HOW.png   
divisisi_part_score_part.ly
  
divisisis.ly   



% STRING ORCHESTRA SCORE MAIN FILE %

\version "2.19.80"

\header {
  % Remove default LilyPond tagline
  tagline = ##f
}

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

scoreAViolinI = \relative c'' {
  \global
  % Music follows here.
  \repeat unfold 10 { c1 } ges1 \break

  \new StaffGroup = "Group"
  \with {
systemStartDelimiter = #'SystemStartSquare
  }
  <<
<<
  \new Staff = "diva1" \with {
alignAboveContext = "ViolinMain"
shortInstrumentName = "v1.1"
  }  { g1:32 g1:32 g1:32 g1:32 g1:32 g1:32 g1:32 g1:32 g1:32 g1:32 }
  \new Staff = "diva2" \with {
alignAboveContext = "ViolinMain"
shortInstrumentName = "v1.2"
  }  { bes1:32 bes1:32 bes1:32 bes1:32 bes1:32 bes1:32 bes1:32 bes1:32
bes1:32 bes1:32 }
  \new Staff = "diva3" \with {
alignAboveContext = "ViolinMain"
shortInstrumentName = "v1.3"
  }  { f1:32 f1:32 f1:32 f1:32 f1:32 f1:32 f1:32 f1:32 f1:32 f1:32 }
  \new Staff = "diva4" \with {
alignAboveContext = "ViolinMain"
shortInstrumentName = "v1.4"
  }  { as1:32 as1:32 as1:32 as1:32 as1:32 as1:32 as1:32 as1:32 as1:32
as1:32 }
>>
  >>
  \repeat unfold 20 { fes1 }
}

scoreAViolinII = \relative c'' {
  \global
  % Music follows here.
  \repeat unfold 50 { d1 }
}

scoreAViola = \relative c' {
  \global
  % Music follows here.
  \repeat unfold 50 { e1 }
}

scoreACello = \relative c {
  \global
  % Music follows here.
  \repeat unfold 50 { f1 }
}

scoreAContrabass = \relative c {
  \global
  % Music follows here.
  \repeat unfold 50 { g1 }
}

scoreAViolinIPart = \new Staff = "ViolinMain" \with {
  instrumentName = "Violin I"
  shortInstrumentName = "Vl. I"
} \scoreAViolinI

scoreAViolinIIPart = \new Staff \with {
  instrumentName = "Violin II"
  shortInstrumentName = "Vl. II"
} \scoreAViolinII

scoreAViolaPart = \new Staff \with {
  instrumentName = "Viola"
  shortInstrumentName = "Vla."
} { \clef alto \scoreAViola }

scoreACelloPart = \new Staff \with {
  instrumentName = "Cello"
  shortInstrumentName = "Cl."
} { \clef bass \scoreACello }

scoreAContrabassPart = \new Staff \with {
  instrumentName = "Contrabass"
  shortInstrumentName = "Cb."
} { \clef bass \scoreAContrabass }

\score {
  <<
\new StaffGroup <<
  \scoreAViolinIPart
  \scoreAViolinIIPart
  \scoreAViolaPart
  \scoreACelloPart
  \scoreAContrabassPart
>>
  >>
  \layout { }
}

\paper {
  #(set-paper-size "a4")
  top-margin = 15\mm
  left-margin = 25\mm
  right-margin = 25\mm
  bottom-margin = 15\mm
}


%%% 

% VIOLIN ONE PART FILE %

\version "2.19.80"

\header {
  % Remove default LilyPond tagline
  tagline = ##f
}

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

scoreAViolinI = \relative c'' {
  \global
  % Music follows here.
  \repeat unfold 10 { c1 } ges1 \break

  \new StaffGroup = "Group"
  \with {
systemStartDelimiter = #'SystemStartSquare
  }
  <<
<<
  \new Staff = "diva1" \with {
alignAboveContext = "ViolinMain"
shortInstrumentName = "v1.1"
  }  { g1:32 g1:32 g1:32 g1:32 g1:32 g1:32 g1:32 g1:32 g1:32 g1:32 }
  \new Staff = "diva2" \with {
alignAboveContext = "ViolinMain"
shortInstrumentName = "v1.2"
  }  { bes1:32 bes1:32 bes1:32 bes1:32 bes1:32 bes1:32 bes1:32 bes1:32
bes1:32 bes1:32 }
  \new Staff = "diva3" \with {
alignAboveContext = "ViolinMain"
shortInstrumentName = "v1.3"
  }  { f1:32 f1:32 f1:32 f1:32 f1:32 f1:32 f1:32 f1:32 f1:32 f1:32 }
  \new Staff = "diva4" \with {
alignAboveContext = "ViolinMain"
shortInstrumentName = "v1.4"
  }  { as1:32 as1:32 as1:32 as1:32 as1:32 as1:32 as1:32 as1:32 as1:32
as1:32 }
>>
  >>
  \repeat unfold 20 { fes1 }
}



scoreAViolinIPart = \new Staff = "ViolinMain" \with {
  instrumentName = "Violin I"
  shortInstrumentName = "Vl. I"
} \scoreAViolinI



\score {


  \scoreAViolinIPart


  \layout { }
}

\paper {
  #(set-paper-size "a4")
  top-margin = 15\mm
  le

Re: word-wrapping in a markup column

2019-02-06 Thread David Nalesnik
Hi Kieren and Abraham,

On Tue, Feb 5, 2019 at 12:36 PM Abraham Lee  wrote:
>
> Hi, David!
>
> On Tue, Feb 5, 2019 at 11:14 AM David Nalesnik  
> wrote:
>>
>> Hi all,
>>
>> This snippet leaves no space between the word-wrapped items:
>>
>>  \version "2.19.82"
>>
>> \markup \override #'(line-width . 10) \column {
>>   \wordwrap { a a a a a a a a a a a a a a a a a a a a }
>>   \wordwrap { b b b b b b b b b b b b b b b b b b b b }
>>   \wordwrap { c c c c c c c c c c c c c c c c c c }
>> }
>>
>> Is there a way to allow lines in such a column to break if needed but
>> maintain even spacing between all lines?  Any help is much
>> appreciated, as this problem has plagued me for a long time.
>
>
> I have almost no experience with the following, so I can't comment on its 
> robust-ness, but it appears to do what you want:
>
> \version "2.19.82"
>
> \markup {
>   \override #'(line-width . 10)
>   \override #'(baseline-skip . 3)  %<--- All lines seem to be responsive to 
> this now
>   \column {
> \wordwrap-internal ##f { a a a a a a a a a a a a a a a a a a a a }
> \wordwrap-internal ##f { b b b b b b b b b b b b b b b b b b b b }
> \wordwrap-internal ##f { c c c c c c c c c c c c c c c c c c }
>   }
> }
>
> It wraps differently when the boolean is ##t. Again, I can't be held 
> accountable for how this will affect your situation (lol), but maybe that 
> points in the right direction?
>
> HTH,
> Abraham

Thanks for both solutions!  I had been reduced to selectively adding
\strut between lines

Best,
David

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


Re: height of breath mark

2019-02-06 Thread David Nalesnik
On Wed, Feb 6, 2019 at 9:01 AM Kieren MacMillan
 wrote:
>
> Hi Craig (and Andrew),
>
> > \version "2.19.82"
> > {
> >   c''4   \once \override BreathingSign.Y-offset = 4 \breathe
> >   c'' c'' c''
> > }
>
> Note that you can also use the tweak version:
>
> \version "2.19.82"
> {
>   c''4 \tweak Y-offset 4 \breathe
>   c'' c'' c''
> }
>

And you can also use \offset to move it relative to its default position:

{
  c''4 \offset Y-offset 2 \breathe
  c'' c'' c''
}

David

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


Re: Scheme char issue

2019-02-06 Thread David Kastrup
Leo Correia de Verdier  writes:

> Dear list!
>
> The following code is not compiling as I think it should. (I think it
> should output a square root sign, it should be valid scheme code for
> that)
>
> \version "2.19.82"
> \void #(display #\x221A)
>
> Is it because I’m stupid, some known issue or something else? Do you
> know about some workaround?

Guile 1.8 (the main version of Guile working with LilyPond) has 8-bit
characters and strings.  There is ly:wide-char->utf-8 which might work
for your purposes.

-- 
David Kastrup

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


Re: height of breath mark

2019-02-06 Thread Kieren MacMillan
Hi Craig (and Andrew),

> \version "2.19.82"
> {
>   c''4   \once \override BreathingSign.Y-offset = 4 \breathe
>   c'' c'' c''
> }

Note that you can also use the tweak version:

\version "2.19.82"
{
  c''4 \tweak Y-offset 4 \breathe
  c'' c'' c''
}

Hope that helps!
Kieren.


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


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


Re: Selectively remove some staves consisting only of rests

2019-02-06 Thread Kieren MacMillan
Hi David,

>> Unless Forbid_line_break_engraver has been removed.
> Yes, that’s one of the reasons I used the quotes around "must"…  =)

To that point:

My solution was… unconventional, shall we say… But it solves the problem in 
what I estimate would be >99% of the scores that Lilypond users would engrave.

Is there a more conventional solution with the same solution coverage?
Better yet, is there any solution that will work 100% of the time?

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: Selectively remove some staves consisting only of rests

2019-02-06 Thread Kieren MacMillan
Hi David,

>> Working with Andrew’s "spacer" situation, I see now that my staff
>> layout functions can be simplified significantly: since every break
>> "must" be accompanied by a bar (even if it’s an invisible one!),
> 
> Unless Forbid_line_break_engraver has been removed.

Yes, that’s one of the reasons I used the quotes around "must"…  =)

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


Scheme char issue

2019-02-06 Thread Leo Correia de Verdier
Dear list!

The following code is not compiling as I think it should. (I think it should 
output a square root sign, it should be valid scheme code for that)

\version "2.19.82"
\void #(display #\x221A)

Is it because I’m stupid, some known issue or something else? Do you know about 
some workaround?

Thanks a lot!
/Leo
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: text block as spanner

2019-02-06 Thread Leo Correia de Verdier
Thanks a lot to all for the help and all code you’ve written!
I included Thomas'/Harm's multiple-text-spanners-via-id from February third.

This is what I ended up with:

\version "2.19.80"

\include "multiple-text-spanners-via-id.ly"

longTextInstr =
#(define-music-function (alongtext)
   (string?)
   #{
 -\tweak stencil
 #(lambda (grob)
(let* ((grob-X (interval-length
(ly:stencil-extent (ly:line-spanner::print grob)
X)))
   (layout (ly:grob-layout grob))
   (props (ly:grob-alist-chain grob
(ly:output-def-lookup layout
  'text-font-defaults)))
   (padding .5))

  (ly:text-interface::interpret-markup layout props
#{ \markup {
  \override #(cons 'line-width (- grob-X padding))
  \wordwrap-string #alongtext }
#})
  ))
 \=10\startTextSpan
   #}
   )

wrapLongTextInstr = \=10\stopTextSpan

%{example

\layout {
  \context {
\Voice
\remove #"Text_spanner_engraver"
\consists \alternateTextSpannerEngraver
  }
}

\relative c' {
  c4 d -\longTextInstr "this is a long instruction to be printed over a few
notes"
  e f c d
  g2 e \wrapLongTextInstr
  d
}
%}



4 feb. 2019 kl. 14:35 skrev David Nalesnik :

Hello Harm!

On Sun, Feb 3, 2019 at 1:47 PM Thomas Morley 
wrote:


Hi David,

Am Sa., 2. Feb. 2019 um 21:35 Uhr schrieb David Nalesnik
:


Hi,

On Sat, Feb 2, 2019 at 2:13 PM Thomas Morley 
wrote:


Am Sa., 2. Feb. 2019 um 21:09 Uhr schrieb Thomas Morley
:

A bold workaround is to define the whole infrastructure for
TextSpanners with new/renamed events (class and type), grobs,
engravers and
start/stop-commands.


I forgot to point to a limitation
The provided 'text-spanner->text' doesn't care for line-breaks.


To clarify, 'text-spanner->text' has nothing to do with multiple
TextSpanners.
It's a stencil-override. special line-breaking behaviour is not coded,
though.

There is this:
https://www.mail-archive.com/lilypond-user@gnu.org/msg105826.html


Looks we have the same conversation every few years lol


:)

Your approach is far less invasive, so preferable.

Not sure if anything needs to be updated.



Ideally, this sort of thing could be added to the code base to avoid
the tangled history!  I never went further with this because of the
effort to rationalize spanners (GSoc?)  I figured adding something
like this would be like adding balconies onto balconies, or whatever
the architectural analogy would be.

The fix mentioned here
http://lists.gnu.org/archive/html/lilypond-user/2017-11/msg00016.html
should be applied, then it still works.

Though, I noticed a little problem here and in scheme-text-spanner
from our regtests, too:
Usually one can set the direction via direction-modifiers, i.e. for
_\startTextSpan the TextSpanner is printed below. This does not work.

The direction may be catched in listener and applied to the grob in
process-music.
So I did in the attached file, not sure whether it's the best fix ...


Thank you kindly--I now see all the colored lines in their irrelevant
glory!  I missed the change you mention and would have spent I don't
know how much time looking for a solution.


Thanks,
 Harm


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


Re: height of breath mark

2019-02-06 Thread Andrew Bernard
Hi Craig,

For example:

\version "2.19.82"

{
  c''4   \once \override BreathingSign.Y-offset = 4 \breathe
  c'' c'' c''
}

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


Re: Selectively remove some staves consisting only of rests

2019-02-06 Thread Michael Gerdau
Hi Kieren,

> In the snippet below, you can see the effects of forcing visibility 
> (\showStaff), forcing invisibility (\hideStaff), and reverting to normal 
> (\resetStaff). Note that these functions can also be used with \once, if 
> desired (though I haven’t in this snippet).
[snip]
> %%%  SNIPPET BEGINS  %%%
> \version "2.19.80"
> 
> showStaff = \set Staff.keepAliveInterfaces = #'(bar-line-interface)
> hideStaff = \set Staff.keepAliveInterfaces = #'()
> resetStaff = \unset Staff.keepAliveInterfaces
[snip]

That's neat!

Added to my snippet collection.

Thank you,
Michael
-- 
Michael Gerdau email: m...@qata.de
GPG-keys available on request or at public keyserver

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