\defineBarLine confusion

2022-04-17 Thread Mark Probert


Hi.

I am confused as to why the following doesn't work as expected. I am 
thinking the closing repeat, within the alternative 1, should have 
"ears" yet it doesn't. Have I not understood the \defineBarLine 
correctly? Or is there something else here?

(I do note if I put a \break at the end of alternative 1 then the 
bar-with-ears appears, but I don't want that all the time.)

Any help appreciated.

 .. mark.

---

\version "2.22"

\defineBarLine ".|:" #'("" "[|:" "")
\defineBarLine ":|." #'(":|]" "" "")

melody = \relative c'' {
  \clef treble
  \bar ".|:"
  \repeat volta 2 {
a4 b c d~ |
  }
  \alternative {
{ d2 r2 | }
{ d2.\repeatTie r4 \bar "|." }
  }
}

\score {
  \new Staff  \melody
}



Re: Custom Spanner with variable length sections

2022-04-17 Thread Dimitris Marinakis
> What are you using this spanner for, by the way?
>

I'll use it for various spanners that need gradual changes, primarily for
trills with variable speed. There are other more text-based notations but I
like the simplicity of the spanner.

 I am surprised by the font issue though. Is LilyPond preventing you
> from using a font because it lacks some accidentals even if you are not
> using these accidentals?


I can't remember the exact issue but I'm using microtonal accidentals for
some projects anyways.

Nothing wrong with the Feta font by the way. I just have an illogical
preference for SCORE's look so I'm using Scorlatti plus various tweaks to
approximate SCORE's slurs and ties. That sometimes causes me a lot of
trouble but at the end I get nice results.

I will try to share more details about what doesn't work as well as I'd
like but my use case is very specific and non standard so I feel bad asking
for help since some tweaks go pretty deep and complex.


Re: Removing all dynamics from MIDI

2022-04-17 Thread Lukas-Fabian Moser

Hi David,

After tracking this string throughout the source code, I finally found 
where the property is set: ly/script-init.ly 


accent = #(make-articulation 'accent
'midi-extra-velocity 20)

marcato = #(make-articulation 'marcato
'midi-extra-velocity 40)


You can just repeat those definitions from script-init.ly without the 
midi-extra-velocity setting:


accent = #(make-articulation 'accent)
marcato = #(make-articulation 'marcato)

Don't forget to also re-issue

dashHat = \marcato
dashLarger = \accent

in order to update the shorthands -^ etc.

Also notice that your version indication (\version 2.22.2) does not 
match the source you seem to haved used for reference: If I'm not 
mistaken, the change I made in the definition of articulation symbols 
switching from


#(make-articulation "accent")

to

#(make-articulation 'accent)

is only available in high 2.23.x versions, not in the 2.22 series.

Lukas

Re: DurationLine avoiding RehearsalMarks

2022-04-17 Thread Mark Knoop

At 13:09 on 16 Apr 2022, Thomas Morley wrote:

Am Mo., 11. Apr. 2022 um 11:03 Uhr schrieb Thomas Morley
:


I hesitate to post untested wip-code on the user-list, I'll send it privately.



Hi Mark,

MR is now open:
https://gitlab.com/lilypond/lilypond/-/merge_requests/1310
Apart from huge simplifictions it fixes the initial problem of this
thread as well.

NB the fix here:
https://gitlab.com/lilypond/lilypond/-/merge_requests/1294
is not part of it.

Many thanks to Jean!

Best,
  Harm


That's brilliant, thanks Harm, and Jean. Will test on my project shortly.

--
Mark Knoop