Text level with the staff

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Text level with the staff

Vivyan
Hi

I'm transcribing music that has a lot of repetitions. To represent the music
I'm writing the music once and then writing " X amount of times" I want this
to appear on the right and level with the staff?
How can I do this? So far the words are underneath?

Many thanks

[code]

\version "2.19.80"
\language "english"

\header {
  title = "XMAS_EVET"
  tagline = ""  % removed
 
}

\score {
%melody
<<
  \new Staff{
  \time 4/4
  \clef bass
  \set Staff.instrumentName = #"synth"
 
    r1 % times rest 16 bars

    }
   >>
}

\markup {
  %  \hspace #1
    \column {
      \line { rest for X 16 }    
    }
    \hspace #1

}


[/code]



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html

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

Re: Text level with the staff

SoundsFromSound
On 1/16/2018 6:23 PM, Vivyan wrote:
Hi

I'm transcribing music that has a lot of repetitions. To represent the music
I'm writing the music once and then writing " X amount of times" I want this
to appear on the right and level with the staff? 
How can I do this? 

Hi,

Do you mean like this?

\version "2.19.80"
\language "english"

\header {
  title = "XMAS_EVET"
  tagline = ""  % removed
 
}

\score {
%melody
<<
  \new Staff{
  \time 4/4
  \clef bass
  \set Staff.instrumentName = #"synth"
 
    r1 % times rest 16 bars
   \mark "rest for X 16"
    }
   >>
  
}




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

side.png (10K) Download Attachment
composer | sound designer | asmr artist
LilyPond video tutorials: http://bit.ly/LearnLilyPond
Reply | Threaded
Open this post in threaded view
|

Re: Text level with the staff

Vivyan
Reply | Threaded
Open this post in threaded view
|

Re: Text level with the staff

Vivyan
Perhaps theres a way to set the staff name on the right side instead of left?



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html

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

Re: Text level with the staff

Mark Knoop-4
In reply to this post by SoundsFromSound
At 04:35 on 17 Jan 2018, Vivyan wrote:
>I mean like this (photoshopped);
>
><http://lilypond.1069038.n5.nabble.com/file/t5486/Screen_Shot_2018-01-17_at_11.png>

Something like this perhaps:

\version "2.19.80"
\language "english"

\header {
  title = "XMAS_EVET"
  tagline = "" % removed
}

\score {
  {
    <<
      \new Staff {
        \time 4/4
        \clef bass
        \set Staff.instrumentName = #"synth"
        R1
        \once \override Staff.BarLine.layer = #20
        \once \override Staff.BarLine.stencil = #(lambda (grob)
          (ly:stencil-combine-at-edge
          (ly:bar-line::print grob)
          X RIGHT
          (grob-interpret-markup grob #{
            \markup
            \whiteout
            \vcenter
            \pad-around #2
            "rest for X 16"
            #})
          0))
      }
    >>
  }
}


--
Mark Knoop

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

Re: Text level with the staff

Vivyan
a lot like this, thank you. Is there a way to to get the colour which is
currently white the same colour as the rest of the page?



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html

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

Re: Text level with the staff

Edward neeman
Hello Vivyan,

The background of the page is white. If you open the file in a normal
PDF viewer (not Frescobaldi) you shouldn't be able to see the
whiteout.

Here is another solution that doesn't use whiteout:

\version "2.19.80"
\language "english"

\header {
  title = "XMAS_EVET"
  tagline = "" % removed
}

\score {
  {
    <<
      \new Staff {
        \time 4/4
        \clef bass
        \set Staff.instrumentName = #"synth"
        R1
       \stopStaff
       \textLengthOn
       s1 -\tweak Y-offset #0 -\markup { \general-align #Y #CENTER
"rest for X 16" }
       \startStaff
       c4 d e f
      }
    >>
  }
}
--------------

Dr. Edward Neeman
Adjunct Instructor, South Georgia State College
Collaborative Pianist, Valdosta State University, Georgia
Artist Faculty, ELMS Conservatory, Jakarta
[hidden email]
www.neemanpianoduo.com


On Wed, Jan 17, 2018 at 1:13 PM, Vivyan <[hidden email]> wrote:

> a lot like this, thank you. Is there a way to to get the colour which is
> currently white the same colour as the rest of the page?
>
>
>
> --
> Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html
>
> _______________________________________________
> 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
|

Re: Text level with the staff

SoundsFromSound
In reply to this post by Mark Knoop-4
On 1/17/2018 8:05 AM, Mark Knoop wrote:
At 04:35 on 17 Jan 2018, Vivyan wrote:
I mean like this (photoshopped);

<http://lilypond.1069038.n5.nabble.com/file/t5486/Screen_Shot_2018-01-17_at_11.png> 


Hi Vivyan,

I just came across some code I had used in a previous project where I needed text beside a staff...maybe this could also help you :)
See attached for two options. Offset text as needed.

%%%%%%
\version "2.19.65"

       mytext = {
      \stopStaff \hideNotes c c'^\markup {This is a simple text}
    }

    \score {
      \fixed c' {c d c d \mytext}
      \layout{}
    }

%%%  OR

\version "2.19.65"


barlineMarkup = \markup {
  \whiteout
  \pad-around #1.3
  \vcenter
  \column {
    "Some text I want"
    % "next to the score"
  }
}

customBarLine = {
  \once \override Staff.BarLine #'stencil =
  #(lambda (grob)
     (ly:stencil-combine-at-edge
      (ly:bar-line::print grob)
      X RIGHT
      (grob-interpret-markup grob barlineMarkup)
      0))
}

{
  \override Score.BarLine.layer = 1
  c' d' e' c' \customBarLine \bar "|."
}

%%%%%

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

besides staff.png (17K) Download Attachment
version 2.png (18K) Download Attachment
composer | sound designer | asmr artist
LilyPond video tutorials: http://bit.ly/LearnLilyPond