Re: Centered movement names

2007-08-08 Thread Reinhold Kainhofer
Am Dienstag, 7. August 2007 schrieb Paul Scott:
 |2.11.27 or so.

 scoreTitleMarkup |(10.2.2 Custom titles) sounds like a great idea but
 not as it seems to be implemented.  Movement names are normally
 different for different movements so putting it in the paper block
 doesn't seem to make sense.

 Is there a current way to change something like the current instrument
 header field for each movement?

The default implementation of scoreTitleMarkup does not support this, but of 
course you can redefine the scoreTitleMarkup (see 
http://lsr.dsi.unimi.it/LSR/Item?id=306 ). 

For example, a modified definition of the above snippet could be:

\header {
  title = Different instruments for different scores
}
\paper {
  scoreTitleMarkup = \markup { \column {
   \on-the-fly #print-all-headers { \bookTitleMarkup \hspace #1 }
\fill-line {
  \fontsize #3 \bold \fromproperty #'header:piece
  \fromproperty #'header:opus
}
\fill-line {
  \fromproperty #'header:instrument
}
  }}
}

\score { 
  \context Staff  { c'1 | R1 } 
  \header{ piece=Piece 1 instrument=Instrument 1}
}

\score { 
  \context Staff  { c'1 | R1 } 
  \header{ piece=Piece 2
   instrument=Instrument 2 }
}

The resulting PDF file from this snippet is attached.

Cheers,
Reinhold

-- 
--
Reinhold Kainhofer, Vienna University of Technology, Austria
email: [EMAIL PROTECTED], http://reinhold.kainhofer.com/
 * Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/
 * K Desktop Environment, http://www.kde.org, KOrganizer maintainer
 * Chorvereinigung Jung-Wien, http://www.jung-wien.at/
\header {
  title = Different instruments for different scores
}
\paper {
  scoreTitleMarkup = \markup { \column {
   \on-the-fly #print-all-headers { \bookTitleMarkup \hspace #1 }
\fill-line {
  \fontsize #3 \bold \fromproperty #'header:piece
  \fromproperty #'header:opus
}
\fill-line {
  \fromproperty #'header:instrument
}
  }}
}

\score { 
  \context Staff  { c'1 | R1 } 
  \header{ piece=Piece 1 instrument=Instrument 1}
}

\score { 
  \context Staff  { c'1 | R1 } 
  \header{ piece=Piece 2
   instrument=Instrument 2 }
}


test.pdf
Description: Adobe PDF document
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: How can i do this?

2007-08-08 Thread Neil Puttock
Hi Peter,

I would like to have a dot for the a4 without shifting the other notes.

 Is this possible?


Yes, by scaling the dotted note:

a'4.*2/3

Regards,
Neil
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: How can i do this?

2007-08-08 Thread Peter Terpstra
Neil Puttock in
[EMAIL PROTECTED] :


 Yes, by scaling the dotted note:
 
 a'4.*2/3

Thanks for your answer, but now i get an extra count.

Maybe this is a better example:

\version 2.10.25
\new Staff 
\time 3/4
\relative c''  {\key g \major
\override Staff.NoteCollision #'merge-differently-headed = ##t
  a'4.*2/3  b,8  g'^( fis)[ g ] %  2  
  fis8( e) dis! e b e
} \\ { s4 b g2  % 2
s4 e,2
} 
\\  {  d,2.
gis2.
} 

~~ End

The fis8( e) should be on the next measure.

Kind Regards,

   P.


-- 
mailto:[EMAIL PROTECTED]



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


Re: How can i do this?

2007-08-08 Thread Damian leGassick

hi peter

the extra count is because the \time 3/4 is ignored as it's not  
between the braces


neil's scaling works if you change the snippet to this:

\version 2.10.25
\new Staff
\relative c''

{   \time 3/4
\key g \major
\override Staff.NoteCollision #'merge-differently-headed = ##t
a'4.*2/3  b,8  g'^( fis)[ g ] %  2
fis8( e) dis! e b e
}
\\  
{   s4 b g2  % 2
s4 e,2
}
\\  
{   d,2.
gis2.
}



cheers

d

On 8 Aug 2007, at 12:13, Peter Terpstra wrote:


Neil Puttock in
[EMAIL PROTECTED] :



Yes, by scaling the dotted note:

a'4.*2/3


Thanks for your answer, but now i get an extra count.

Maybe this is a better example:

\version 2.10.25
\new Staff
\time 3/4
\relative c''  {\key g \major
\override Staff.NoteCollision #'merge-differently-headed = ##t
  a'4.*2/3  b,8  g'^( fis)[ g ] %  2
  fis8( e) dis! e b e
} \\ { s4 b g2  % 2
s4 e,2
}
\\  {  d,2.
gis2.
} 

~~ End

The fis8( e) should be on the next measure.

Kind Regards,

   P.


--
mailto:[EMAIL PROTECTED]



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


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


Re: How can i do this?

2007-08-08 Thread Peter Terpstra
Damian leGassick in [EMAIL PROTECTED] :

 the extra count is because the \time 3/4 is ignored as it's not
 between the braces

Indeed, indeed, your'e rigth. Never had this problem with it before, but I'm
a beginner :-)

Kind Regards,

   Peter
 

-- 
mailto:[EMAIL PROTECTED]



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


Re: rest merging (willing to sponsor)

2007-08-08 Thread Charlotte

Did this feature get implemented, or is Arvid's \include workaround still the
only option?

If it has been implemented, how do I do it in 2.11.28? I can't find anything
about it in the docs (looked under RestCollision along with its Engraver and
-interface).

Thanks,

Charlotte.
-- 
View this message in context: 
http://www.nabble.com/rest-merging-%28willing-to-sponsor%29-tf3440052.html#a12052466
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


path set-up

2007-08-08 Thread Neil Thornock
Hello folks,

I'm getting linux set up (gentoo) with lily, but for some reason the path
refuses to work.  I can run the command /usr/local/bin/lilypond just fine on
a file, but the command lilypond returns a command not found.  (I'd like
to get this to work so I can compile from vim.)

Here's my path, something I don't fully understand but seems like it should
work.  Any suggestions for something better?  What's going wrong?



if [ $EUID = 0 ] || [ $USER = root ] ; then
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:${ROOTPATH}
else
PATH=/usr/local/bin:/usr/bin:/bin:${PATH}
fi
export PATH
unset ROOTPATH
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: path set-up

2007-08-08 Thread Peter Terpstra
Neil Thornock in
[EMAIL PROTECTED] :

 Here's my path, something I don't fully understand but seems like it
 should work.

#echo $PATH 
Should show the path to lilypond.

if not put PATH=/usr/local/bin/:$PATH; export $PATH in your ~.profile or
~/.zprofile (if you use zsh). It wil also work in ~.bashrc or ~/.zshrc

P.

-- 
mailto:[EMAIL PROTECTED]



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


Re: How can i do this?

2007-08-08 Thread Valentin Villenave
2007/8/8, Peter Terpstra [EMAIL PROTECTED]:

 Indeed, indeed, your'e rigth. Never had this problem with it before, but I'm
 a beginner :-)

By the way, don't forget to be more specific in your Subject field
the next time you post a question on the list; it makes much easier
for everyone to browse the list archives in the future... 'How can I
do this?' is a bit vague :)

Best Regards,
Valentin


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


RE: text in chord lines

2007-08-08 Thread Fairchild
Victor -

By stumbling around, found a way to insert a \markup string in \chords.

Note what happens if \hspace #-2 is deleted or set to +n.  If tacet
instead of Tacet a little bit of C peeks around the \whiteout.  Any
other way to inhibit printing the C ?

LSR Worthy?

  -Bruce

%

CMString  = { c e g-\markup { \whiteout { \hspace #-2 Tacet } } }
CMStringX = #(append (sequential-music-to-chord-exceptions CMString #t)
   ignatzekExceptions)
 { \chords { c1
   \set   chordNameExceptions = #CMStringX c
   \unset chordNameExceptions c }
 } { \relative c'' { c c c } } 

%

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Fairchild
Sent: Tuesday, August 07, 2007 4:26 PM
To: 'Victor Eijkhout'
Cc: lilypond-user@gnu.org
Subject: RE: text in chord lines


Victor -

Thanks for the challenge.

A clean way to do this eludes me.  It seems that markup in \chords { . . . }
is not accepted.  A feature request?

See http://lsr.dsi.unimi.it/LSR/Item?id=209 where the answer may reside, but
it's messy.

You can use \markup in the notes, but matching the font and positioning is
also messy.

Others - Guidance please.

 - Bruce

-Original Message-
From: Victor Eijkhout [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 06, 2007 11:22 PM
To: Fairchild
Subject: Re: text in chord lines


Hi,

thanks for responding. I'm using lily 2.11-something, and I wanted to  
annotate something in a \chords part. Here is the relevant bit. If  
you remove the comment character to get the tacet in, lily gives an  
error message.

Victor.

\header {
title = Fredo's Chanson
subtitle = For Alto and Guitar (version in A)
composer = Victor Eijkhout
copyright = C Victor Eijkhout, 2007
}

\paper {
 ragged-bottom = ##t
 print-page-number = ##t
 % head-separation = 2\mm
 foot-separation = 2\mm
% #(set-paper-size letter 'landscape)
}

alto = \relative { \time 4/4 \clef treble \key a \minor
\relative c'' {
c'8 b a gis a4 b8 c | b8 c16 b a8 gis a4 e8 f |
d4 c8 d e4 e | a,2. s4 \bar .|.
}
}

thechords = {
\chords {
a2:m a:m/c | b4:dim/d e a2:m |
s1%^tacet
| a:m
}
}


{ \thechords }
{ \alto }
 

\version 2.10.0  % necessary for upgrading to future LilyPond  
versions.

On Aug 4, 2007, at 1:10 PM, Fairchild wrote:

 Victor -

 Seems this hasn't received a response.

 The string {a1 | s1^tacet | a1} does as expected in versions  
 2.4.6 and
 2.8.5.

 What do you mean by chord line?  Please provide a more complete  
 example?

 Mats or Graham probably haven't responded because they refuse to  
 request a
 larger example.  ;-)

   - Bruce

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On  
 Behalf Of
 Victor Eijkhout
 Sent: Tuesday, May 08, 2007 7:36 AM
 To: lilypond-user@gnu.org
 Subject: text in chord lines


 I want to indicate a measure rest in a chord line. This doesn't work:

 a1 | s1^tacet | a1

 What's the solution?

 Victor.


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











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





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


lyrics collision (and thanks to Peter)

2007-08-08 Thread Neil Thornock
Thanks Peter for your response earlier, it got me working!

For the life of me I can't figure out why the lyrics in the bass line
collide in the following snippet (below).

If I use only the bass line, it looks fine - but when combined with the
soprano line, I get strange collisions and stuff.  It looks like the bass
lyrics are trying to align with the soprano lyrics, and I don't know why.

Any pointers?



%

\version 2.11.28

soprano = \relative c' {
\time 3/4 c4 c c
\time 4/4 c2 c
}

bass = \relative c' {
\clef bass \time 3/4 f,4. f
\time 4/4 f f8~ f4 f
}

soplyrics = \lyrics {
hoff4 hoff hoff hoff2 hoff
}

baslyrics = \lyrics {
hoff4. shifted over -- lap shifted4
}

\score {
\context ChoirStaff = choir 
\context Staff = soprano 
\soprano
\context Lyrics = soprano \soplyrics


\context Staff = bass 
\bass
\context Lyrics = bass \baslyrics


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


Re: lyrics collision (and thanks to Peter)

2007-08-08 Thread Valentin Villenave
2007/8/8, Neil Thornock [EMAIL PROTECTED]:

 For the life of me I can't figure out why the lyrics in the bass line
 collide in the following snippet (below).

That's because (IIUC) LilyPond tries to align the lyrics with the
first Voice it founds. In case you want to add different lyrics, with
different rhythm, to another melody (hence another Voice, whether it's
on the same Staff or not), you have to explicitly specify which is the
relevant associatedVoice (see below). By the way, giving names to your
contexts is a good principle, but as Lyrics are associated to a Voice
(not a Staff), you'd better introduce your vocal staves with

\new Voice = soprano

or

\new Staff = sopStaff \new Voice = soprano

instead of what you're using:

\new Voice = soprano

Good luck!

Valentin


%

\version 2.11.28

soprano = \relative c' {
\time 3/4 c4 c c
\time 4/4 c2 c
}

bass = \relative c' {
\clef bass \time 3/4 f,4. f
\time 4/4 f f8~ f4 f
}

soplyrics = \lyricmode {
hoff4 hoff hoff hoff2 hoff
}

baslyrics = \lyricmode {
hoff4. shifted over -- lap shifted4
}

\score {
\new ChoirStaff = choir 
\new Voice = soprano \soprano
\new Lyrics \soplyrics


\new Voice = bass \bass
\new Lyrics {\set associatedVoice = #bass \baslyrics }


}


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


Re: text in chord lines

2007-08-08 Thread Valentin Villenave
2007/8/8, Fairchild [EMAIL PROTECTED]:

 By stumbling around, found a way to insert a \markup string in \chords.

 LSR Worthy?

Definitely.

It's strange, though, that one can no longer include native \markups
in chordmode, as  \figuremode implements it perfectly...

Regards,
Valentin


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