Re: Trouble with lyric alignment

2005-11-23 Thread Mats Bengtsson

Basically the same question is answered for example in
http://lists.gnu.org/archive/html/lilypond-user/2005-11/msg00268.html
in the mailing list archives.

  /Mats

onix wrote:


I am a little bit confused about why my lyrics are not printing under
the first note in this piece.  For some reason, they are starting on the
second note.  Any clue?  Another anomaly is that not all the lyrics
printed for this line.  I want to get this cleared up before I go
farther.

lilypond 2.6.0, mandrake 10.1 




\version 2.6.0
upper = \relative c' {
   \clef treble
   \key des \major
   \time 3/4

   \partial 4*3  {des4} \\ {des4}  f des ges des |  aes

es( aes
   es) aes des bes des aes des ges des  { aes2. } \\
   {es4( des c)} 
}

lower = \relative c {

   \clef bass
   \key des \major
   \time 3/4

   \partial 4*3 f des aes des, bes bes, c aes,( c

  aes) aes f  {ges} \\ {ges}   aes f bes es, 
  {aes2.} \\ {c,4( bes aes) } 
}

text = \lyricmode {I want to walk as a child of the light

}

\score {

  \context GrandStaff 
\context Staff = upper {
\context Voice = singer \upper }
\lyricsto singer \new Lyrics \text
\context Staff = lower 
  \clef bass
  \lower

  
  \layout {
\context { \GrandStaff \accepts Lyrics 
   \override SpanBar #'break-visibility =

  #center-invisible }
\context { \Lyrics \consists Bar_engraver }
  }
  \midi { \tempo 4=75 }
}



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



--
=
Mats Bengtsson
Signal Processing
Signals, Sensors and Systems
Royal Institute of Technology
SE-100 44  STOCKHOLM
Sweden
Phone: (+46) 8 790 8463 
   Fax:   (+46) 8 790 7260
Email: [EMAIL PROTECTED]
WWW: http://www.s3.kth.se/~mabe
=



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


Re: Controlling stave separation

2005-11-23 Thread Thies Albrecht

Hi Art!

I tried \override Stem #’length = #0 but I get 
an unbound variable error.

There's a little fault in syntax as you have to use an ' instead of ’
(\override Stem #'length = #0)

Regards
Thies


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


Re: Weirdo with midifiles

2005-11-23 Thread anders stenberg



anders stenberg wrote:


Hi!

Thanks to Linda Cantoni!

Did try and got  the midi  to work with som fiddling with changing  
context Voice to context Staff but lost some things in the visual 
apartment as the mensuralstrichte dissapeared all together.


Restored the file to what it was in the beginning. Added a new Score 
block for midi  using context choirStaff and new Staff commands 
and  Lo I got it:   visuals and midi.


By tviddling around some more I.e. splitting each music and lyrics 
string in two: Incipit and  Main,  I also did get a midi  sans  
incipit notes and a  visual score con Incipit.


Eaven if the accute problem thus is solved I would like to know why 
the combination Staffgroup, context Voice, and midi did behave in this 
way.


Anders Stenberg



Linda Cantoni wrote:

Hi, I had exactly the same problem the other day, also using 2.6.4 
Windows
XP native.  The only way I could solve it was by switching to a 
regular SATB
choir format (i.e. using ChoirStaff instead of StaffGroup).  I have 
no idea
why that makes a difference, and I don't know if that will work for 
you in

terms of the visual layout.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On 
Behalf

Of anders stenberg
Sent: Tuesday, November 22, 2005 3:02 AM
To: lilypond-user@gnu.org
Subject: Weirdo with midifiles

Helo!

I' v Had something weird happen to  a few times now.
Im working  on Windows XP with the native - lilypond 2.6.4  through a 
jEdit- editor with a lilypond tool .


I'v been using the Ancient notation/  transcription  of 
mensuralnotation example from the manual as a template for editing  
renaisance music. When adding a midi block to the score I get a real 
weirdo. The midi comes out as somekind of percussion ensemble with 
sounds of drums, bels et.c. instead of normal notes. (It isn't the 
Lilytools midi listener as I also  listened  on Timidity and Realplayer)


Changing the instrument with the \set Staff.midiInstrument = 
choir aahs  isn't working neither with the comand put in the 
musicinput strings of the parts nor by putting it in the score block.


I Did also try just run the orginal transcription example as it 
stands but adding a midiblock  and I got the same weird result.


I don't thing it's my set up as I get a normal midi when I build 
something similar  from scratch.  Cant figure out what in the example 
does this. Its  anoying as using the example as a template is a 
convinient way to get a Incipit with the orginal notation on a 
score.  Listening to check for errors in orginall or editingis is a 
necessary part of  the transcripting process as  auraly cheching the 
edditorial accidentals . ( Making my own template and use that 
usually ends by my loosing it some where in the files by forgetting 
where in which subsubsub folder its stored. So beeing able to 
copypaste it from the Lilyhelp in jEdit or from the manual on 
lilysite is convinient)


Anders Stenberg




___
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


\stopStaff

2005-11-23 Thread Sean Reed

hi,

since i hadn't seen a reply to this yet, maybe i formulated the  
question unclearly.


\stopStaff doesn't seem to work for me at the very beginning of a  
piece. everywhere else later in the piece it seems to work fine.


when used at the beginning of the piece, only the lines of very first  
note are hidden, no matter how long the passage is before the next  
\startStaff is used.


is this a known problem, or am i using it wrong?
sorry if i missed something in the archives where this was already  
mentioned.
i found nothing in the news or archives of the lists that seemed to  
address this specifically.


thanks again.
sean
(macos 10.4, ly 2.7.18-1)


% *
\version 2.7.18


\relative c' {
\stopStaff
	c16 d e f % no matter how long this passage is made, for example  
using \skip, the lines are only hidden for the first note

\startStaff
g f e d
\stopStaff
c d e f
\startStaff
g f e d
}

% 



Sean Reed
Hamburg, Germany
Web: www.seanreed.de



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


Re: Weirdo with midifiles

2005-11-23 Thread anders stenberg

Hi!

Thanks to Linda Cantoni!

Did try and got  the midi  to work with som fiddling with changing  
context Voice to context Staff but lost some things in the visual 
apartment as the mensuralstrichte dissapeared all together.


Restored the file to what it was in the beginning. Added a new Score 
block for midi  using context choirStaff and new Staff commands and  
Lo I got it:   visuals and midi.


By tviddling around some more I.e. splitting each music and lyrics 
string in two: Incipit and  Main,  I also did get a midi  sans  incipit 
notes and a  visual score con Incipit.


Eaven if the accute problem thus is solved I would like to know why the 
combination Staffgroup, context Voice, and midi did behave in this way.


Anders Stenberg



Linda Cantoni wrote:


Hi, I had exactly the same problem the other day, also using 2.6.4 Windows
XP native.  The only way I could solve it was by switching to a regular SATB
choir format (i.e. using ChoirStaff instead of StaffGroup).  I have no idea
why that makes a difference, and I don't know if that will work for you in
terms of the visual layout.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
Of anders stenberg
Sent: Tuesday, November 22, 2005 3:02 AM
To: lilypond-user@gnu.org
Subject: Weirdo with midifiles

Helo!

I' v Had something weird happen to  a few times now.
Im working  on Windows XP with the native - lilypond 2.6.4  through a 
jEdit- editor with a lilypond tool .


I'v been using the Ancient notation/  transcription  of mensuralnotation 
example from the manual as a template for editing  renaisance music. 
When adding a midi block to the score I get a real weirdo. The midi 
comes out as somekind of percussion ensemble with sounds of drums, bels 
et.c. instead of normal notes. (It isn't the Lilytools midi listener as 
I also  listened  on Timidity and Realplayer)


Changing the instrument with the \set Staff.midiInstrument = choir 
aahs  isn't working neither with the comand put in the musicinput 
strings of the parts nor by putting it in the score block.


I Did also try just run the orginal transcription example as it stands 
but adding a midiblock  and I got the same weird result.


I don't thing it's my set up as I get a normal midi when I build 
something similar  from scratch.  Cant figure out what in the example 
does this. Its  anoying as using the example as a template is a 
convinient way to get a Incipit with the orginal notation on a score.  
Listening to check for errors in orginall or editingis is a necessary 
part of  the transcripting process as  auraly cheching the edditorial 
accidentals . ( Making my own template and use that usually ends by my 
loosing it some where in the files by forgetting where in which 
subsubsub folder its stored. So beeing able to copypaste it from the 
Lilyhelp in jEdit or from the manual on lilysite is convinient)


Anders Stenberg




___
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: tweaking properties after line break

2005-11-23 Thread Mats Bengtsson



I don't have an answer to the rehearsal marks question, and I'm
interested in asking the LilyPond gurus a generalization of your
question:

Are there currently any implementation plans for idiomatic Lily input
syntax to explicitly align marks and markup explicitly with nonmusical
characters such as:

* key signatures (per Simon's question)
* time signatures
* barlines
 



Unless you are at the beginning of a line, rehearsal marks (i.e. texts 
typeset

using \mark) are by default center aligned over bar lines. If you want to
change that alignment, use a setting like

\override Score.RehearsalMark #'self-alignment-X = #LEFT

The placement after line breaks is a bit special and is handled by the
function pointed to by the after-line-breaking property of the RehersalMark
object, which by default moves the mark 3.5 steps to the right, relative 
to the

left end of the stave.

  /Mats


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


RE: RehearsalMark hack

2005-11-23 Thread Fairchild
Title: Message



Simon 
-

In Version 2.4.6 
the invocation line needs to be:

\override 
Score.RehearsalMark #'before-line-breaking-callback = 
#mark-callback

Impressive 
detective work. Please add commentary about the documentation trail you 
followed to discover your result. Maybe include some explanation of what 
code does what.

This should be 
added to Tips and Tricks. It also is a useful example for \book and 
\repeat

Thanks.

 
- Bruce

  
  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED] On Behalf Of 
  Simon BaileySent: Wednesday, November 23, 2005 3:31 
  AMTo: lilypond-user@gnu.orgSubject: RehearsalMark 
  hackafter delving deeply into the lilypond backend 
  documentation (especially the scheme functions list) i managed to get my hack 
  working in three lines:#- SNIP LILY CODE HERE -#(define 
  (mark-callback grob) (if (= (ly:item-break-dir grob) 
  1) (ly:grob-set-property! grob 'extra-offset 
  '(-2.8 . 1\book {\score { \relative c'' 
  { \key des \major \override 
  Score.RehearsalMark #'before-line-breaking = 
  #mark-callback \repeat unfold 4 c2 \mark 
  \default \break c2 c \mark 
  \default c2 c }}\score { 
  \relative c'' { \key des \major 
  \repeat unfold 4 c2 \mark \default 
  \break c2 c \mark \default c2 
  c }}}#- END LILY CODE HERE 
  --gives this output: http://binabik.boldlygoingnowhere.org/r-marks.pdfthe 
  first score block is the one with the tweak applied, the second one without. 
  is anyone interested in this tweak? if so, i'll add it to lsr later 
  todayregards,sb.-- Do not meddle in the affairs of 
  trombonists, for they are subtle and quick to anger. 
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: \stopStaff

2005-11-23 Thread Mats Bengtsson

Why not send it to bug-lilypond (which is what I do now)?
I tried some obvious things like explicitly doing \new Staff
to be sure that the context is created when the command is
issued, but it didn't help.

  /Mats

Sean Reed wrote:


hi,

since i hadn't seen a reply to this yet, maybe i formulated the  
question unclearly.


\stopStaff doesn't seem to work for me at the very beginning of a  
piece. everywhere else later in the piece it seems to work fine.


when used at the beginning of the piece, only the lines of very first  
note are hidden, no matter how long the passage is before the next  
\startStaff is used.


is this a known problem, or am i using it wrong?
sorry if i missed something in the archives where this was already  
mentioned.
i found nothing in the news or archives of the lists that seemed to  
address this specifically.


thanks again.
sean
(macos 10.4, ly 2.7.18-1)


% *
\version 2.7.18


\relative c' {
\stopStaff
c16 d e f % no matter how long this passage is made, for example  
using \skip, the lines are only hidden for the first note

\startStaff
g f e d
\stopStaff
c d e f
\startStaff
g f e d
}

