Double ossia with tabulature issue

2022-07-07 Thread Neo Anderson
Hi!
I've been trying to add an ossia to an existing guitar part with the 
tabulature. However, I run into this issue that the ossia gets doubled as long 
as the tab part is uncommented. As soon as I don't use the tab staff, 
everything is fine.
I guess it's all because of my /score block, but I can't figure it out. 
The ossia itself doesn't have to have its own tab, but if, as an extra, someone 
could make it happen, I would be happy, too.
MWEs:a) Minimal reproducible example included as an attachementb) 
https://www.hacklily.org/?edit=Aelfstone/sheet-music/ossia_issue_mwe.lyc) The 
code itself

%%
\version "2.23.10"

gtrOne = {  d'1~ d'1  \break <<    { f'1 }    \new Staff     \with { 
alignAboveContext = "gtrOne" }    { c''1 }  >>    g'1}

\score {  <<    \new Staff = "gtrOne" \with { }    { \gtrOne }        \new 
TabStaff    { \gtrOne }        >>  \layout {    \context { }  }}
%%


\version "2.23.10"

gtrOne = {
  d'1~ d'1
  \break  
 
  <<
{ f'1 }
\new Staff 
\with { alignAboveContext = "gtrOne" }
{ c''1 }
  >>
  
  g'1
}


\score {
  <<
\new Staff = "gtrOne" \with { }
{ \gtrOne }

\new TabStaff
{ \gtrOne }  
  >>
  \layout {
\context { }
  }
}


Re: Version 2.21.3

2020-07-17 Thread Neo Anderson
 Thank you. It works for v. 2.21.3.Reagards,Neo
On Friday, July 17, 2020, 12:44:43 PM GMT+2, Han-Wen Nienhuys 
 wrote:  
 
 On Fri, Jul 17, 2020 at 8:38 AM Jonas Hahnfeld  wrote:
> > Test: \version "2.21.3" { c' }
> > With this last version, the first compilation is OK, but the second is 
> > failing:
> >
> > Starting lilypond-windows.exe 2.21.3 [Untitled]...
> > Processing 
> > `C:/Users/Pierre/AppData/Local/Temp/frescobaldi-j9twxm1l/tmpm7q61u5n/document.ly'
> > Parsing...
> > Interpreting music...
> > Preprocessing graphical objects...
> > Finding the ideal number of pages...
> > Fitting music on 1 page...
> > Drawing systems...
> > Converting to `document.pdf'...
> > C:/Program Files (x86)/LilyPond 
> > 2-21-3_bis/usr/share/lilypond/current/scm/backend-library.scm:108:5: In 
> > procedure rename-file in expression (rename-file pdf-name dest):
> > C:/Program Files (x86)/LilyPond 
> > 2-21-3_bis/usr/share/lilypond/current/scm/backend-library.scm:108:5: File 
> > exists
> > Exited with return code 1.
> >
> > Does anyone have the same issue?
>
> Phil reported the same problem when trying another release build.
> Han-Wen, are you looking into this?

See
https://gitlab.com/lilypond/lilypond/-/merge_requests/252

you can apply this fix locally by overwriting the .scm file with the
ones in the attached zipfile.

-- 
Han-Wen Nienhuys - hanw...@gmail.com - http://www.xs4all.nl/~hanwen
  

Re: Two conflicting text spanners

2018-01-09 Thread Neo Anderson
 David,
I'm sure you have your own priorities. With my short time I've been with this 
community I'll be the last to push my agenda.

  > My goal for the semester break is to get my measure-attached spanner patch 
submitted.
Is this what was asked for 
here:https://lists.gnu.org/archive/html/lilypond-user/2014-10/msg00164.html?






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


Re: Two conflicting text spanners

2018-01-08 Thread Neo Anderson
Dear Kieren, 
I was afraid that without any instructions the code in that thread would fail, 
but to my surprise it worked beautifully! Thank you! 

I wonder why this isn't coded into LP itself or provided as a snippet 
with the software or in some repository (or am I mistaken?) 

On Monday, January 8, 2018 5:38 PM, Kieren MacMillan 
 wrote:
 

 Hi Neo,

> I have two custom text spanners which overlap - they start and end at the 
> same notes. As LP can't apparently handle both, it gives me a warning.
> "Two simultaneous text-span events, junking this one"
> I imagine there must be some way to deal with it, but my haven't found 
> anything in LP archives.

See the thread at 
.
(And the situation may have been improved even further since then?)

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


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


Re: Guitar palm mutes - almost done

2018-01-07 Thread Neo Anderson
Thanks a lot. I followed your suggestion for the extender lines and it solved 
the issue.

BTW, I have completed the PM snippet and it works nicely. I'll share it after I 
have it tested some more. 
Anyone interested?


On Monday, January 1, 2018 11:25 AM, Malte Meyn <lilyp...@maltemeyn.de> 
wrote:
 

 

Am 31.12.2017 um 17:20 schrieb Neo Anderson:
> 1. How to change the look of the extender lines (dashes)? I'd like them 
> to be more dense or compact. The following -\tweaks with various values 
> won't make a difference.
>      -\tweak bound-details.dash-fraction #0
>      -\tweak bound-details.dash-period #0

You’re almost there: omit the bound-details, i. e.

-\tweak dash-fraction #0
-\tweak dash-period #0

> 2. The following code, which sets both variables on the same "line",
>      \override TextScript.staff-padding = #6
> creates a padding for both text in a variable ("PM") and any other text 
> attached to a note ("Aaa").
> How to integrate the code into the said variable, so that the padding 
> won't affect the text attached to notes? I tried
>      \override #'(staff-padding . 6)
> but it doesn't do anything.

PM = -\tweak staff-padding #6
      _\markup  {
        \tiny \fontsize #-1 \halign #-0.5 "P.M."
      }

and then use it as d\PM instead of d_\PM

___
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


Guitar PMs - almost done

2017-12-29 Thread Neo Anderson
Dear All,
After plenty of tweaking (as I have found it's always the case) I've come up 
with quite a satisfying code (based on David Kastrup's one) for guitar palm 
mutes. Please check out the tiny example.

There are still two things I can't figure out, though, and I would be grateful 
if anyone could help me with them.

1. How to change the look of the extender lines (dashes)? I'd like them to be 
more dense or compact. The following code with various values won't make a 
difference.
    -\tweak bound-details.dash-fraction #0
    -\tweak bound-details.dash-period #0

2. The following code, setting both variables on the same "line",
    \override TextScript.staff-padding = #6
creates a padding for both text in a variable ("PM") and any other text 
attached to a note ("Aaa").
How to integrate the code into the said variable, so that the padding won't 
affect the text attached to notes? I tried 
    \override #'(staff-padding . 6)
but it doesn't do anything.

One thing to point out: there are two variables for PMs because "startPM" won't 
parse when it's at the beginning of the line or it won't work under a single 
note. At least I am not able to work it out.
%%

% START CODE
\version "2.18.2"

startPM = -\single\textSpannerDown
  -\tweak staff-padding #5.45
  -\tweak bound-details.left.text \markup \upright \fontsize #-3 "P.M."
  -\tweak bound-details.left.stencil-align-dir-y #0
  -\tweak bound-details.right.stencil-align-dir-y #0
  -\tweak bound-details.right.text \markup \upright \fontsize #-3 "|"
  -\tweak bound-details.right.attach-dir #2
  -\tweak bound-details.left.attach-dir #-2
  -\startTextSpan

stopPM = \stopTextSpan

PM = \markup  {
  \tiny \fontsize #-1 \halign #-0.5 "P.M."
}

\new Staff { 
  \clef "G_8" 
  \override TextScript.staff-padding = #6
  % Both PMs and "Aaa" are affected by padding
  e,_\PM^"Aaa" d f d_\PM |
  a g b, \startPM c |  
  g \stopPM d' e, \startPM f, \stopPM |
}

% END CODE

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


Auto-transposition

2017-12-10 Thread Neo Anderson
Hi,
I'm new to Lilypond, coming over from a commercial program. Please, bear with 
me as I'm still learning.
The issue:
I seem to get measures auto-transposed one by one.
I have one bar of music, then the second one gets transposed one octave higher, 
the next one even one octave higher, and so on.
 
Without /relative command, the x5 chords get messed up.I use variables but I 
get the same issue without them too.
Minimal example auto-transpose-minimal.ly


| 
| 
| 
|  |  |

 |

 |
| 
|  | 
auto-transpose-minimal.ly

Shared with Dropbox
 |

 |

 |


BTW, is it OK to link a minimal example or other LY files via Dropbox?
Cheers, S.



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