Re: Putting text IN the staff

2015-04-27 Thread Wols Lists
On 27/04/15 09:30, Nick Payne wrote:
> On 27/04/2015 08:14, Anthonys Lists wrote:
>> Simple problem, I can't find the solution ... :-)
>>
>> Basically, what I want is "\StaffOff   ...text...   \StaffOn".
> 
> Something like this? The values for offset and makegap have to be
> fiddled with to get proper alignment for the text you use.
> 
> \version "2.19.18"
> 
> makeGap = { \repeat unfold 2 { \hideNotes c1 \unHideNotes \noBreak } }
> 
> {
>   c''1
>   \noBreak \stopStaff \cadenzaOn
>   <>-\tweak extra-offset #'(1 . 3)_\markup\small { "Text here" }
>   \makeGap
>   \cadenzaOff \startStaff
>   c''1
> }
> 
That looks perfect, thanks! I'll tackle it later this evening, when my
wife goes out and I can "play" on the computer.

Cheers,
Wol


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


Re: Putting text IN the staff

2015-04-27 Thread Nick Payne

On 27/04/2015 08:14, Anthonys Lists wrote:

Simple problem, I can't find the solution ... :-)

Basically, what I want is "\StaffOff   ...text...   \StaffOn".


Something like this? The values for offset and makegap have to be 
fiddled with to get proper alignment for the text you use.


\version "2.19.18"

makeGap = { \repeat unfold 2 { \hideNotes c1 \unHideNotes \noBreak } }

{
  c''1
  \noBreak \stopStaff \cadenzaOn
  <>-\tweak extra-offset #'(1 . 3)_\markup\small { "Text here" }
  \makeGap
  \cadenzaOff \startStaff
  c''1
}
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Putting text IN the staff

2015-04-26 Thread Cynthia Karl

> Message: 3
> Date: Sun, 26 Apr 2015 23:14:32 +0100
> From: Anthonys Lists 
> To: lilypond user list 
> Subject: Putting text IN the staff
> Message-ID: <553d634...@youngman.org.uk>
> Content-Type: text/plain; charset=utf-8; format=flowed
> 
> Simple problem, I can't find the solution ... :-)
> 
> Basically, what I want is "\StaffOff   ...text...   \StaffOn". So, 
> thinking treble clef, the text would be centred on the "b" line. Markup, 
> however, seems to want to be above or below the staff, and that's it. 
> How do I force it IN the staff, or am I using the wrong technique 
> completely? I know you can force a rest to a note-position, is there any 
> way of doing the same with text?
> 

I guarantee you’ll get more help if you would include a tiny example showing 
what you’ve tried that illustrates the problem.  We don’t want to waste our 
time trying to think up what your probem might be.  You’re the only one who 
knows.  Tell us.

> Cheers,
> Wol


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


Re: Putting text IN the staff

2015-04-26 Thread Thomas Morley
2015-04-27 0:14 GMT+02:00 Anthonys Lists :
> Simple problem, I can't find the solution ... :-)
>
> Basically, what I want is "\StaffOff   ...text...   \StaffOn". So, thinking
> treble clef, the text would be centred on the "b" line. Markup, however,
> seems to want to be above or below the staff, and that's it. How do I force
> it IN the staff, or am I using the wrong technique completely? I know you
> can force a rest to a note-position, is there any way of doing the same with
> text?
>
> Cheers,
> Wol
>



   \time 2/4
   s2
   \repeat volta 2 {
 \markLengthOn
 \tempo "Allegretto con Moto"
 s2*7
 \once \override Score.RehearsalMark.self-alignment-X = #1.04
 \once \override Score.RehearsalMark.font-size = #0
 \mark "Take 2nd on D.S."
   } \alternative { { s2 } { \once \override
Score.VoltaBracket.shorten-pair = #'(1 . 1.7) s2 } }
   \mark \markup \musicglyph #"scripts.coda"
   \stopStaff
   %% only needed if a StaffSymbol is present:
%   \override TextScript.outside-staff-priority = ##f
%   \override TextScript.staff-padding = ##f
   \override TextScript.Y-offset = #-0.5
   s1-"fp"
   \startStaff
   s2

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


Re: Putting text IN the staff

2015-04-26 Thread Stephen MacNeil
Hi Wol,


i think turning off outside-staff-priority only affects outside the staff
and will not bring it in the staff.

use..


\relative c'' {


 % first number is right left second is up down


\override TextScript.extra-offset = #'(0 . -4)

c d c d c1^"hello" r2 c2


}


HTH

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


Re: Putting text IN the staff

2015-04-26 Thread Kieren MacMillan
Hi Wol,

> Basically, what I want is "\StaffOff   ...text...   \StaffOn". So, thinking 
> treble clef, the text would be centred on the "b" line. Markup, however, 
> seems to want to be above or below the staff, and that's it. How do I force 
> it IN the staff, or am I using the wrong technique completely? I know you can 
> force a rest to a note-position, is there any way of doing the same with text?

There are two obvious ways:

1. Use extra-offset, after everything is already laid out (with the text 
outside the staff).
2. Turn off outside-staff-priority. (cf. 
http://www.lilypond.org/doc/v2.19/Documentation/learning/outside_002dstaff-objects#the-outside_002dstaff_002dpriority-property,
 where it points out that “By default [outside-staff-priority] is set to #f for 
all within-staff objects”.)

I would probably use method #1 (with the tweak added externally via the 
edition-engraver, to maintain content-presentation separation).

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


Putting text IN the staff

2015-04-26 Thread Anthonys Lists

Simple problem, I can't find the solution ... :-)

Basically, what I want is "\StaffOff   ...text...   \StaffOn". So, 
thinking treble clef, the text would be centred on the "b" line. Markup, 
however, seems to want to be above or below the staff, and that's it. 
How do I force it IN the staff, or am I using the wrong technique 
completely? I know you can force a rest to a note-position, is there any 
way of doing the same with text?


Cheers,
Wol

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