% 



Sean Reed
Hamburg, Germany
Web: www.seanreed.de



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



--
=
Mats Bengtsson
Signal Processing
Signals, Sensors and Systems
Royal Institute of Technology
SE-100 44  STOCKHOLM
Sweden
Phone: (+46) 8 790 8463 
   Fax:   (+46) 8 790 7260
Email: [EMAIL PROTECTED]
WWW: http://www.s3.kth.se/~mabe
=



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


timesig staff, autoskip?

2005-11-23 Thread Jonatan Liljedahl
In test/time-signature-staff.ly, is it possible to have the TimeSig
staff automatically skip the neccessary time instead of having to do
like this?

   \new TimeSig {
 \skip 4 * 9
   }

/Jonatan-=( http://kymatica.com )=-


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


Re: \stopStaff

2005-11-23 Thread Han-Wen Nienhuys

Sean Reed wrote:

hi,

since i hadn't seen a reply to this yet, maybe i formulated the  
question unclearly.


\stopStaff doesn't seem to work for me at the very beginning of a  
piece. everywhere else later in the piece it seems to work fine.


when used at the beginning of the piece, only the lines of very first  
note are hidden, no matter how long the passage is before the next  
\startStaff is used.


is this a known problem, or am i using it wrong?


Hi,

thanks for reporting this. It's a bug, which I fixed for 2.7.19.

--
 Han-Wen Nienhuys - [EMAIL PROTECTED] - http://www.xs4all.nl/~hanwen


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


Re: RehearsalMark hack

2005-11-23 Thread Mats Bengtsson



This should be added to Tips and Tricks.  It also is a useful example 
for \book and \repeat


As far as I can see, the result will be exactly the same if you remove 
the \book!


  /Mats



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


Re: \stopStaff

2005-11-23 Thread Sean Reed

hi han-wen and mats,

thanks for the replies.
i thought it might be a bug.
it is otherwise a great feature. very helpful for modern scores.

looking forward to 2.7.19.

best,
sean



Sean Reed
Hamburg, Germany
Web: www.seanreed.de

On 23.11.2005, at 14:08, Han-Wen Nienhuys wrote:


Sean Reed wrote:

hi,
since i hadn't seen a reply to this yet, maybe i formulated the   
question unclearly.
\stopStaff doesn't seem to work for me at the very beginning of a   
piece. everywhere else later in the piece it seems to work fine.
when used at the beginning of the piece, only the lines of very  
first  note are hidden, no matter how long the passage is before  
the next  \startStaff is used.

is this a known problem, or am i using it wrong?


Hi,

thanks for reporting this. It's a bug, which I fixed for 2.7.19.

--
 Han-Wen Nienhuys - [EMAIL PROTECTED] - http://www.xs4all.nl/~hanwen




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


Re: RehearsalMark hack

2005-11-23 Thread Simon Bailey
hi mats, bruce,

On 11/23/05, Mats Bengtsson [EMAIL PROTECTED] wrote:
 For the horizontal position, why did you not directly redefine the
 function that handles the placement av rehearsal marks after line
 breaks? The default function has the following definition (from
 scm/output-lib.scm):

 (define-public (shift-right-at-line-begin g)
   Shift an item to the right, but only at the start of the line.
   (if (and (ly:item? g)  (equal? (ly:item-break-dir g) RIGHT))
   (ly:grob-translate-axis! g 3.5 X)))

 and you can specify your own function using:
 \override Score.RehearsalMark #'after-line-breaking-callback =
 #my-shift-right-at-line-begin

i didn't redefine this function, because i didn't know that
rehearsalmarks were categorically shifted to the right at the
beginning of a line. it is not stated in the documentation that this
property is set to #shift-right-at-line-begin by default.

in fact, the only documentation for after-line-breaking-callback is:
This procedure is called after line breaking. Its return value is
ignored. in docs for 2.6 at:
http://lilypond.org/doc/v2.6/Documentation/user/out-www/lilypond-internals/grob_002dinterface.html
and:
Dummy property, used to trigger callback for after-line-breaking in
the docs for 2.7 at:
http://lilypond.org/doc/v2.6/Documentation/user/out-www/lilypond-internals/grob_002dinterface.html

my naive assumption was that there is an invisible bar-line after
prefatory matter over which rehearsal marks are aligned. (probably
because of this:
http://lilypond.org/doc/v2.6/input/regression/out-www/lily-1278860194.ly)

my solution is almost the same as your's if i'm not mistaken, except
for the fact that it is called before a line break, rather than after
(which is probably better and which i will change now).

fairchild wrote:
 Impressive detective work.  Please add commentary about the documentation
 trail you followed to discover your result.  Maybe include some explanation of
 what code does what.

the documentation trail:
Difficult tweaks:
http://lilypond.org/doc/v2.6/Documentation/user/out-www/lilypond/Difficult-tweaks.html
-- defining a 2-line callback function for after line breaking which
just categorically changed the extra-offset property. that didn't
work, so i started reading the scheme functions for lily:
http://lilypond.org/doc/v2.7/Documentation/user/out-www/lilypond-internals/Scheme-functions.html
and searching for break led me to the ly:item-break-dir function.
checking for beginning of line was then a matter of working out how to
do an if branch in scheme.

code comments:
% define a function called mark-callback which receives grob as a parameter
 #(define (mark-callback grob)
% is this item is at the beginning of the line (ly:item-break-dir returns 1)
  (if (= (ly:item-break-dir grob) 1)
% set extra-offset to the desired shift.
  (ly:grob-set-property! grob 'extra-offset '(-2.8 . 1

the \book and \repeat commands are well documented in the manual.
\repeat definitely is, and i only used it out of laziness in this
example.

for 2.4. and 2.6. please use Mats' version which is:
\override Score.RehearsalMark #'after-line-breaking-callback = #mark-callback

Mats' version is semantically more correct -- the only difference
being that this callback seems to shift  further to the left.

sample output again at:
http://binabik.boldlygoingnowhere.org/r-marks.pdf

the whole reason i wanted this hack was for the following scenario:
http://binabik.boldlygoingnowhere.org/trbns/
all three files are generated from the same source. i was having
problems with the first piece in the marschbuch format
(a5-landscape). lily's solution is in the standard version and
collides nastily with the multimeasure rests; my solution is visible
in the hacked version. [nb, the staff line vertical spacing has been
seriously overriden in this document]. the reason i didn't want to
hard code this in the source files is because of the concert.pdf and
score.pdf which are generated from the same sources.

regards,
sb
--
Do not meddle in the affairs of trombonists, for they are subtle and
quick to anger.


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


Re: RehearsalMark hack

2005-11-23 Thread Simon Bailey
hi,

On 11/23/05, Mats Bengtsson [EMAIL PROTECTED] wrote:
 As far as I can see, the result will be exactly the same if you remove
 the \book!

this is true -- i did it out of habit... sorry for the confusion.

regards,
sb

--
Do not meddle in the affairs of trombonists, for they are subtle and
quick to anger.


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


Re: RehearsalMark hack

2005-11-23 Thread Mats Bengtsson



Simon Bailey wrote:


i didn't redefine this function, because i didn't know that
rehearsalmarks were categorically shifted to the right at the
beginning of a line. it is not stated in the documentation that this
property is set to #shift-right-at-line-begin by default.

 


I can tell you a secret: I didn't look in the documentation at all, I looked
directly in scm/define-grobs.scm. However, I think it's a plain bug that
the documentation for this property isn't included properly, and have
sent a related email to bug-lilypond.

 /Mats


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


Re: timesig staff, autoskip?

2005-11-23 Thread Mats Bengtsson

The only purpose of the \skip command is to keep the context alive
throughout the piece. Otherwise, it would disappear after the first note.

  /Mats

Jonatan Liljedahl wrote:


In test/time-signature-staff.ly, is it possible to have the TimeSig
staff automatically skip the neccessary time instead of having to do
like this?

  \new TimeSig {
\skip 4 * 9
  }

/Jonatan-=( http://kymatica.com )=-


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



--
=
Mats Bengtsson
Signal Processing
Signals, Sensors and Systems
Royal Institute of Technology
SE-100 44  STOCKHOLM
Sweden
Phone: (+46) 8 790 8463 
   Fax:   (+46) 8 790 7260
Email: [EMAIL PROTECTED]
WWW: http://www.s3.kth.se/~mabe
=



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


Re: RehearsalMark hack

2005-11-23 Thread Simon Bailey
On 11/23/05, Mats Bengtsson [EMAIL PROTECTED] wrote:
 I can tell you a secret: I didn't look in the documentation at all, I looked
 directly in scm/define-grobs.scm. However, I think it's a plain bug that
 the documentation for this property isn't included properly, and have
 sent a related email to bug-lilypond.

now i know where to look next time. :)

btw, i love all the really cool stuff now available in lily 2.6 --
especially the \book and vertical alignment stuff. really really neat.
thanks to all and kudos to the devs... :)

regards,
sb

--
Do not meddle in the affairs of trombonists, for they are subtle and
quick to anger.


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


\harmonic on note outside chord.

2005-11-23 Thread Jonatan Liljedahl

Is there a reason not to allow \harmonic on a note that is not part of
a chord? Or is this a bug?

/Jonatan-=( http://kymatica.com )=-


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


RE: RehearsalMark hack

2005-11-23 Thread Fairchild
Simon -

Thanks for the instructive commentary.  This thread is a keeper.

Just rummaged a bit on your blog, looking for the lily source -- didn't find
it.  As a treble clef euphoniumist, I'd like to transpose on letter size for
my own entertainment.

- Bruce

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Simon Bailey
Sent: Wednesday, November 23, 2005 7:52 AM
To: Mats Bengtsson
Cc: lilypond-user@gnu.org
Subject: Re: RehearsalMark hack


hi mats, bruce,

On 11/23/05, Mats Bengtsson [EMAIL PROTECTED] wrote:
 For the horizontal position, why did you not directly redefine the 
 function that handles the placement av rehearsal marks after line 
 breaks? The default function has the following definition (from
 scm/output-lib.scm):

 (define-public (shift-right-at-line-begin g)
   Shift an item to the right, but only at the start of the line.
   (if (and (ly:item? g)  (equal? (ly:item-break-dir g) RIGHT))
   (ly:grob-translate-axis! g 3.5 X)))

 and you can specify your own function using:
 \override Score.RehearsalMark #'after-line-breaking-callback = 
 #my-shift-right-at-line-begin

i didn't redefine this function, because i didn't know that rehearsalmarks
were categorically shifted to the right at the beginning of a line. it is
not stated in the documentation that this property is set to
#shift-right-at-line-begin by default.

in fact, the only documentation for after-line-breaking-callback is: This
procedure is called after line breaking. Its return value is ignored. in
docs for 2.6 at:
http://lilypond.org/doc/v2.6/Documentation/user/out-www/lilypond-internals/g
rob_002dinterface.html
and:
Dummy property, used to trigger callback for after-line-breaking in the
docs for 2.7 at:
http://lilypond.org/doc/v2.6/Documentation/user/out-www/lilypond-internals/g
rob_002dinterface.html

my naive assumption was that there is an invisible bar-line after prefatory
matter over which rehearsal marks are aligned. (probably because of this:
http://lilypond.org/doc/v2.6/input/regression/out-www/lily-1278860194.ly)

my solution is almost the same as your's if i'm not mistaken, except for the
fact that it is called before a line break, rather than after (which is
probably better and which i will change now).

fairchild wrote:
 Impressive detective work.  Please add commentary about the 
 documentation trail you followed to discover your result.  Maybe 
 include some explanation of what code does what.

the documentation trail:
Difficult tweaks:
http://lilypond.org/doc/v2.6/Documentation/user/out-www/lilypond/Difficult-t
weaks.html
-- defining a 2-line callback function for after line breaking which
just categorically changed the extra-offset property. that didn't work, so i
started reading the scheme functions for lily:
http://lilypond.org/doc/v2.7/Documentation/user/out-www/lilypond-internals/S
cheme-functions.html
and searching for break led me to the ly:item-break-dir function. checking
for beginning of line was then a matter of working out how to do an if
branch in scheme.

code comments:
% define a function called mark-callback which receives grob as a
parameter  #(define (mark-callback grob) % is this item is at the beginning
of the line (ly:item-break-dir returns 1)
  (if (= (ly:item-break-dir grob) 1)
% set extra-offset to the desired shift.
  (ly:grob-set-property! grob 'extra-offset '(-2.8 . 1

the \book and \repeat commands are well documented in the manual. \repeat
definitely is, and i only used it out of laziness in this example.

for 2.4. and 2.6. please use Mats' version which is:
\override Score.RehearsalMark #'after-line-breaking-callback =
#mark-callback

Mats' version is semantically more correct -- the only difference being that
this callback seems to shift  further to the left.

sample output again at: http://binabik.boldlygoingnowhere.org/r-marks.pdf

the whole reason i wanted this hack was for the following scenario:
http://binabik.boldlygoingnowhere.org/trbns/
all three files are generated from the same source. i was having problems
with the first piece in the marschbuch format (a5-landscape). lily's
solution is in the standard version and collides nastily with the
multimeasure rests; my solution is visible in the hacked version. [nb, the
staff line vertical spacing has been seriously overriden in this document].
the reason i didn't want to hard code this in the source files is because of
the concert.pdf and score.pdf which are generated from the same sources.

regards,
sb
--
Do not meddle in the affairs of trombonists, for they are subtle and quick
to anger.


___
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


Extra staff in score with lyrics

2005-11-23 Thread liang seng
Hi, I'm using Lilypond 2.7.17 to do a score with solo voice and strings. 
Here

is a small extract from the voice line (lyric.ly) :

\version 2.7.17
lyric =
\relative

 \context Staff \context Voice = melody {
f'2  \context Voice = other { \voiceOne \tiny g c f,4 } \context
Voice=melody { \voiceTwo \normalsize g,2 c f,4 }  \oneVoice r4
 }

 \lyricsto melody \new Lyrics { Al -- le -- lu -- ja. }




And here is the full score (score.ly):

\version 2.7.17
\include lyric.ly
\score {

\new StaffGroup 
\new Staff  { \set Staff.instrument = Violin R1 R1 } 
\new Staff  { \set Staff.instrument = Viola R1 R1} 
\new Staff  { \set Staff.instrument = Soprano \lyric } 
\new Staff  { \set Staff.instrument = Cello R1 R1 }   
}

For the sake of simplicity, all the staves except the soprano staff contain 
only rests.
Here, when I compile score.ly, the output look good except for one thing. 
The
soprano staff is at the correct position (3rd staff from the top). However, 
the
lyrics, which are supposed to be below the soprano staff, are at the bottom 
of
the score, below the last (cello) staff. Why is this? How can I rectify 
this?
Another interesting thing is, when I replace \context Staff with \new Staff 
in

lyric.ly, the full score has an extra staff above the soprano staff, but the
staff has no notes or rests, only a clef. Again, why does this happen?
Thank you.
Seng Liang.




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


Re: Controlling stave separation

2005-11-23 Thread Art Hixson

Thanks Thies,
That curly quote symbol was copied, using the copy function, from 
section 7.1.5 of the PDF version of the User Manual where I note other 
instances of the same sort. Had I typed the string I wouldn't have had 
the problem as I don't have that character on my keyboard. But, it's 
handy to snip bits from the manual. Can that be corrected?


Thies Albrecht wrote:


Hi Art!

I tried \override Stem #’length = #0 but I get an unbound variable 
error.


There's a little fault in syntax as you have to use an ' instead of ’
(\override Stem #'length = #0)

Regards
Thies







--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.362 / Virus Database: 267.13.7/180 - Release Date: 2005/11/23



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


Curly ' (was: Controlling stave separation)

2005-11-23 Thread Graham Percival


On 23-Nov-05, at 11:59 AM, Art Hixson wrote:

That curly quote symbol was copied, using the copy function, from 
section 7.1.5 of the PDF version of the User Manual where I note other 
instances of the same sort. Had I typed the string I wouldn't have had 
the problem as I don't have that character on my keyboard. But, it's 
handy to snip bits from the manual. Can that be corrected?


Short answer: yes.

Medium answer: I don't know how.

Long answer: some people have investigated this; if you're interested, 
search the mailist.  I don't know enough about how lilypond builds 
documentation, and/or latex, and/or texinfo, to fix it.  A patch to fix 
this would be __greatly__ appreciated.


Cheers,
- Graham Percival, LilyPond Documentation Editor.



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


Re: \harmonic on note outside chord.

2005-11-23 Thread Jonatan Liljedahl
On Wed, 23 Nov 2005 17:29:51 -0200
Jonatan Liljedahl [EMAIL PROTECTED] wrote:

 Is there a reason not to allow \harmonic on a note that is not part of
 a chord? Or is this a bug?

Also, the same question goes for stringnumbers, c\1 does not work but
c\1 does!

/Jonatan-=( http://kymatica.com )=-


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


D.C. al Coda?

2005-11-23 Thread S L Raymond
Running LP 2.2.6...

I've thoroughly scoured the documentation, examples, templates, etc.,
and I can't find a solid answer:

What's the conventional method of adding a D.C. al Coda? Specifically, I
want to know...

1. If the coda is taken at a bar line, should the symbol be positioned
above the bar or above the last notehead in the bar?
2. Is to coda necessary?  If so, how is the text usually formatted?
3. Is the coda sign the same at the coda as it is when referring to the
coda?  Or is it larger, and/or accompanied by Coda in larger print?
4. Does the coda usually begin a new line?  Are there any margin issues
to consider?

In case you're wondering, here's the music to which I'm adding the Coda.
The Coda itself has not been coded yet.  By the way, I still don't know
how to remove the H and P from slurs in tablature.  Any help on that
matter would also be appreciated.

\header {
title = Tom Dooley
composer = traditional
arranger = \small arr. S L Raymond
pagenumber = no
}

changes = \chords {g1}

\score  {
\notes 
\context TabStaff \relative c{
\set TabStaff.stringTunings = #'(-10 -13 -17 -22
-5)

\repeat volta 2 {
d,8 g d' g, e b' g d'
a16[ \glissando bes b8 d g\5] d b g b
d,8 g d' g, e b' g d'
a d\2 fis g\5 fis d\2 a d
d,8 a' d a e d' g, d'
a c d g\5 d c a d
a d g\5 bes,( a d) g e d'\coda }

\alternative {
{ g, b d g\5 d b g d' }
{ g, b d g\5 g, d' g\5 ais\1( }
}

\repeat volta 2 {
b\1) g\5 e\3 d g\5 e\2 d b
a16[ \glissando bes b8 d g\5] d b g ais'\1(
b\1) g\5 e\3 d g\5 e\2 d b
a d\2 fis g\5 fis d\2 a d
a d g\5 bes,( a d) g e d' \break }

\alternative {
{ g,4 d' g\5 d,8 d' g\5 ais\1 }
{ g,4 d' g\5 b d g\5 \bar || }
}
}



\paper  { }

}




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


Re: \harmonic on note outside chord.

2005-11-23 Thread Han-Wen Nienhuys

Jonatan Liljedahl wrote:

Is there a reason not to allow \harmonic on a note that is not part of
a chord? Or is this a bug?



Also, the same question goes for stringnumbers, c\1 does not work but
c\1 does!


try doing \displayMusic on both

  c-.

and

  c-.

As you can see, in the latter case, the articulation is not attached to 
the note, and it would be difficult to attach the right symbol 
(articulation, fingering, etc.) to the right note head.



--
 Han-Wen Nienhuys - [EMAIL PROTECTED] - http://www.xs4all.nl/~hanwen


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


Re: Curly '

2005-11-23 Thread Han-Wen Nienhuys


[problem: cut  pasting TeX's apostrophe yields quoteright code point]

Graham Percival wrote:
That curly quote symbol was copied, using the copy function, from 
section 7.1.5 of the PDF version of the User Manual where I note other 
instances of the same sort. Had I typed the string I wouldn't have had 
the problem as I don't have that character on my keyboard. But, it's 
handy to snip bits from the manual. Can that be corrected?



Short answer: yes.

Medium answer: I don't know how.

Long answer: some people have investigated this; if you're interested, 
search the mailist.  I don't know enough about how lilypond builds 
documentation, and/or latex, and/or texinfo, to fix it.  A patch to fix 
this would be __greatly__ appreciated.


I'm not sure if it is something we can fix on the (La)TeX side of 
things. The TeX fonts don't contain an apostrophe (quotesingle) symbol 
at all. I'm not familiar with cut  paste for PDF, but if that works by 
cut  pasting the glyph names/code points for the  glyphs shown, then 
we're screwed. Then we would have to hack texinfo


1. to use a different font containing singlequote

2. to select the singlequote glyph for ' in verbatim mode.

(I shudder at the thought of hacking in TeX macros)

Werner?

--
 Han-Wen Nienhuys - [EMAIL PROTECTED] - http://www.xs4all.nl/~hanwen


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


Re: Install of 2.6.4 on FreeBSD

2005-11-23 Thread Gordon Gilbert

Hi!

My install of 2.6.4 has stopped with the following output:

gmake[1]: Entering directory `/usr/ports/distfiles/lilypond-2.6.4/python' 
/bin/sh 
/usr/ports/distfiles/lilypond-2.6.4/stepmake/stepmake/../bin/install-sh -c 
-d /usr/local/share/lilypond/2.6.4/python /bin/sh 
/usr/ports/distfiles/lilypond-2.6.4/stepmake/stepmake/../bin/install-sh -c 
-m 644 ./out/midi.so /usr/local/share/lilypond/2.6.4/python/  true 
/usr/ports/distfiles/lilypond-2.6.4/stepmake/stepmake/../bin/install-sh: 
./out/midi.so does not exist.

gmake[1]: *** [local-install-outfiles] Error 1
gmake[1]: Leaving directory `/usr/ports/distfiles/lilypond-2.6.4/python' 
gmake: *** [install] Error 2 
[2:29:[EMAIL PROTECTED]:/usr/ports/distfiles/lilypond-2.6.4


Can anyone tell me how to proceed from here, and get back on track to 
complete the install?  If there is a missing item (/.out/midi.so) does 
somebody have a copy, and where to I put it?  Or if I indeed *have* it, 
where is it, and where does it go?


Blessings,

Fr. Gordon Gilbert


+=+
| Angels' Roost Farm  |
|   Rev. Fr. Gordon Gilbert  Susan Gilbert   |
|   705-549-5056  |
|[EMAIL PROTECTED]  |
|[EMAIL PROTECTED] |
+=+


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


Re: Curly '

2005-11-23 Thread Sven Axelsson
On 24/11/05, Han-Wen Nienhuys [EMAIL PROTECTED] wrote:

 [problem: cut  pasting TeX's apostrophe yields quoteright code point]

 I'm not sure if it is something we can fix on the (La)TeX side of
 things. The TeX fonts don't contain an apostrophe (quotesingle) symbol
 at all. I'm not familiar with cut  paste for PDF, but if that works by
 cut  pasting the glyph names/code points for the  glyphs shown, then
 we're screwed. Then we would have to hack texinfo

Yes, they do contain a straight single quote. As I have posted before,
it is easy to get TeX to use straight single quotes instead of curlys,
but I don't know enough about the TeXinfo setup used for building the
documentation to provide a proper patch. Here's what I said earlier:

Quote Sven Axelsson:
 Anyhow, this is how to get TeX to use straight single quotes that
 work right when copied from a PDF.

 Redefine the ' character as:
 \catcode`'=\active\gdef'{\char0D}

 The following small fragment shows the difference:

 \tt Test \#'(1 . 2)
 \par
 \catcode`'=\active\gdef'{\char0D}
 \tt Test \#'(1 . 2)
 \end
End Quote

But I don't understand the TeXinfo build process well enough to tell
you where to put this to get it working. I'm using windows, so the
chance of me getting the documentation build working on my machine is
probably real slim. But maybe someone with a good grasp of how the
build works could have another look? I'm sure there is a style setup
file or a global include somewhere that could be patched.

--
Sven Axelsson


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


Re: D.C. al Coda?

2005-11-23 Thread S L Raymond
I'm running Ubuntu Breezy and for some reason, even after apt-get
update, 2.2 is the latest version it will fetch.

On Wed, 2005-11-23 at 20:50 -0800, Graham Percival wrote:
 On 23-Nov-05, at 3:48 PM, S L Raymond wrote:
 
  Running LP 2.2.6...
 
  I've thoroughly scoured the documentation, examples, templates, etc.,
  and I can't find a solid answer:
 
 I recommend upgrading to 2.6, and looking in the 2.6 or 2.7 manuals.  
 They include such an example in text marks, I believe.
 
 Cheers,
 - Graham


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


Re: Install of 2.6.4 on FreeBSD

2005-11-23 Thread D Josiah Boothby

I wish I could help you. Have you tried asking this on the bug list?

Gordon Gilbert wrote:

Hi!

My install of 2.6.4 has stopped with the following output:

gmake[1]: Entering directory 
`/usr/ports/distfiles/lilypond-2.6.4/python' /bin/sh 
/usr/ports/distfiles/lilypond-2.6.4/stepmake/stepmake/../bin/install-sh 
-c -d /usr/local/share/lilypond/2.6.4/python /bin/sh 
/usr/ports/distfiles/lilypond-2.6.4/stepmake/stepmake/../bin/install-sh 
-c -m 644 ./out/midi.so /usr/local/share/lilypond/2.6.4/python/  true 
/usr/ports/distfiles/lilypond-2.6.4/stepmake/stepmake/../bin/install-sh: 
./out/midi.so does not exist.

gmake[1]: *** [local-install-outfiles] Error 1
gmake[1]: Leaving directory `/usr/ports/distfiles/lilypond-2.6.4/python' 
gmake: *** [install] Error 2 
[2:29:[EMAIL PROTECTED]:/usr/ports/distfiles/lilypond-2.6.4


Can anyone tell me how to proceed from here, and get back on track to 
complete the install?  If there is a missing item (/.out/midi.so) does 
somebody have a copy, and where to I put it?  Or if I indeed *have* it, 
where is it, and where does it go?


Blessings,

Fr. Gordon Gilbert


+=+
| Angels' Roost Farm  |
|   Rev. Fr. Gordon Gilbert  Susan Gilbert   |
|   705-549-5056  |
|[EMAIL PROTECTED]  |
|[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