AW: Problems with Barré

2020-10-27 Thread sir.teddy.the.first
Thank you very much.

-Ursprüngliche Nachricht-
Von: Thomas Morley  
Gesendet: Dienstag, 27. Oktober 2020 10:10
An: sir.teddy.the.fi...@gmail.com
Cc: lilypond-user 
Betreff: Re: Problems with Barré

Am Di., 27. Okt. 2020 um 09:58 Uhr schrieb :
>
> Hi all,
>
> I’m using this barré-function from the LSR and I’m trying to make it work 
> when the first note (or the last one) is a rest.
>
>
>
> Here’s the code:
>
> 
>
> \version "2.20.0"
>
> guitbarre =
>
> #(define-music-function (barre location str music) (string? ly:music?)
>
>   (let ((elts (extract-named-music music '(NoteEvent EventChord
>
> (if (pair? elts)
>
> (let ((first-element (first elts))
>
>   (last-element (last elts)))
>
>   (set! (ly:music-property first-element 'articulations)
>
> (cons (make-music 'TextSpanEvent 'span-direction 
> -1)
>
>   (ly:music-property first-element 
> 'articulations)))
>
>   (set! (ly:music-property last-element 'articulations)
>
> (cons (make-music 'TextSpanEvent 'span-direction 
> 1)
>
>   (ly:music-property last-element 
> 'articulations))
>
>   #{
>
>   \once \override TextSpanner.font-shape = #'upright
>
>   \once \override TextSpanner.staff-padding = #3
>
>   \once \override TextSpanner.style = #'line
>
>   \once \override TextSpanner.to-barline = ##f
>
>   \once \override TextSpanner.bound-details =
>
>#`((left
>
>(text . ,#{ \markup { \raise #-.5 \concat { \bold { 
> #str " " }}} #})
>
>(Y . 0)
>
>(padding . .25)
>
>(attach-dir . -2))
>
>   (right
>
>(text . ,#{ \markup { \draw-line #'( 0 . -1) } #})
>
>(Y . 0)
>
>(padding . 0.25)
>
>(attach-dir . 2)))
>
>  $music
>
>   #})
>
>
>
> \relative c' {
>
>   %1   <-- This one works
>
>   \guitbarre #"VI" { g4 g4 g4 g4 }
>
>
>
>   %2 <-- This one does not
>
>   <<
>
> \new Voice \guitbarre #"I" {\voiceOne r4 4  4 4}
>
> \new Voice {\voiceTwo f,1}
>
>   >>
>
> }
>
> 
>
>
>
> What do I have to change or is there some other trick to make it work?
>
>
>
> Thanks In Advance

Change:
   (let ((elts (extract-named-music music '(NoteEvent EventChord to
  (let ((elts (extract-named-music music '(RestEvent NoteEvent EventChord

Cheers,
  Harm




Problems with Barré

2020-10-27 Thread sir.teddy.the.first
Hi all,

I’m using   this barré-function from
the LSR and I’m trying to make it work when the first note (or the last one)
is a rest.

 

Here’s the code:



\version "2.20.0"

guitbarre =

#(define-music-function (barre location str music) (string? ly:music?)

  (let ((elts (extract-named-music music '(NoteEvent EventChord

(if (pair? elts)

(let ((first-element (first elts))

  (last-element (last elts)))

  (set! (ly:music-property first-element 'articulations)

(cons (make-music 'TextSpanEvent 'span-direction -1)

  (ly:music-property first-element 'articulations)))

  (set! (ly:music-property last-element 'articulations)

(cons (make-music 'TextSpanEvent 'span-direction 1)

  (ly:music-property last-element
'articulations))

  #{

  \once \override TextSpanner.font-shape = #'upright

  \once \override TextSpanner.staff-padding = #3

  \once \override TextSpanner.style = #'line

  \once \override TextSpanner.to-barline = ##f

  \once \override TextSpanner.bound-details =

   #`((left

   (text . ,#{ \markup { \raise #-.5 \concat { \bold { #str
" " }}} #})

   (Y . 0)

   (padding . .25)

   (attach-dir . -2))

  (right

   (text . ,#{ \markup { \draw-line #'( 0 . -1) } #})

   (Y . 0)

   (padding . 0.25)

   (attach-dir . 2)))

 $music

  #})

 

\relative c' {

  %1   <-- This one works

  \guitbarre #"VI" { g4 g4 g4 g4 }

 

  %2 <-- This one does not

  <<

\new Voice \guitbarre #"I" {\voiceOne r4 4  4 4}

\new Voice {\voiceTwo f,1}

  >>

}



 

What do I have to change or is there some other trick to make it work?

 

Thanks In Advance



AW: Differentiate between contexts

2020-07-01 Thread sir.teddy.the.first
Thanks, that's what I was looking for.

-Ursprüngliche Nachricht-
Von: lilypond-user
 Im Auftrag von
Aaron Hill
Gesendet: Mittwoch, 1. Juli 2020 16:36
An: lilypond-user@gnu.org
Betreff: Re: Differentiate between contexts

On 2020-07-01 7:08 am, sir.teddy.the.fi...@gmail.com wrote:
> How can I explicitly reference the second ChordNames-Context, 
> preferably by name?

Does this work?  (I assumed you wanted to modify chrdsII.)


\version "2.20.0"

\score {
   <<
 \new ChordNames = "chrdsI" \with { chordChanges = ##t }
 \chordmode { e1:min | 1 | 1 | 1 | 1 | 1 | 1 | 1 | }
 \new Staff \relative c' { c1 d e f g a b c | }

 \new ChordNames = "chrdsII" \with { chordChanges = ##t }
 \chordmode { e1:min | 1 | 1 | 1 | 1 | 1 | 1 | 1 | }
 \new Staff \relative c' {
   c1 | 1 | 1 | 1 |
   \context ChordNames = "chrdsII"
 { \set chordChanges = ##f }
   1 | 1 | 1 | 1 |
 }
   >>
}



-- Aaron Hill




Differentiate between contexts

2020-07-01 Thread sir.teddy.the.first
Hi all,

please consider the following snippet:

 



\version "2.20.0"

 

\score {

  <<

\new ChordNames = "chrdsI" \chordmode { \set chordChanges = ##t e1:min |
1 | 1 | 1 | 1 | 1 | 1 | 1 | }

\new Staff \relative c'{ c1 d e f g a b c | }



\new ChordNames = "chrdsII" \chordmode { \set chordChanges = ##t a1:min
| 1 | 1 | 1 | 1 | 1 | 1 | 1 | }

\new Staff \relative c'{ c1 | 1 | 1 | 1 | \set ChordNames.chordChanges =
##f 1 | 1 | 1 | 1 | }

  >>

}



 

The command "\set ChrodNames.chordchanges = ##f" in the second staff always
applies to the first ChordNames-Context.

How can I explicitly reference the second ChordNames-Context, preferably by
name?

 

Thanks in advance

 



AW: Use an existing Voice in a polyphonic passage

2020-06-23 Thread sir.teddy.the.first
Thanks Xavier, that was exactly what I was looking for!

 

Von: Xavier Scheuer  
Gesendet: Dienstag, 23. Juni 2020 16:35
An: sir.teddy.the.fi...@gmail.com
Cc: lilypond-user Mailinglist 
Betreff: Re: Use an existing Voice in a polyphonic passage

 

On Tue, 23 Jun 2020 at 15:59, mailto:sir.teddy.the.fi...@gmail.com> > wrote:
>
> Hi all,
>
> is there a way to „continue“ with the voice „myVoice“ in the second 
> polyphonic passage instead of creating a new one so that the lyrics „wordsI“ 
> carry on and I don’t have to create an additional lyrics context?
>

 

Hello,

 

Use the \context command and keep the voices alive.

See NR 5.1.2 Creating and referencing contexts and NR 5.1.3 Keeping contexts 
alive

http://lilypond.org/doc/v2.20/Documentation/notation/creating-and-referencing-contexts.html

http://lilypond.org/doc/v2.20/Documentation/notation/keeping-contexts-alive.html
 


Cheers,

Xavier

-- 
Xavier Scheuer mailto:x.sche...@gmail.com> >

 



Use an existing Voice in a polyphonic passage

2020-06-23 Thread sir.teddy.the.first
Hi all,

is there a way to "continue" with the voice "myVoice" in the second
polyphonic passage instead of creating a new one so that the lyrics "wordsI"
carry on and I don't have to create an additional lyrics context?

 

Thanks in advance

 

%%

\version "2.20.0"

 

wordsI = \lyricmode {

  This is a test "1" "2"

  This is a test "1" "2"

}

 

wordsII = {

  \lyricmode { te -- st te --st }

}

 

\score {

  <<

\new Staff = "testStaff" {

  \new Voice = "first" \relative c'{

c4 d e f |



<<

  \relative c''{ \voiceOne c2 g }

  \new Voice = "second" \relative c'' { \voiceTwo g f }

>>

\oneVoice





c4 d e f |



<<

  \relative c''{ \voiceOne c2 g }

  \new Voice = "second" \relative c'' { \voiceTwo g f }

>>

\oneVoice

  }

}

\new Lyrics = "firstVoice" {

  \lyricsto "first" \wordsI

}

\new Lyrics = "secondVoice" \with { alignAboveContext = "testStaff" }{

  \lyricsto "second" \wordsII

}

  >>  

} 

%%



AW: AW: Frescobaldi Sessions

2020-04-12 Thread sir.teddy.the.first
I exported and then imported the key "frescobaldi/sessions" and it worked.
I did not need any other keys.


> -Ursprüngliche Nachricht-
> Von: Federico Bruni 
> Gesendet: Sonntag, 12. April 2020 21:54
> An: sir.teddy.the.fi...@gmail.com
> Cc: 'Urs Liska' ; lilypond-user@gnu.org
> Betreff: Re: AW: Frescobaldi Sessions
> 
> 
> 
> Il giorno sab 11 apr 2020 alle 22:45, sir.teddy.the.fi...@gmail.com ha
> scritto:
> > Hi,
> >
> > thanks for the response, I’m on Windows.
> >
> > I found
> > “HKEY_CURRENT_USER/Software/frescobaldi/frescobaldi/sessions”.
> >
> > Is that all I have to copy or is anything from “sessiondata”
> > needed as well?
> >
> >
> 
> I'm not a Windows user, but IIRC you can "export" a key and all its
"nodes"
> and then reimport it in another machine.
> So I would export HKEY_CURRENT_USER/Software/frescobaldi
> 





AW: Frescobaldi Sessions

2020-04-11 Thread sir.teddy.the.first
Hi,

thanks for the response, I’m on Windows.

I found “HKEY_CURRENT_USER/Software/frescobaldi/frescobaldi/sessions”. 

Is that all I have to copy or is anything from “sessiondata” needed as well?

 

Von: Urs Liska  
Gesendet: Samstag, 11. April 2020 20:44
An: sir.teddy.the.fi...@gmail.com; lilypond-user@gnu.org
Betreff: Re: Frescobaldi Sessions

 

Hi

 

Am Samstag, den 11.04.2020, 20:42 +0200 schrieb sir.teddy.the.fi...@gmail.com 
 :

Hi all,

I’m trying to synchronize my Frescobaldi-installation with a different device.
Is there any faster way than exporting and importing every single session on 
its own, like copying a file where all the sessions are stored?

 

 

Yes.

 

But it depends on the operating system you are using. Linux and Mac store the 
settings in a file while Windows uses the registry.

 

Urs

 

Thanks in advance



Frescobaldi Sessions

2020-04-11 Thread sir.teddy.the.first
Hi all,

I'm trying to synchronize my Frescobaldi-installation with a different
device.
Is there any faster way than exporting and importing every single session on
its own, like copying a file where all the sessions are stored?

 

Thanks in advance



AW: Bend before

2020-03-26 Thread sir.teddy.the.first
%%%

 

\version "2.20.0"

 

#(define (make-bend x) 

   (make-music 'BendAfterEvent 'delta-step x))

 

bend =#(define-music-function 

(delta) 

(integer?)

(make-bend (* -1 delta)))

 

bendBefore  = #(define-music-function

(argument) 

(integer?)

  #{ 

\once \override BendAfter.rotation = #'(-180 -1 -1)

\bend $argument  

  #} 

)   

 

{

  c'1\bendAfter #4 e'1 d' \bendBefore #5 e'

}

 

%%%

 

This fixes the GUILE-Error by removing the extra “#” before “$argument”, but 
now I get this error:

 

warning: Unattached BendAfterEvent

c'1\bendAfter #4 e'1 d' 

\bendBefore #5 e'

 

It is probably looking for a note to attach the “bend” to, but I do not know 
lilypond and scheme well enough to be able to fix it.

 

One temporary solution would be to use a \bendAfter command and just manually 
tweak the rotation via “\once \override BendAfter.rotation = #'(Rotation X Y)”.

 

Von: lilypond-user 
 Im Auftrag von 
Mogens Lemvig Hansen
Gesendet: Donnerstag, 26. März 2020 20:40
An: Lilypond User 
Betreff: Bend before

 

Hi,

 

The bendBefore code at

  
http://lilypond.1069038.n5.nabble.com/bends-before-notes-how-to-td22214.html

does not work for me (version 2.20.0).  

 

error: GUILE signaled an error for the expression beginning here

\bend #

$argument

 

Does anyone have a solution?

 

Regards,

Mogens

 

 

 



Change line-thickness of arpeggio brackets

2020-02-10 Thread sir.teddy.the.first
Hi all,

is it possible to change the line-thickness of the arpeggio-brackets or do I
have to recreate this bracket manually if I want to change anything?

 



\version "2.19.83"

 

\relative c' {

  \arpeggioBracket

  4\arpeggio d e f

}



 

The Arpeggio-Object does not seem to have a thickness setting .

 

Thanks in advance

 



AW: "Quote" Chord Track in another Staff

2020-02-08 Thread sir.teddy.the.first
Yes, thank you.
I tried to do it that way but I always forget the "\etc" so I got an error 
message.

> -Ursprüngliche Nachricht-
> Von: Thomas Morley 
> Gesendet: Samstag, 8. Februar 2020 14:30
> An: sir.teddy.the.fi...@gmail.com
> Cc: lilypond-user 
> Betreff: Re: "Quote" Chord Track in another Staff
> 
> Am Sa., 8. Feb. 2020 um 14:18 Uhr schrieb :
> >
> > If I've understood everything you said correctly, I should have now made all
> the necessary changes:
> 
> Well, not all changes were _necessary_, p.e. using 'parser location'
> in music-functions still works. Superfluous, though.
> 
> >
> > %
> > \version "2.19.83"
> >
> > quoteChord = #(define-music-function
> > (staffName music)
> > (string? ly:music?)
> >
> > #{
> >   \context ChordNames = #(string-append staffName "-chords")
> > \quoteDuring "chrds" {
> >   \context Staff = $staffName { $music }
> > }
> > #}
> > )
> 
> You could do
> quoteChordSecond = \quoteChord "second" \etc
> 
> >
> > chordTrack = \chordmode {
> >   \repeat unfold 2 {
> > c1 d e f |
> >   }
> > }
> >
> > %% make 'chordTrack' quotable
> > \addQuote "chrds" { \chordTrack }
> >
> > notes = \relative c' {
> >   \repeat unfold 8 {
> > c4 d e f |
> >   }
> > }
> >
> > otherNotes = \relative c' {
> 
> Then here:
>   c1 d e f g a \quoteChordSecond { b } c
> 
> >   c1 d e f g a \quoteChord "second" { b } c }
> >
> > \score {
> >   <<
> >   \new ChordNames \chordTrack
> >   \new Staff \notes
> >   %% initiate a ChordNames-context which may be filled form 'otherNotes'
> >   \new ChordNames = "second-chords" { #(skip-of-length otherNotes) }
> >   \new Staff = "second" \otherNotes
> >   >>
> > }
> > %
> >
> > Now I should not encounter any problems as long as I always name the
> ChordNames corresponding the staff, "(name-of-the-staff)-chords".
> > Is there a way to store ' \quoteChord "second" ' in a variable so I only 
> > have
> to define it once per staff?
> > That would shorten it even further.
> 
> Cheers,
>   Harm




AW: "Quote" Chord Track in another Staff

2020-02-08 Thread sir.teddy.the.first
If I've understood everything you said correctly, I should have now made all 
the necessary changes:

%
\version "2.19.83"

quoteChord = #(define-music-function
(staffName music)
(string? ly:music?)

#{
  \context ChordNames = #(string-append staffName "-chords")
\quoteDuring "chrds" {
  \context Staff = $staffName { $music }
}
#}
)

chordTrack = \chordmode {
  \repeat unfold 2 {
c1 d e f |
  }
}

%% make 'chordTrack' quotable
\addQuote "chrds" { \chordTrack }

notes = \relative c' {
  \repeat unfold 8 {
c4 d e f |
  }
}

otherNotes = \relative c' {
  c1 d e f g a \quoteChord "second" { b } c
}

\score {
  <<
  \new ChordNames \chordTrack
  \new Staff \notes
  %% initiate a ChordNames-context which may be filled form 'otherNotes'
  \new ChordNames = "second-chords" { #(skip-of-length otherNotes) }
  \new Staff = "second" \otherNotes
  >>
}
%

Now I should not encounter any problems as long as I always name the ChordNames 
corresponding the staff, "(name-of-the-staff)-chords".
Is there a way to store ' \quoteChord "second" ' in a variable so I only have 
to define it once per staff?
That would shorten it even further.


> -Ursprüngliche Nachricht-
> Von: Thomas Morley 
> Gesendet: Samstag, 8. Februar 2020 13:42
> An: sir.teddy.the.fi...@gmail.com
> Cc: lilypond-user 
> Betreff: Re: "Quote" Chord Track in another Staff
> 
> Am Sa., 8. Feb. 2020 um 13:23 Uhr schrieb :
> >
> > Hi,
> > thank you for this solution.
> > I only made a very small adjustment and now at least I would call it
> "elegant".
> > I put all the commands needed to "quote" from the chord track into a
> function, so now I only have to type one command instead  of three.
> > I'm not versed enough in using Lilypond to know if this can be shortened
> even more or if there are some situations where it won't work at all, but I'm
> going to stick with it because it's still more elegant than what I used 
> before.
> > Thank you.
> 
> Glad I could help.
> 
> Some remarks:
> 
> >
> > %%%
> > \version "2.19.83"
> >
> > chordTrack = \chordmode {
> >   \repeat unfold 2 {
> > c1 d e f |
> >   }
> > }
> >
> > %% make 'chordTrack' quotable
> > \addQuote "chrds" { \chordTrack }
> >
> > notes = \relative c' {
> >   \repeat unfold 8 {
> > c4 d e f |
> >   }
> > }
> >
> 
> This relies on matching context-names, so you have to care about them
> manually
> 
> > quoteChord = #(define-music-function
> 
> No need for 'parser location' in music-functions for 2.19.x, you could delete
> them
> 
> > (parser location music)
> > (ly:music?)
> > #{
> >   \context ChordNames = "chrds-2"
> > \quoteDuring "chrds" {
> 
> I'd use $music instead, refer to the Extending manual for the difference.
> Although I doubt it makes a difference here, I'm used to be a paranoiac ...
> 
> >   \context Staff = "2" { #music }
> > }
> > #}
> > )
> >
> > otherNotes = \relative c' {
> >   c1 d e f g a \quoteChord { b } c
> > }
> >
> > \score {
> >   <<
> >   \new ChordNames \chordTrack
> >   \new Staff \notes
> >   %% initiate a ChordNames-context which may be filled form 'otherNotes'
> 
> Likely more robust to do:
>   \new ChordNames = "chrds-2" { #(skip-of-length otherNotes) }
> 
> >   \new ChordNames = "chrds-2"
> >   \new Staff = "2" \otherNotes
> >   >>
> > }
> > %%%
> 
> Cheers,
>   Harm




AW: "Quote" Chord Track in another Staff

2020-02-08 Thread sir.teddy.the.first
Hi,
thank you for this solution.
I only made a very small adjustment and now at least I would call it "elegant".
I put all the commands needed to "quote" from the chord track into a function, 
so now I only have to type one command instead  of three.
I'm not versed enough in using Lilypond to know if this can be shortened even 
more or if there are some situations where it won't work at all, but I'm going 
to stick with it because it's still more elegant than what I used before.
Thank you.

%%%
\version "2.19.83"

chordTrack = \chordmode {
  \repeat unfold 2 {
c1 d e f |
  }
}

%% make 'chordTrack' quotable
\addQuote "chrds" { \chordTrack }

notes = \relative c' {
  \repeat unfold 8 {
c4 d e f |
  }
}

quoteChord = #(define-music-function
(parser location music)
(ly:music?)
#{
  \context ChordNames = "chrds-2"
\quoteDuring "chrds" {
  \context Staff = "2" { #music }
}
#}
)

otherNotes = \relative c' {
  c1 d e f g a \quoteChord { b } c
}

\score {
  <<
  \new ChordNames \chordTrack
  \new Staff \notes
  %% initiate a ChordNames-context which may be filled form 'otherNotes'
  \new ChordNames = "chrds-2"
  \new Staff = "2" \otherNotes
  >>
}
%%%


> -Ursprüngliche Nachricht-
> Von: Thomas Morley 
> Gesendet: Samstag, 8. Februar 2020 13:02
> An: sir.teddy.the.fi...@gmail.com
> Cc: lilypond-user 
> Betreff: Re: "Quote" Chord Track in another Staff
> 
> Am Sa., 8. Feb. 2020 um 12:42 Uhr schrieb :
> >
> > Hi all,
> >
> > please consider the following snippet:
> >
> >
> >
> > %
> >
> > \version "2.19.83"
> >
> >
> >
> > notes = \relative c' {
> >
> >   \repeat unfold 8 {
> >
> > c4 d e f |
> >
> >   }
> >
> > }
> >
> >
> >
> > otherNotes = \relative c' {
> >
> >   c1 d e f g^\markup "C" a^\markup "D" b c
> >
> > }
> >
> >
> >
> > chordTrack = \chordmode {
> >
> >   \repeat unfold 2 {
> >
> > c1 d e f |
> >
> >   }
> >
> > }
> >
> >
> >
> > \score {
> >
> >   <<
> >
> >   \new ChordNames \chordTrack
> >
> >   \new Staff \notes
> >
> >   \new Staff \otherNotes
> >
> >   >>
> >
> > }
> >
> > %
> >
> >
> >
> > I’ve got the normal chords at the top and I would like to have parts of that
> chord-track again over the second staff (simulated with the two markup-
> commands).
> >
> > Of course I could just use a second variable containing only the chords I
> want and leaving the rest blank, but I’m curious if there is a way to re-use 
> the
> first chords.
> >
> > How can this be done in a more “elegant” way?
> >
> >
> >
> > Thanks in advance
> 
> Hi,
> 
> you could try (ee inline comments):
> 
> chordTrack = \chordmode {
>   \repeat unfold 2 {
> c1 d e f |
>   }
> }
> 
> %% make 'chordTrack' quotable
> \addQuote "chrds" { \chordTrack }
> 
> notes = \relative c' {
>   \repeat unfold 8 {
> c4 d e f |
>   }
> }
> 
> otherNotes = \relative c' {
>   c1 d e f
>   %% refer to the preexisting and named ChordNames-context, to put in the
> quotes
>   \context ChordNames = "chrds-2"
> \quoteDuring "chrds" {
>   %% while putting quotes into the relevant ChordNames-context, refer to
>   %% the preexisting and named Staff-context to continue entering "normal"
>   %% stuff
>   \context Staff = "2" { g1 a }
> }
>   b c
> }
> 
> \score {
>   <<
>   \new ChordNames \chordTrack
>   \new Staff \notes
>   %% initiate a ChordNames-context which may be filled form 'otherNotes'
>   \new ChordNames = "chrds-2"
>   \new Staff = "2" \otherNotes
>   >>
> }
> 
> Not sure, if someone would call it "elegent" ...
> 
> 
> Cheers,
>   Harm




"Quote" Chord Track in another Staff

2020-02-08 Thread sir.teddy.the.first
Hi all,

please consider the following snippet:

 

%

\version "2.19.83"

 

notes = \relative c' {

  \repeat unfold 8 {

c4 d e f |

  }

}

 

otherNotes = \relative c' {

  c1 d e f g^\markup "C" a^\markup "D" b c

}

 

chordTrack = \chordmode {

  \repeat unfold 2 {

c1 d e f |

  }

}

 

\score {

  <<

  \new ChordNames \chordTrack

  \new Staff \notes

  \new Staff \otherNotes

  >>

}

%

 

I've got the normal chords at the top and I would like to have parts of that
chord-track again over the second staff (simulated with the two
markup-commands).

Of course I could just use a second variable containing only the chords I
want and leaving the rest blank, but I'm curious if there is a way to re-use
the first chords.

How can this be done in a more "elegant" way?

 

Thanks in advance 



Compress "empty" Bars when using a separate variable for structure

2020-01-27 Thread sir.teddy.the.first
Hello All,

please consider the following snippet:

 



\version "2.19.83"

 

music = \relative c'{

  \compressFullBarRests

  R1*3 |

  \repeat unfold 2 {c8 d e fis g a b c}

}

 

struct = {

  \key c \major

  \tempo 4 = 140

  s1 |

  s1 |

  s1 |

  \key g \major

  

}

 

\score {\new Staff {<< \music \struct>>}}



 

I'm using a separate variable for structural elements like time-signature,
etc. which prevents lilypond from compressing the full-bar rests.

What do I have to change so that the three rests at the beginning get merged
like they would if I removed the struct-variable?

 

Thanks 



Re: AW: Odd Behaviour: \break after \repeat

2020-01-24 Thread sir.teddy.the.first
> -Ursprüngliche Nachricht-

> Von: lilypond-user  bounces+sir.teddy.the.first=gmail@gnu.org> Im Auftrag von Aaron Hill

> Gesendet: Freitag, 24. Januar 2020 09:51

> An: lilypond-user@gnu.org

> Betreff: Re: AW: Odd Behaviour: \break after \repeat

> 

> On 2020-01-24 12:32 am,  <mailto:sir.teddy.the.fi...@gmail.com>
sir.teddy.the.fi...@gmail.com wrote:

> > Thank you for your answer, David.

> > It does make sense that way.

> > Guess I'll just use "Te_- st" in this case to get rid of the extra

> > hyphen.

> 

> You shouldn't have to do that.  Rather, change how far apart you want

> LyricHyphens:

> 

> 

>\override LyricHyphen.dash-period = #100 % default is 10 

> 

> 

> -- Aaron Hill

 

Thank you, I guess that‘s what I was looking for.



AW: Odd Behaviour: \break after \repeat

2020-01-24 Thread sir.teddy.the.first
Thank you for your answer, David.
It does make sense that way.
Guess I'll just use "Te_- st" in this case to get rid of the extra hyphen.

> -Ursprüngliche Nachricht-
> Von: David Wright 
> Gesendet: Freitag, 24. Januar 2020 02:38
> An: sir.teddy.the.fi...@gmail.com
> Cc: 'lilypond-user' 
> Betreff: Re: Odd Behaviour: \break after \repeat
> 
> On Thu 23 Jan 2020 at 21:03:40 (+0100), sir.teddy.the.fi...@gmail.com wrote:
> > […]
> >   Test Test, Test, Te -- st }
> > […]
> > When I compile this, Lilypond outputs this weird double-hyphen as if
> > it actually inserts an empty syllable where there should be none.
> >
> > Strangely, if I remove the "\break" after the "\repeat"-command, it
> > outputs a single hyphen like it should.
> >
> > Is this a bug or what am I doing wrong?
> 
> No bug, nothing wrong. You've hyphenated the lyrics "Te" and "st"; LP will
> print enough hyphens to fill the space between the two syllables. If "Te" was
> set to a melisma extending over several lines, LP would print lines of lyrics
> consisting entirely of hyphens until it reached the syllable "st".
> 
> Cheers,
> David.




Odd Behaviour: \break after \repeat

2020-01-23 Thread sir.teddy.the.first
Hi everyone,

please consider the following snippet:

 



\version "2.19.83"

 

melody = \relative c'' {

r2. r4. e  |   %T69

a,4. fis4.~ fis a |   %T70

g1. }

 

words = \lyricmode {

  Test Test, Test, Te -- st }

 

struct = {

  \time 12/8

  \key d \major

  \repeat volta 2 { s1. | }\break

  s\break |

  s1. |

}

 

\score {

  <<

\new Staff \with { instrumentName = #"Melody" shortInstrumentName =
#"Mel."} \new Voice = "melody" { << \struct \melody >> }

\new Lyrics \lyricsto "melody" { \words }

  >>

}

%%%

 

When I compile this, Lilypond outputs this weird double-hyphen as if it
actually inserts an empty syllable where there should be none. 

Strangely, if I remove the "\break" after the "\repeat"-command, it outputs
a single hyphen like it should.

 

Is this a bug or what am I doing wrong?

 

Thanks for your help.



German Umlauts in BookOutputName

2019-11-07 Thread sir.teddy.the.first
Hi all,

 

\version "2.19.83"


\header { title = "Wächter"}

\book 
{  
  \bookOutputName "Wächter"
  \score {
{c d e f}  
  }
}

 

Whenever I run this code, the title itself is correctly displayed with the
Umlaut, but the .pdf-File is always named “Wächter.pdf”. I’m on Windows 10.

The standard solution would be to change the encoding to UTF-8, but that is
already the case, at least for the files where I can change it.

But I have the suspicion that Lilypond is still operating in ANSI, because
the generated .log-file will always be encoded in ANSI.

This is probably a Windows-only problem, but what could I do to solve it?

(Of course I could just get rid of the Umlauts or rename the file in the
explorer, but it would be nice to understand what is causing this)

 

Thanks in advance

 



AW: Links in PDF-Files

2019-09-21 Thread sir.teddy.the.first
Thank You Guys, you solved my problem!

> -Ursprüngliche Nachricht-
> Von: Thomas Morley 
> Gesendet: Freitag, 20. September 2019 20:55
> An: Richard Shann 
> Cc: Matthew Skala ;
> sir.teddy.the.fi...@gmail.com; lilypond-user 
> Betreff: Re: Links in PDF-Files
> 
> Am Fr., 20. Sept. 2019 um 18:53 Uhr schrieb Richard Shann
> :
> >
> > On Fri, 2019-09-20 at 12:26 -0400, msk...@ansuz.sooke.bc.ca wrote:
> > > On Fri, 20 Sep 2019, sir.teddy.the.fi...@gmail.com wrote:
> > > > Why does lilypond add these links and is there a way to prevent it
> > > > from doing so?
> > >
> > > Use the "-dno-point-and-click" option on the command line when you
> > > run LilyPond to turn off these links.
> >
> > The downside of doing this (IIRC) is that *all* links are then dropped
> > - including ones that you may have put in "by hand" e.g. to enable
> > people who find your PDF to make their way to the URL of your
> > collection of source files...
> > Would it be possible to have an option with finer granularity?
> >
> > Richard
> 
> http://lilypond.org/doc/v2.19/Documentation/usage/configuring-the-system-
> for-point-and-click#selective-point_002dand_002dclick
> may help.
> 
> Cheers,
>   Harm


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


Links in PDF-Files

2019-09-20 Thread sir.teddy.the.first
Hi all,

whenever I create a pdf document with lilypond, every single note gets a
link attached to it.

This link looks something like this:

 

"textedit://PathtoMyFile/definitions.ily:1185:38:39"

 

These links do not really bother me, but there are some applications that
highlight every link in a pdf document by default, which means every single
note is highlighted and the document is completely unreadable until I either
turn the highlighting off or delete the links in an application that can
edit pdf documents.

 

Why does lilypond add these links and is there a way to prevent it from
doing so?

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


Custom Markup Command

2019-09-18 Thread sir.teddy.the.first
Hi all,

I'm trying to create a custom markup command to display text (in my case a
chord name, but it could be any text) over a note. 

This is what I have so far: 

 

%%

\version "2.19.83"

 

#(define-markup-command (chord layout props text)

   (markup?)

   (interpret-markup layout props

 #{

\markup {

\fontsize #-1

\override #'(font-name . "Georgia Bold")

#text } 

 #}))

 

\relative c' {

c4^\markup \chord "Am" d e f

}

 

%%

 

And it's working as expected, but my question is: Is it possible to shorten
this command any further?

I'd like to be able to call it with a single command (\chord "Am") instead
of " \markup \chord 'Am' " .

Is this possible?

 

Thanks

 

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


Polyrythmic Align Bars

2019-09-16 Thread sir.teddy.the.first
Hi all,

I'm not sure if what I'm trying to do is possible, but my problem is the
following:

 

%

\version "2.19.83"

 

\layout {

  \context {

\Score

\remove "Timing_translator"

\remove "Default_bar_line_engraver"

  }

  \context {

\Staff

\consists "Timing_translator"

\consists "Default_bar_line_engraver"

  }

}

 

\relative c'' <<

  \new Staff {

  \time 4/4

  e,,8 e g fis16 e8. e8  g fis |

  }

  \new Staff {

\time 6/8

g'4. e~ |

e2 e8 fis |

  }

>> 

%%

 

The 4/4-Bar needs to be played over the duration of the two 6/8-Bars and I
want it to realign afterwards to continue both voices with a 6/8 time.

The 4/4-Part would need to have a different tempo, because if both play at
the same tempo, they won't align.

It is probably harder to write this down than to actually play it, but this
should be the easiest way to notate this without using tons of tuplets.

 

Is something like this possible?

 

Thanks in advance

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


Retrieve Filename of Current Script

2019-09-10 Thread sir.teddy.the.first
Hi all,

what would I have to do in order to retrieve the filename of my current
lilypond script so that I can use it as a variable and assign it to the
title-field?

 

Thanks

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


Set /bookOutputName to Conjunction of Variable and String

2019-09-09 Thread sir.teddy.the.first
Hi all,

My score's title is set up in a variable called "title".

 

I'm trying to output a file for every instrument and thus would like to have
something like this

 

 

\version "2.19.83"

 

\book

{

\bookOutputName \title " - Clarinet"

 

.

}

 

for every instrument of my score.

But the code above outputs an error message, because it can't handle both a
variable and a plain string.

Is it possible to make this work somehow?

 

Thanks

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