Two possibilities: Change secondaryMusic to be either
secondaryMusic = \relative c { \clef bass c8 c c \hideNotes c-\tweak #'extra-offset #'(0 . 2.3)_\rptDDDInStaff c c c c c c c c \unHideNotes | } Or secondaryMusic = \relative c { \clef bass c8 c c \hideNotes \once \override TextScript #'extra-offset = #'(0 . 2.3) c_\rptDDDInStaff c c c c c c c c \unHideNotes | } Nick > -----Original Message----- > From: lilypond-user-bounces+nick.payne=internode.on....@gnu.org > [mailto:lilypond-user-bounces+nick.payne=internode.on....@gnu.org] On > Behalf Of aliteralmind > Sent: Wednesday, 4 March 2009 03:52 > To: lilypond-user@gnu.org > Subject: Forcing markup to be IN the staff > > > I have repetitive notes: > > c8 c c c c c c c c c c c | > > This type of repetition is found throughout my piece. I'm trying to > hide the > second-through-fourth beats of notes, and have a "..." in its place, IN > the > staff. No matter how much I \raise the markup, it never enters the > staff. > How can I force this collision? > > Here is an image describing what I want and am actually getting (I also > can't quite position the lyrics and "repeat throught" text as tightly > as I > want): > > http://jeffyepstein.com/tmp/staff_collision_question.gif > > And following is the LY code that created the bottom version. > > Thank you for helping. > > -------------------------------------------------------- > \version "2.12.2" > > global = { > \key c \major > \time 12/8 > } > > rptDDD = \markup { \fontsize #6 "..." } > rptDDDInStaff = \markup { > \column { > \raise #2.5 \rptDDD > \small \italic "Repeat throughout measure" > } > } > rptDDDForLyrics = \markup { \raise #0.3 \rptDDD } > > mainMusic = \relative c'' { > c4. c c c | > } > mainWords = \lyricmode { Da da da da } > secondaryMusic = \relative c { > \clef bass > c8 c c > \hideNotes > c_\rptDDDInStaff > c c c c c c c c > \unHideNotes > | > } > secondaryWords = \lyricmode { > doo doo doo \rptDDDForLyrics > } > > \score { > \new ChoirStaff << > \new Staff = staffMain << > \new Voice = "vMain" { > \voiceTwo > << \global \mainMusic >> > } > \new Lyrics = "mainLyrics" { s1 } > >> > \new Staff = staffSecondary << > \new Voice = "vSecondary" { > \voiceOne > << \global \secondaryMusic >> > } > %s1 is a placeholder, until soloWords is assigned to > it > \new Lyrics = "secondaryLyrics" { s1 } > >> > \context Lyrics = mainLyrics \lyricsto vMain \mainWords > \context Lyrics = secondaryLyrics \lyricsto vSecondary > \secondaryWords > >> > \layout {} > \midi {} > } > -------------------------------------------------------- > > -- > View this message in context: http://www.nabble.com/Forcing-markup-to- > be-IN-the-staff-tp22312800p22312800.html > Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com. > > > > _______________________________________________ > lilypond-user mailing list > lilypond-user@gnu.org > http://lists.gnu.org/mailman/listinfo/lilypond-user > No virus found in this incoming message. > Checked by AVG - www.avg.com > Version: 8.0.237 / Virus Database: 270.11.5/1979 - Release Date: > 03/01/09 17:46:00 _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user