Re: Text level with the staff

2018-01-18 Thread Ben

On 1/17/2018 8:05 AM, Mark Knoop wrote:

At 04:35 on 17 Jan 2018, Vivyan wrote:

I mean like this (photoshopped);






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
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Text level with the staff

2018-01-18 Thread 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
edward.nee...@gmail.com
www.neemanpianoduo.com


On Wed, Jan 17, 2018 at 1:13 PM, Vivyan  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
> 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: Text level with the staff

2018-01-17 Thread 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
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Text level with the staff

2018-01-17 Thread Mark Knoop
At 04:35 on 17 Jan 2018, Vivyan wrote:
>I mean like this (photoshopped);
>
>
> 

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
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Text level with the staff

2018-01-17 Thread 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
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Text level with the staff

2018-01-17 Thread Vivyan
I mean like this (photoshopped);


 





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

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


Re: Text level with the staff

2018-01-17 Thread Vivyan
I mean like this (photoshopped);


 





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

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


Re: Text level with the staff

2018-01-16 Thread Ben

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
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Text level with the staff

2018-01-16 Thread 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
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Text level with the staff

2018-01-16 Thread 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
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user