Alignment problem

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Alignment problem

Menu Jacques
Hello folks,

Can the « Fine » and « f » be on the same horizontal line while remaining attached to two differents notes, without using any separate dynamics voice?

Thanks!

JM

\version "2.19.55"

\relative b, {
  \key g \major
  \clef "bass"
  \time 3/4

  d4
  \fermata _\markup{\italic "Fine"}
  g4 \f
  b4
}




_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Alignment problem

Phil Holmes

textLengthOn ?

--
Phil Holmes
 
 
----- Original Message -----
Sent: Monday, August 07, 2017 7:19 AM
Subject: Alignment problem

Hello folks,

Can the « Fine » and « f » be on the same horizontal line while remaining attached to two differents notes, without using any separate dynamics voice?

Thanks!

JM

\version "2.19.55"

\relative b, {
  \key g \major
  \clef "bass"
  \time 3/4

  d4
  \fermata _\markup{\italic "Fine"}
  g4 \f
  b4
}




_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user

_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Alignment problem

Manuela
A solution comes in mind but you have to assign dynamic and text to the same note:

\version "2.19.48"
dynamictext =
#(define-event-function (text) (markup?)
   (if (string? text)
       (let* ((underscores-replaced
               (string-map
                (lambda (x) (if (eq? x #\_) #\space x))
                text))
              (split-text (string-split underscores-replaced #\space))
              (formatted (map
                          (lambda (word)
                            (if (string-match "^[mrzfps]*$" word)
                                (markup #:dynamic word)
                                (markup #:normal-text #:italic word)))
                          split-text)))
         #{
           #(make-dynamic-script (make-line-markup formatted))
         #})
       ;; user provided a full-blown markup, so we don't mess with it:
       #{
         #(make-dynamic-script (markup #:normal-text text))
       #}))
      
\relative b, {
  \key g \major
  \clef "bass"
  \time 3/4
  d4\fermata \dynamictext
  \markup {
    \italic "Fine" \dynamic "p" }
  g4
  b4
}

HTH
Manuela

2017-08-07 9:41 GMT+02:00 Phil Holmes <[hidden email]>:
textLengthOn ?

--
Phil Holmes
 
 
----- Original Message -----
Sent: Monday, August 07, 2017 7:19 AM
Subject: Alignment problem

Hello folks,

Can the « Fine » and « f » be on the same horizontal line while remaining attached to two differents notes, without using any separate dynamics voice?

Thanks!

JM

\version "2.19.55"

\relative b, {
  \key g \major
  \clef "bass"
  \time 3/4

  d4
  \fermata _\markup{\italic "Fine"}
  g4 \f
  b4
}




_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user


_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user



_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Alignment problem

Menu Jacques
In reply to this post by Menu Jacques
Hello Phil,

\textLengthOn doesn't solve the problem, thanks anyway!

JM

Jacques Menu, iPhone

> Le 7 août 2017 à 08:19, Menu Jacques <[hidden email]> a écrit :
>
> Hello folks,
>
> Can the « Fine » and « f » be on the same horizontal line while remaining attached to two differents notes, without using any separate dynamics voice?
>
> Thanks!
>
> JM
>
> \version "2.19.55"
>
> \relative b, {
>   \key g \major
>   \clef "bass"
>   \time 3/4
>
>   d4
>   \fermata _\markup{\italic "Fine"}
>   g4 \f
>   b4
> }
>
>

>
>

_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user

PastedGraphic-1.tiff (10K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Alignment problem

Phil Holmes
It does, but only if you attach the markup to the note.  As it turns out, it
still _just_ collides with the forte, so adding a space to the end of "fine"
solves this.  However, they still don't align since they are both avoiding
note stems of different lengths.

\relative b, {
  \key g \major
  \clef "bass"
  \time 3/4

  \textLengthOn
  d4 _\markup{\italic "Fine "}
  \fermata
  g4 \f
  b4
}


--
Phil Holmes


----- Original Message -----
From: "Jacques Menu" <[hidden email]>
To: "Lilypond-User Mailing List" <[hidden email]>
Sent: Monday, August 07, 2017 1:30 PM
Subject: Re: Alignment problem


Hello Phil,

\textLengthOn doesn't solve the problem, thanks anyway!

JM

Jacques Menu, iPhone

> Le 7 août 2017 à 08:19, Menu Jacques <[hidden email]> a écrit :
>
> Hello folks,
>
> Can the « Fine » and « f » be on the same horizontal line while remaining
> attached to two differents notes, without using any separate dynamics
> voice?
>
> Thanks!
>
> JM
>
> \version "2.19.55"
>
> \relative b, {
>   \key g \major
>   \clef "bass"
>   \time 3/4
>
>   d4
>   \fermata _\markup{\italic "Fine"}
>   g4 \f
>   b4
> }
>
>



--------------------------------------------------------------------------------


>>
>>
>


--------------------------------------------------------------------------------


> _______________________________________________
> lilypond-user mailing list
> [hidden email]
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>


_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Alignment problem

Manuela
What about

\relative b, {
 \key g \major
 \clef "bass"
 \time 3/4

 \textLengthOn
 d4 _\markup{\italic "Fine"}
 \fermata
 g4- \markup { \dynamic "f" }
 b4
}


2017-08-07 15:18 GMT+02:00 Phil Holmes <[hidden email]>:
It does, but only if you attach the markup to the note.  As it turns out, it still _just_ collides with the forte, so adding a space to the end of "fine" solves this.  However, they still don't align since they are both avoiding note stems of different lengths.

\relative b, {
 \key g \major
 \clef "bass"
 \time 3/4

 \textLengthOn
 d4 _\markup{\italic "Fine "}
 \fermata
 g4 \f
 b4
}


--
Phil Holmes


----- Original Message ----- From: "Jacques Menu" <[hidden email]>
To: "Lilypond-User Mailing List" <[hidden email]>
Sent: Monday, August 07, 2017 1:30 PM
Subject: Re: Alignment problem



Hello Phil,

\textLengthOn doesn't solve the problem, thanks anyway!

JM

Jacques Menu, iPhone

Le 7 août 2017 à 08:19, Menu Jacques <[hidden email]> a écrit :

Hello folks,

Can the « Fine » and « f » be on the same horizontal line while remaining attached to two differents notes, without using any separate dynamics voice?

Thanks!

JM

\version "2.19.55"

\relative b, {
  \key g \major
  \clef "bass"
  \time 3/4

  d4
  \fermata _\markup{\italic "Fine"}
  g4 \f
  b4
}





--------------------------------------------------------------------------------







--------------------------------------------------------------------------------



_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user



_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user


_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Alignment problem

Menu Jacques
Hello Manuela,

+2, thanks, using two markups is both elegant and simple!

JM

Le 8 août 2017 à 12:18, Manuela Gößnitzer <[hidden email]> a écrit :

What about

\relative b, {
 \key g \major
 \clef "bass"
 \time 3/4

 \textLengthOn
 d4 _\markup{\italic "Fine"}
 \fermata
 g4- \markup { \dynamic "f" }
 b4
}


2017-08-07 15:18 GMT+02:00 Phil Holmes <[hidden email]>:
It does, but only if you attach the markup to the note.  As it turns out, it still _just_ collides with the forte, so adding a space to the end of "fine" solves this.  However, they still don't align since they are both avoiding note stems of different lengths.

\relative b, {
 \key g \major
 \clef "bass"
 \time 3/4

 \textLengthOn
 d4 _\markup{\italic "Fine "}
 \fermata
 g4 \f
 b4
}


--
Phil Holmes


----- Original Message ----- From: "Jacques Menu" <[hidden email]>
To: "Lilypond-User Mailing List" <[hidden email]>
Sent: Monday, August 07, 2017 1:30 PM
Subject: Re: Alignment problem



Hello Phil,

\textLengthOn doesn't solve the problem, thanks anyway!

JM

Jacques Menu, iPhone

Le 7 août 2017 à 08:19, Menu Jacques <[hidden email]> a écrit :

Hello folks,

Can the « Fine » and « f » be on the same horizontal line while remaining attached to two differents notes, without using any separate dynamics voice?

Thanks!

JM

\version "2.19.55"

\relative b, {
  \key g \major
  \clef "bass"
  \time 3/4

  d4
  \fermata _\markup{\italic "Fine"}
  g4 \f
  b4
}





--------------------------------------------------------------------------------







--------------------------------------------------------------------------------



_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user



_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user

_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user


_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user
Loading...