voltaOnThisStaff property in the master file's \layout block

2007-07-26 Thread Romel Anthony S. Bismonte
I found the following fix in the LSR, which puts volta brackets above the 
chord names:


\version 2.10.0
\score { 
 \new ChordNames \with {
   voltaOnThisStaff = ##t
 } \chordmode {
   c1 c
 }
 \new Staff \with {
   voltaOnThisStaff = ##f
 }
 {
   \repeat volta 2 { c'1 } \alternative { c' }
 }

}


The thing is, I have a lot of these music files I would like to do this to. 
The idea is that there is one master file, which contains paper, layout 
settings, scheme functions, static music identifiers, and so on, and then 
there are several \include statements in there that contain the actual 
pieces. Is there a way to set the voltaOnThisStaff property in the layout 
block in the master file?


Of course, it would be OK if this were not settable in the master file; I 
could just edit the individual music files to contain the definition. But 
something tells me that there must be a way.


Thanks in advance for any input.

Romel 




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


all sharps ?

2007-07-26 Thread Vasil Kadifeli

I am a new guitar class student and I don't know much of notes and the music
terminolgy in English...
I'd like to to engrave the following sharp signs to the beginning of the
staff so that all following C, F ang G notes will be half note sharper...
I thought I can use the \transpose command but it didn't work...
any one to help ? thanks in advance

Vasil


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


Re: all sharps ?

2007-07-26 Thread Vasil Kadifeli

Many thanks Tao,

it works ;)

but then I will have to encode all c, f, and g notes as cis, fis, and gis
respectively, because lilypond puts a natural sign in front of the first c,
f, g note. am I correct ?

I was expecting *some kind* of automatic mechanism for that, though I am not
sure how that could be done...

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


Re: all sharps ?

2007-07-26 Thread Tao Cumplido
hi Vasil,

what you want to use is called 'key signature' in english.
in this case you have the key of a major or f-sharp minor, so your code needs 
the following at the beginning of your piece:

\key a \major
or
\key fis \minor


the transpose command will only transpose the key signature if it is set at the 
beginning.
if you want to use the transpose command you need to set the following:

\key c \major
\transpose c a { music }

but then you have to write your music in c to get the desired output.
for your case I guess that you won't need the transpose function.

regards,

Tao

 Original-Nachricht 
Datum: Thu, 26 Jul 2007 10:41:28 +0300
Von: Vasil Kadifeli [EMAIL PROTECTED]
An: lilypond-user@gnu.org
Betreff: all sharps ?

 I am a new guitar class student and I don't know much of notes and the
 music
 terminolgy in English...
 I'd like to to engrave the following sharp signs to the beginning of the
 staff so that all following C, F ang G notes will be half note sharper...
 I thought I can use the \transpose command but it didn't work...
 any one to help ? thanks in advance
 
 Vasil
 
 
#
 -#
 --
   #
 --
 --
 --

-- 
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail


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


Re: all sharps ?

2007-07-26 Thread Rune Zedeler
Quoting Tao Cumplido [EMAIL PROTECTED]:

 \key c \major
 \transpose c a { music }

Should have been

\transpose c a {
  \key c \major
  ... music ...
}

-otherwise the key signature would not be transposed.

-Rune



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


Re: all sharps ?

2007-07-26 Thread Vasil Kadifeli

Many thanks for the reminder Rune,
This I will take into account and do some tests...
But I'am done with what I was struggling for the moment...
And by the way, is there a way to play the tunes from a *.ly* file ?


On 7/26/07, Rune Zedeler [EMAIL PROTECTED] wrote:


Quoting Tao Cumplido [EMAIL PROTECTED]:

 \key c \major
 \transpose c a { music }

Should have been

\transpose c a {
\key c \major
... music ...
}

-otherwise the key signature would not be transposed.

-Rune


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


Re: all sharps ?

2007-07-26 Thread Valentin Villenave

2007/7/26, Vasil Kadifeli [EMAIL PROTECTED]:


And by the way, is there a way to play the tunes from a .ly file ?


Sure:
http://lilypond.org/doc/v2.10/Documentation/user/lilypond/Creating-MIDI-files

Regards,
V.Villenave


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


Re: Microtone accidentals

2007-07-26 Thread Siska Ádám

Hello,


after lot of people suggested to me to upgrade to version 2.11, I did 
it. I have to admit that the result is much better than in 2.10, 
specially with a lot of smart automation on text positioning, which up 
to now was done by myself. But I have some serious problems which I 
don't know how to solve. These are almost all related to textspanners.


1) If I simply use the method suggested by upgrade-ly for text spanners, 
that is:


\override TextSpanner #'bound-details #'left #'text = left-text
\override TextSpanner #'bound-details #'right #'text = right-text

I don't get the dashed lines, only the texts (in my particular case, 
left-text was set to #(markup #:italic restez IV), and right-text 
to , but also doesn't work with #(markup #:italic sul sol) and , etc.)


2) I'm also getting the bug posted some time ago by Trevor Bača ('Overly 
thick results from markup with draw-line'). Is there some workaround 
related to this?


3) If there's a linebreak while a text spanner is active, the 
textspanner's end-text gets displayed on the end of the line, and the 
textspanner's begin-text gets displayed at the beginning of the new 
line. How can I avoid this behaviour and get the one that worked in 
2.10? (No duplications of the begin and end texts.) The reason in my 
particular case is that the mentioned text-spanner tells the player that 
he has to go from ordinary bow to sul ponticello while playing, and he 
only has to reach the sul ponticello at the end of the text span. If I 
got the sp sign printed on the end of the line, and I get the ord sign 
printed at the beginning of the new line again, that would mean that the 
player should do this two times (the ord-sp transition).


4) text spanners are printed for some reason some times very very far 
from the musical context, with no reason. Also, markup texts are placed 
always above text spanners, which not always is convenient, but I don't 
know how to change this behaviour. Also, if I have several text spanners 
the one after the other, every new text spanner gets placed above the 
prior one, causing the space between the staves to be enormous. The 
normal behaviour for this should be that in this cases they come one 
time above, the next time below the prior text spanner, respectively, to 
keep space. Can I force the spanners to do this somehow?


5) There's a line in my score where I get no more linebreak. In 2.10, 
Lilypond broke me the line at that particular place, thus I got a very 
nice and balanced score (this was not a manual linebreak, however, it 
was a very good decision by the engine to put it there). Now, I don't 
get the linebreak, and thanks to this, I have two pages that contain 
single systems (I'm engraving a string quartet!), and in one of them the 
system is longer than the page... And even if I put a manual linebreak, 
it does nothing. In the particular case, there are several glissandi 
crossing that barline. Can this cause this error? Do you have any idea 
to avoid it?


6) At compilation time, I'm getting lots of 'warning: Found infinity or 
nan in output. Substituting 0.0' warnings, which I hadn't get before. Do 
you have any idea for this?



Thank you,
Adam



Siska Ádám
+36 (70) 207-63-85
http://apocalypse.rulez.org/~sadam


Valentin Villenave wrote:

2007/7/26, Valentin Villenave [EMAIL PROTECTED]:

What about the following trick? (It looks ugly on screen, but fine 
when printed)


[snip]

I forgot to mention that it will only work with 2.11 (the syntax has
changed since 2.10).
Since you're running 2.10, you may have to use a few modifications
(such as accidentals.2 instead of accidentals.sharp, etc.). --
however, you'd better upgrade to 2.11.27; it's quite reliable and
better in some ways.

V.




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


Re: all sharps ?

2007-07-26 Thread Christ van Willegen

Hi,

On 7/26/07, Vasil Kadifeli [EMAIL PROTECTED] wrote:


Many thanks Tao,

it works ;)

but then I will have to encode all c, f, and g notes as cis, fis, and gis 
respectively, because lilypond puts a natural sign in front of the first c, f, 
g note. am I correct ?

I was expecting some kind of automatic mechanism for that, though I am not sure 
how that could be done...


That's correct, you'll have to write the fis, gis and cis as, well,
fis, gis and cis! That's because a 'cis' (or 'c sharp') is a different
note from a 'c' (c 'natural').

If you'd rather write 'cs' for 'cis', I guess you'll have to include
'english.ly' somewhere. Since Lilypond is originally written for Dutch
musicians, the default is dutch note names...

See 
http://lilypond.org/doc/v2.10/Documentation/user/lilypond/Note-names-in-other-languages
for more information.

Regards,

Christ van Willegen
--
09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0


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


Re: voltaOnThisStaff property in the master file's \layout block

2007-07-26 Thread Kieren MacMillan

Hi,

Is there a way to set the voltaOnThisStaff property in the layout  
block in the master file?


I think you're looking for

\layout
{
\context
{
\ChordNames
voltaOnThisStaff = ##t
}
}

Hope this helps!
Kieren.


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


instrumentName and polyphony

2007-07-26 Thread Charlotte

Hi,

I'm having problems with getting instrument (or technically voice-part)
names to appear on a polyphonic score. Where in the syntax, or even in the
.ly file do I put the \set instrumentName?

I'm writing some simple 4-part choral stuff on 2 staves, using the template
from
http://lilypond.org/doc/v2.10/Documentation/user/lilypond-big-page#Vocal-ensembles

I need to label each vocal line because some scores are SATB whilst others
are SSTT or other combinations. However, I can only get one instrumentName
to appear (the lower of each pair of voices). (example code below) 

What am I doing wrong, and how do I fix it?

Whilst I'm doing this, I'd also like to chance the default font settings for
instrumentName, to make the font smaller and sans-serif. Can I do this
globally, or do I have to do it for each \score in the .ly file?

Thanks for your help.

C.

**code begins*
 \version 2.10.10
 global = {
\key c \major
\time 4/4
 }
 
 sopMusic = \relative c'' {
  \set Staff.instrumentName = S
c4 c c8[( b)] c4
 }
 sopWords = \lyricmode {
hi hi hi hi
 }
 
 altoMusic = \relative c' {
  \set Staff.instrumentName = A
e4 f d e
 }
 altoWords =\lyricmode {
ha ha ha ha
 }
 
 tenorMusic = \relative c' {
 \set Staff.instrumentName = T
g4 a f g
 }
 tenorWords = \lyricmode {
hu hu hu hu
 }
 
 bassMusic = \relative c {
 \set Staff.instrumentName = B
c4 c g c
 }
 bassWords = \lyricmode {
ho ho ho ho
 }
 
 \score {
\new ChoirStaff 
   \new Lyrics = sopranos { s1 }
   \new Staff = women 
  \new Voice =
sopranos { \voiceOne  \global \sopMusic  }
  \new Voice =
altos { \voiceTwo  \global \altoMusic  }
   
   \new Lyrics = altos { s1 }
   \new Lyrics = tenors { s1 }
   \new Staff = men 
  \clef bass
  \new Voice =
tenors { \voiceOne \global \tenorMusic  }
  \new Voice =
basses { \voiceTwo \global \bassMusic  }

   
   \new Lyrics = basses { s1 }
 
   \context Lyrics = sopranos \lyricsto sopranos \sopWords
   \context Lyrics = altos \lyricsto altos \altoWords
   \context Lyrics = tenors \lyricsto tenors \tenorWords
   \context Lyrics = basses \lyricsto basses \bassWords

 
\layout {
   \context {
  % a little smaller so lyrics
  % can be closer to the staff
  \Staff
  \override VerticalAxisGroup #'minimum-Y-extent = #'(-3 . 3)
   }
}
 }

-- 
View this message in context: 
http://www.nabble.com/instrumentName-and-polyphony-tf4150907.html#a11808268
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


Re: Can I have my own custom LilyPond?

2007-07-26 Thread Tao Cumplido
Hi,

I tried your suggestion and works really good so far, thanks.
The only problem is that I can't find a way to place the chords above the staff 
now.
Any solutions?

regards,

Tao

 Original-Nachricht 
Datum: Wed, 25 Jul 2007 08:54:10 +0200
Von: Mats Bengtsson [EMAIL PROTECTED]
An: Tao Cumplido [EMAIL PROTECTED]
CC: [EMAIL PROTECTED], lilypond-user@gnu.org
Betreff: Re: Can I have my own custom LilyPond?

 Quoting Tao Cumplido [EMAIL PROTECTED]:
 
  Hello,
 
  I also use my own font. I am no programmer, so I use skips with the 
  chords attached as TextScript.
 
 Why not write them as a lyrics line (with explicit durations on each 
 syllable)? Then you don't need to type all the skips and
 you will also get the chords vertically aligned.
 
/Mats

-- 
Pt! Schon vom neuen GMX MultiMessenger gehört?
Der kanns mit allen: http://www.gmx.net/de/go/multimessenger


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


Re: all sharps ?

2007-07-26 Thread Vasil Kadifeli

...and I was wandering why a two character notation for sharps ;)
thank you all once again...


On 7/26/07, Christ van Willegen [EMAIL PROTECTED] wrote:


Hi,

On 7/26/07, Vasil Kadifeli [EMAIL PROTECTED] wrote:

 Many thanks Tao,

 it works ;)

 but then I will have to encode all c, f, and g notes as cis, fis, and
gis respectively, because lilypond puts a natural sign in front of the first
c, f, g note. am I correct ?

 I was expecting some kind of automatic mechanism for that, though I am
not sure how that could be done...

That's correct, you'll have to write the fis, gis and cis as, well,
fis, gis and cis! That's because a 'cis' (or 'c sharp') is a different
note from a 'c' (c 'natural').

If you'd rather write 'cs' for 'cis', I guess you'll have to include
'english.ly' somewhere. Since Lilypond is originally written for Dutch
musicians, the default is dutch note names...

See
http://lilypond.org/doc/v2.10/Documentation/user/lilypond/Note-names-in-other-languages
for more information.

Regards,

Christ van Willegen
--
09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0





--
---
VASIL KADIFELI
sayfalarımızı ziyaret edin yararlanın :)
http://www.kadifeli.com
http://www.kadifeli.com/vasil
http://www.kadifeli.com/fedon
===
yeni bir hizmet : http://www.yeri.com
===
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Indenting Coda System

2007-07-26 Thread Charlotte

Following on from what Bertalan said, if you put the coda in a separate score
block I think you can then use 
\markup {
\translate #(cons X Y) { \score{yourscoreblock} }
}
}
to shift it around, where X is the horizontal movement (+ve for right, -ve
for left) and Y is the vertical movement (+ve for up, -ve for down).

Thanks to Valentin for teaching me that one!

Best,

C.
-- 
View this message in context: 
http://www.nabble.com/Indenting-Coda-System-tf4139880.html#a11808373
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


Beams across barlines and line breaking

2007-07-26 Thread Siska Ádám

Hello,


after upgrading to 2.11, the beams going accross barlines block the 
engine from making line breaks. The problem is that I have a polyphonic 
place in the score I'm engraving where there are 9 bars one after the 
other that have barline-crossing beams in some of the voices, and 9 bars 
are much longer than a single line in an arbitrary paper. If I try to 
introduce manual line breaks with the \break command, I only get the 
following warning:


   warning: forced break was overridden by some other event, should you 
be using bar checks?


And the line still doesn't get broken. How can I force the lines to 
break? Is this maybe a bug?



Thank you,
Adam



Siska Ádám
+36 (70) 207-63-85
http://apocalypse.rulez.org/~sadam


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


Re: Can I have my own custom LilyPond?

2007-07-26 Thread Valentin Villenave

2007/7/26, Tao Cumplido [EMAIL PROTECTED]:


The only problem is that I can't find a way to place the chords above the staff 
now.
Any solutions?


If I remember correctly, this is something like:

\new Staff = mystaff { \new Voice = music {%add notes here...
}}

\new Lyrics \with {alignAboveContext=mystaff} \lyricsto music
\lyricmode {% add chord names here}

Cheers,
V.Villenave


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


Spacing problem

2007-07-26 Thread Siska Ádám

Hello,


I'm now getting some spacing errors with noteheads. I attach an image.
Is this some positioning bug in 2.11? (In 2.10 I didn't notice it.) If 
not, is there some possible workaround for cases like these? (Both are 
produced at beam endings, so maybe if there is some method for 
increasing space between beams, that could also help.)



Thank you,
Adam



Siska Ádám
+36 (70) 207-63-85
http://apocalypse.rulez.org/~sadam
inline: ScreenShot.tiff___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


some questions

2007-07-26 Thread M.v.Strien

Hi list,

Sorry if the following has been asked oodles o' times before. :)

1) I can't get that open office lilypond thing to work. The setup of the 
macros etc. went well (had to install some Java stuff tho), and ctrl-m 
brings that lilypond popup. But when I type some lilypond script -such as 
the example from the ooolilypond sourceforge webpage- I get this error when 
hitting the lilypond button:


'C:\Program' is not recognized as internal or external command, operable 
program or batch file.


I use Open Office 2.2.0 and Lilypond 2.10, and the OS is WinXPsp2 on a 
recent and *heavy* machine.
The hotkeys' right column for ctrl-m says: 
vnd.sun.star.scipt:OOoLilyPond.Main.main?language=Basiclocation=application


From the config menu:
template path: C:\Program Files\OOoLilyPond\templates\2.10\
lilypond executable: C:\Program Files\LilyPond\usr\bin\lilypond.exe


2) In the situation of a complete orchestral score, is it possible to have 
one measure preceding the actual start of the score, so: an extra measure 
in which one could show timpani tuning. So, it wouldn't really be measure 
0, but more like measure -1, where the real score starts at measure 0 (or 1 
if Lilypond is 1-based)
If someone has the Dover edition of 'The Planets (Holst)', you can see an 
example of it in 'Mars', and 'Uranus' (^_^), in the other parts of this 
work this tuning measure is distracted from the staffs and loosely floating 
around, dunno if that's with a good reason or just not consistant. Where 
the curly bracket is placed also differs, sometimes preceding this extra 
measure, sometimes between this extra measure and the start of the score.


grtz,
Maarten van Strien



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


Re: some questions

2007-07-26 Thread Dominic Neumann

'C:\Program' is not recognized as internal or external command, operable
program or batch file.


[...]


lilypond executable: C:\Program Files\LilyPond\usr\bin\lilypond.exe




It looks as if it treats everything after the space as an argument.
Maybe you have to put the path to lilypond into quotation marks like
this:

C:\Program Files\LilyPond\usr\bin\lilypond.exe


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


Re: Substitution

2007-07-26 Thread Martial

Hi !

In the following code, why doesn't my substition work?


just put in bracket {  blabla  }

breath = {
\once\override BreathingSign #'extra-offset = #'(0.0 .
1.0)\breathe
}



%%+++ begin snippet 

\version 2.11.23
\include english.ly

breath = \once\override BreathingSign #'extra-offset = #'(0.0 .
1.0)\breathe

Test = {
\key c \major
\clef treble
\time 4/4

c''4 c'' \breath c'' c'' \break
c''4 c'' \once\override BreathingSign #'extra-offset = #'(0.0 .
1.0)\breathe c'' c''


}

\score {
\Test

}

%%+++ end snippet +++




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


Re: Standalone bar lines in StaffGroup

2007-07-26 Thread Trevor Bača

On 7/26/07, Siska Ádám [EMAIL PROTECTED] wrote:

Hello,


I'm engraving a string quartet, and I have the four staffs inside a
StaffGroup. This is normally good for bar lines, as normally I need
single barlines that display through the four staves. But there's a
point where the time signatures differ for every stave, but just for a
few bars. How can I tell the engine to create separate barlines only for
that few staves?


The 2.11 manual seems to be offline at the moment. But check 8.4.1
Polymetric notation in the 2.10 manual. Should work fine; if not,
post a minimal example that gets as close as you can.




P.S. If someone knew a solution on how to connect a horizontal line to a
barline, or better, a solution to how to tell the engine to put the
first notes of the bars exactly on the barline (as this would solve the
line problem with some invisible notes on the barline that have
glissando lines attached), please tell me! (The 'put the first notes of
the bar exactly on the barline' could also be useful to engrave scores
that have strict space notation, like Tristan Murail's ones.)


This is possible today using proportional notation. The 2.10 manual
mentions proportional notation only a little; the 2.11 manual (which,
again, is currently offline) treats proportional notation in much
greater detail. Read about that in 2.11 when it's available, and
expect to spend a day or two running examples to learn how the
different proportional notation parameters interact.



--
Trevor Bača
[EMAIL PROTECTED]
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


LilyPond extension/plugin for MediaWiki software

2007-07-26 Thread Mark Dewey

Hello,

I've heard tell that there is a LilyPond extension or plugin for MediaWiki 
(that's the software they use with Wikipedia).  I have a wiki (HymnWiki.org) 
that uses LilyPond files quite a bit . . . so, I'm interested in finding out 
what the plugin is for, what it is called, and where I can get it.  Do any of 
you know?  Would it be better to ask on a MediaWiki forum?  I figured the 
person who made it probably frequents these forums from time to time, anyway.

I've heard that it requires LilyPond to be installed on the server.  Is this 
true?

I'm guessing it allows scores to show up, or plays the music, or something, but 
I really have no idea other than that.  Whatever the case, my Internet searches 
haven't yielded much.



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


Parentheses

2007-07-26 Thread Mark Dewey

How do you input parentheses in lyrics?  Just adding them in makes it so it 
won't compile, due to a syntax error.

I have several scores that use parentheses in their lyrics (most of them are 
rather old, however).  It would be nice to be able to do them how they were 
then, in this regard, I think.

I use LilyPond version 2.10.25, on Windows 2000.

Thanks!



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


Re: grace note leading to chord [solved]

2007-07-26 Thread Valentin Villenave

2007/7/27, Gilles THIBAULT [EMAIL PROTECTED]:

Yes, perfect solution


Maybe this could be added to the LSR; or do you prefer to wait until
someone writes a Scheme function?

By the way, I would be interested in that too; I wonder how one can
extract a note from a chord using Scheme... Or maybe we'd have to add
an extra argument (i.e. the ghost note that's not printed), but I
thought Scheme functions can only accept two arguments... Or maybe
using a list or something?

V.V.


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


Re: grace note leading to chord [solved]

2007-07-26 Thread Gilles THIBAULT

Yes, perfect solution
I tested an acciaccatura with a chord and with a single note : it's 
absolutly the same :


%

\version 2.10.25

\new Staff {
  
   {
   \slurDown
   \acciaccatura b'8
   \once \override NoteHead #'X-extent = #'(0.0 . 0.0)
   \hideNotes c''4  \unHideNotes
   \slurNeutral
   }
   {
e' g' c''4
   }
   

   \acciaccatura b'8  c''4
}

%%

I had never really understood the X-extent property, i think now i 
understand a bit more. Thank you Valentin.


A day, when i am a shemer, i'll try to make a function to make that staff 
automatic.


(  with this syntax for exemple  \acciaChord b'8  e' g' c''4  and the 
function will take the first element of the chord ).


A day ...

Gilles




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


Re: Tweaking arpeggios

2007-07-26 Thread Diosnel Herrnsdorf
You may have to work out your own tweak for this one... Check 
http://lilypond.org/doc/v2.10/input/regression/lily-db2f26903c.ly for an 
example of a bracket and see if you can combine it with arrow heads.


Regards,

- Original Message - 
From: Daniel Tonda Castillo [EMAIL PROTECTED]

To: lilypond-user@gnu.org
Sent: Thursday, July 26, 2007 22:30
Subject: Re: Tweaking arpeggios




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


Re: Tweaking arpeggios

2007-07-26 Thread Daniel Tonda Castillo

Diosnel Herrnsdorf escribió:

Daniel,

Off the top of my head, I can't remember the syntax, but look for 
something like \DownArpeggio or \ArpeggioDown. The line would still be 
squiggly, though, and I think that's fine as far as I know, because a 
straight line usually means plaqué (i.e. non arpeggiated), so the 
arrow would be meaningless in this context.
Precisely, I do not want the squiggly line, but a straight one. 
Sound-wise there's a difference between strumming upwards and downwards, 
plus it's supposed to be an educational excercise where the strumming 
pattern is indicated with different pointing arrows, it is not intended 
to be arpeggiated.


Suggestions?


Regards,

Diosnel

- Original Message - From: Daniel Tonda Castillo 
[EMAIL PROTECTED]

To: lilypond-user@gnu.org
Sent: Thursday, July 26, 2007 21:23
Subject: Tweaking arpeggios



Hello:

Is there a way to set the squiggly line of the arpeggio to a straight
line with the arrow included?

This is because in guitar music, sometimes the direction of the strum is
indicated with an arrow pointing upwards in case the strum s from the
low strings to the high strings, and viceversa.

Daniel Tonda C.




 





___
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




--
The notes blatted skyward as they rose over the Canada geese, feathered 
rumps mooning the day, webbed appendages frantically pedaling unseen 
bicycles in their search for sustenance, driven by cruel Nature's maxim, 
'Ya wanna eat, ya gotta work,' and at last I knew Pittsburgh. -- Winning 
sentence, 1987 Bulwer-Lytton bad fiction contest.
begin:vcard
fn:Daniel Tonda Castillo
n:Tonda Castillo;Daniel
email;internet:[EMAIL PROTECTED]
version:2.1
end:vcard

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


Bug concerning lilypond-book

2007-07-26 Thread Daniel Tonda Castillo

Greetings:

Sorry for the cross-posting but I think I've found a bug.

When I put a section like this in a lilypond file and compile it the 
spacing is fine.


\paper{
 line-width = 170.000 \mm
 textheight = 250.000 \mm
 between-system-space = 1.5\cm
 between-system-padding = #1
 ragged-bottom=##f
 ragged-last-bottom=##f
}

However, when I include the lilypond file in a latex file, and then 
lilypond-book the latex file, the ending pdf document does not show the 
spacing as in the individually compiled lilypond score, am I missing 
something or is this a bug?


Daniel Tonda C.

--
En primer lugar acabemos con Sócrates, porque ya estoy harto de este 
invento de que no saber nada es un signo de sabiduría. -- Isaac Asimov. 
(1920-1992) Escritor y científico estadounidense.


begin:vcard
fn:Daniel Tonda Castillo
n:Tonda Castillo;Daniel
email;internet:[EMAIL PROTECTED]
version:2.1
end:vcard

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


Re: Tweaking arpeggios

2007-07-26 Thread Diosnel Herrnsdorf

Daniel,

Off the top of my head, I can't remember the syntax, but look for something 
like \DownArpeggio or \ArpeggioDown. The line would still be squiggly, 
though, and I think that's fine as far as I know, because a straight line 
usually means plaqué (i.e. non arpeggiated), so the arrow would be 
meaningless in this context.


Regards,

Diosnel

- Original Message - 
From: Daniel Tonda Castillo [EMAIL PROTECTED]

To: lilypond-user@gnu.org
Sent: Thursday, July 26, 2007 21:23
Subject: Tweaking arpeggios



Hello:

Is there a way to set the squiggly line of the arpeggio to a straight
line with the arrow included?

This is because in guitar music, sometimes the direction of the strum is
indicated with an arrow pointing upwards in case the strum s from the
low strings to the high strings, and viceversa.

Daniel Tonda C.








___
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


Tweaking arpeggios

2007-07-26 Thread Daniel Tonda Castillo

Hello:

Is there a way to set the squiggly line of the arpeggio to a straight 
line with the arrow included?


This is because in guitar music, sometimes the direction of the strum is 
indicated with an arrow pointing upwards in case the strum s from the 
low strings to the high strings, and viceversa.


Daniel Tonda C.
begin:vcard
fn:Daniel Tonda Castillo
n:Tonda Castillo;Daniel
email;internet:[EMAIL PROTECTED]
version:2.1
end:vcard

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


ConTeXt table of contents tweak

2007-07-26 Thread Adam Good

Hi everyone,

This may be a bit off-topic but I figure others here may be using  
ConTeXt to make books out of Lilypond files. I signed up for the  
ConTeXt mailing list a couple days ago but still need to get  
approved, impatient as always me.


I believe I asked the same question about LaTeX a couple of months  
ago but I can't seem to replicate it in ConTeXt .


I want to add something like a section of chapter to the Table of  
Contents in my file without having it print in the pdf on that page.  
If that sounds cryptic, here's what I do in LaTeX:


\addcontentsline{toc}{section}{Blah blah lah lah}

and voila it shows up in the TOC.

Thanks all

Adam


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


Re: metric modulation?

2007-07-26 Thread Arvid Grøtting
Trevor Bača [EMAIL PROTECTED] writes:

 On 7/26/07, Adam Good [EMAIL PROTECTED] wrote:
  Hello,
 
  Is there any handy dandy method to do the following:
 
  let's say I wrote out a piece in 7/8. What if I wanted to see what it
  looked like in 7/16 without having to change every note value of what
  I already wrote say:
  a4. b4 c b8 a g a4 b8 a
 
  etc...
 
  but what gets printed is:
  a8. b8 c b16 a g a8 b16 a
 
 
  can anyone come up with a quick and dirty method?
 
 *Really* dirty would be a python (or whatever) script to globally
 search and relplace all the durations ... basically a really dirty,
 simpler parser ...

Slightly less dirty would be something like this:

\version 2.11.28 % should work on versions all the way back to 2.8

looksFaster = #(define-music-function (parser location music)
(ly:music?)
(let ((new-music (ly:music-deep-copy music)))
 (shift-duration-log new-music 1 0)
 new-music))

\score { \looksFaster { a4. b4 c b8 a g a4 b8 a }}

...but there could be an even simpler way.  Have you checked the manual?

-- 

Arvid



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


Re: Substitution

2007-07-26 Thread Palmer, Ralph
Thank you, Martial. I didn't think of the brackets because I had done
other substitutions / definitions without the brackets. It works
perfectly, now.

Cheers and thanks,

Ralph


...

Date: Thu, 26 Jul 2007 18:26:38 +0200
From: Martial [EMAIL PROTECTED]
Subject: Re: Substitution
To: lilypond-user@gnu.org
Message-ID: [EMAIL PROTECTED]
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hi !
 In the following code, why doesn't my substition work?

just put in bracket {  blabla  }

breath = {
\once\override BreathingSign #'extra-offset = #'(0.0 .
1.0)\breathe
}


 %%+++ begin snippet 
 
 \version 2.11.23
 \include english.ly
 
 breath = \once\override BreathingSign #'extra-offset = #'(0.0 .
 1.0)\breathe
 
 Test = {
   \key c \major
   \clef treble
   \time 4/4
 
   c''4 c'' \breath c'' c'' \break
   c''4 c'' \once\override BreathingSign #'extra-offset = #'(0.0 .
 1.0)\breathe c'' c''
 
 
   }
 
 \score {
   \Test
 
   }
 
 %%+++ end snippet +++



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


Re: override-auto-beam-setting bug?

2007-07-26 Thread Martial


 Hi,

you must write that it is for all the Staff

\relative c'' {
\time 8/8
#(override-auto-beam-setting '(end * * * *) 3 8 'Staff)
#(override-auto-beam-setting '(end * * * *) 6 8 'Staff)
#(override-auto-beam-setting '(end * * * *) 8 8 'Staff)
c8 c c c c c c c
 g'1 \\ {c,8 c c c c c c c} 
}


Since 2.11.28, override-auto-beam-setting does not work anymore in newly 
instantiated voices (implicit or not):


\version 2.11.28
\paper { ragged-right = ##t }
\relative c'' {
\time 8/8
#(override-auto-beam-setting '(end * * * *) 3 8)
#(override-auto-beam-setting '(end * * * *) 6 8)
#(override-auto-beam-setting '(end * * * *) 8 8)
c8 c c c c c c c
 g'1 \\ {c,8 c c c c c c c}
}

yields attached png. Is this a bug or is there a way to set 
override-auto-beam-setting for all voices at once? (the docs 404 since this 
noon :( )


with kind regards,
Wilbert Berendsen




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


Re: Spacing problem

2007-07-26 Thread Trevor Bača

On 7/26/07, Siska Ádám [EMAIL PROTECTED] wrote:

Hello,


I'm now getting some spacing errors with noteheads. I attach an image.
Is this some positioning bug in 2.11? (In 2.10 I didn't notice it.) If
not, is there some possible workaround for cases like these? (Both are
produced at beam endings, so maybe if there is some method for
increasing space between beams, that could also help.)


The pic helps, but very hard to debug without seeing the input code.

Can you produce a minimal example that, for example, shows just those
two measures?


--
Trevor Bača
[EMAIL PROTECTED]
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: metric modulation?

2007-07-26 Thread Trevor Bača

On 7/26/07, Adam Good [EMAIL PROTECTED] wrote:

Hello,

Is there any handy dandy method to do the following:

let's say I wrote out a piece in 7/8. What if I wanted to see what it
looked like in 7/16 without having to change every note value of what
I already wrote say:
a4. b4 c b8 a g a4 b8 a

etc...

but what gets printed is:
a8. b8 c b16 a g a8 b16 a


can anyone come up with a quick and dirty method?


*Really* dirty would be a python (or whatever) script to globally
search and relplace all the durations ... basically a really dirty,
simpler parser ...



--
Trevor Bača
[EMAIL PROTECTED]
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: set-global-staff-size causes weird printing

2007-07-26 Thread Valentin Villenave

2007/7/26, Dominic Neumann [EMAIL PROTECTED]:

strange ... on my 2.10.25 system i get output in both variants (13 or
14). there are some errors but this could also come from using a 2.10
version instead of 2.11.


OK, I made some tests

It works with 2.10.25
It works with 2.11.28
It *doesn't* work with 2.11.27 AFAICT

Well, maybe something was fixed somehow...

Thanks,
Valentin


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


Standalone bar lines in StaffGroup

2007-07-26 Thread Siska Ádám

Hello,


I'm engraving a string quartet, and I have the four staffs inside a 
StaffGroup. This is normally good for bar lines, as normally I need 
single barlines that display through the four staves. But there's a 
point where the time signatures differ for every stave, but just for a 
few bars. How can I tell the engine to create separate barlines only for 
that few staves?



Thank you,
Adam

P.S. If someone knew a solution on how to connect a horizontal line to a 
barline, or better, a solution to how to tell the engine to put the 
first notes of the bars exactly on the barline (as this would solve the 
line problem with some invisible notes on the barline that have 
glissando lines attached), please tell me! (The 'put the first notes of 
the bar exactly on the barline' could also be useful to engrave scores 
that have strict space notation, like Tristan Murail's ones.)




Siska Ádám
+36 (70) 207-63-85
http://apocalypse.rulez.org/~sadam


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


Re: some questions

2007-07-26 Thread M.v.Strien


Although I'm on OS X (so, I can't try if it would be a solution for you), 
can't it be the problem that you have spaces in your path? Give a try replacing
C:\Program Files\OOoLilyPond\templates\2.10\ to C:\Program 
Files\OOoLilyPond\templates\2.10\ and
C:\Program Files\LilyPond\usr\bin\lilypond.exe to C:\Program 
Files\LilyPond\usr\bin\lilypond.exe
Once more, I'm not a Winxp user, so maybe I'm telling some very stupid 
thing, but it takes no time to try it out...


Did that, and right now the whole popup doesn't show up anymore, instead I 
get into some debugger with a whole buncha code.


It reports about a variable being out of bounds, at this line:
ReDim Preserve sTemplate(i-1) As String

I tried erasing that ctrl-m definition in the macro menu and redefine it, 
even after a restart of open office, but it now keeps bugging me with that 
code debugger!


gr. Maarten

(sorry Siska, that first email you just got was meant for the whole list :P)



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


Substitution

2007-07-26 Thread Palmer, Ralph
Greetings -

I'm running LilyPond 2.11.27 (although the files, after running
convert-ly, say 2.11.23) under Windows XP2000, SP2.

Great program! I just wish I knew everything about it. I'm gaining on
it, though.

In the following code, why doesn't my substition work?

Thank you for your help and for your contribution to the program,

Ralph
+
Ralph Palmer, CEM
Energy/Administrative Coordinator
Keene State College
Keene, NH 03435-2502
Phone: 603-358-2230
Cell: 603-209-2903
Fax: 603-358-2456
[EMAIL PROTECTED]


%%+++ begin snippet 

\version 2.11.23
\include english.ly

breath = \once\override BreathingSign #'extra-offset = #'(0.0 .
1.0)\breathe

Test = {
\key c \major
\clef treble
\time 4/4

c''4 c'' \breath c'' c'' \break
c''4 c'' \once\override BreathingSign #'extra-offset = #'(0.0 .
1.0)\breathe c'' c''


}

\score {
\Test

}

%%+++ end snippet +++


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


Re: Beams across barlines and line breaking

2007-07-26 Thread Trevor Bača

On 7/26/07, Siska Ádám [EMAIL PROTECTED] wrote:

Hello,


after upgrading to 2.11, the beams going accross barlines block the
engine from making line breaks. The problem is that I have a polyphonic
place in the score I'm engraving where there are 9 bars one after the
other that have barline-crossing beams in some of the voices, and 9 bars
are much longer than a single line in an arbitrary paper. If I try to
introduce manual line breaks with the \break command, I only get the
following warning:

warning: forced break was overridden by some other event, should you
be using bar checks?

And the line still doesn't get broken. How can I force the lines to
break? Is this maybe a bug?


Hi Adam,

Same answer as for glissandi ...

 \override Beam #'breakable = ##t

... somewhere in the score will fix this.

In general, any grob subcribing to the breakable (?) interface in the
2.11 program reference will need #'breakable = ##t to break across
lines.

(The 2.11 program reference appears to be down at the moment; when
it's up you can see examples of this in, for example, the entry for
the Beam and Glissando grobs.)

If you have Tuplets crossing barlines or line breaks, do the same
thing there, too.



--
Trevor Bača
[EMAIL PROTECTED]
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


set-global-staff-size causes weird printing

2007-07-26 Thread Valentin Villenave

Hello everybody,

I'm typesetting a large, large orchestral score; I've always used a small
global-staff-size and it worked very well.
However, I've just discovered that when I specify a different
global-staff-size, the compilation goes fine, no error messages... but
the .pdf (as well as the .ps) output is just one empty page!

I just can't understand what's going on. When I try to simplify and
reduce my code, I can't reproduce the bug. So here's the whole code
I'm working on; maybe someone can help me to understand it (It's not a
problem though; as I always use a small global-staff-size, the score
always prints fine).

Thank you all,
Valentin

%%% score.ly %%%

\version 2.11
\include italiano.ly

%% uncomment one of the following lines:
%% with 14 it doesn't print, whereas
%% with 13 it's fine

%#(set-global-staff-size 14)
%#(set-global-staff-size 13)


mesuresUn= {
  \set Score.markFormatter = #format-mark-box-letters
\override Score.RehearsalMark #'extra-offset = #'(0.0 . 0.0 )
\override Score.RehearsalMark #'font-size = #10
\override Score.TimeSignature #'style = #'()
\time 3/4
  s2.*3-\markup{ \huge \bold Animato } | s2.
\time 2/4 s2 |
\time 3/4 s2.*2 |
\time 2/4 s2 |
\time 3/4 s2.*3 |
\time 2/4 s2 |
\time 3/4 s2. |
\time 2/4 s2 |
\time 3/4 s2.*2 |
\time 2/4 s2 |
\time 3/4 s2.*3 |
\time 2/4 s2 |
\time 3/4 s2. |
\time 2/4 s2 |
\time 3/4 s2.*2 |
\time 2/4 s2 |
\time 3/4 s2.*3 |
\time 2/4 s2 |
\mark \default
\time 3/4 s2. |
\time 4/4 s1 |
\time 3/4 s2. |
\time 2/4 s2 |
\time 3/4 s2. |
\time 4/4 s1 |
\time 3/4 s2. |
\time 2/4 s2 |
}



IContralto= {
\set Staff.instrumentName = \markup { \hcenter-in #25 Dieu  }
   \set Staff.shortInstrumentName = Dieu.  
\new Voice = IDieu
\relative do
{
R2.*4 R2 R2.*2 R2 R2.*3 R2 |
}
%   \new Lyrics \lyricsto IDieu { \IDIieu }
   
}


ISopranoUn= {
\set Staff.instrumentName = \markup { \hcenter-in #27.5 Le Docteur  }
   \set Staff.shortInstrumentName = Doct.  
\new Voice = IDocteur
\relative do'
{
R2.*4 R2 R2.*2 R2 R2.*3 R2 |
}
%   \new Lyrics \lyricsto IDocteur { \IDocteur }
   
}


ISopranoDeux= {
\set Staff.instrumentName = \markup { \hcenter-in #25 La Reine  }
   \set Staff.shortInstrumentName = Reine.  
\new Voice = IReine
\relative do'
{
R2.*4 R2 R2.*2 R2 R2.*3 R2 | R2. R2 R2.*2 R2 R2.*3 R2 | R2. R2 
R2.*2
R2 R2.*3 R2 |
   r4 sold'8 sold sol!4 | r16 sold si8~ si sib~ \times 2/3 {sib
si! sib} re4 | R2. | r8 re re re | \times 2/3 {fa re re} re4. re8 |
   r4 si8[ sib] sib[ la] dod la | sold2 r4 | R2 |
}
 %  \new Lyrics \lyricsto IReine { \IReine }
   
}


ITenor= {
\set Staff.instrumentName = \markup { \hcenter-in #27 Le Chef  }
   \set Staff.shortInstrumentName = Chef.  
\new Voice = IChef
\clef G_8
\relative do'
{
R2.*4 R2 R2.*2 R2 R2.*3 R2 |
}
%   \new Lyrics \lyricsto IChef { \IChef }
   
}


IaltoUn= {
\set Staff.instrumentName = \markup { \hcenter-in #25 Alto 1  }
   \set Staff.shortInstrumentName = Alt. 1  
   \set Staff.midiInstrument = viola
\clef alto
\relative do''
{ \clef treble \times 4/6 {
la re\harmonic la''16[ la re\harmonic la'' la re\harmonic 
la''
la re\harmonic la'' la re\harmonic la'' la re\harmonic la'']
}
\times 4/6 { la''16-\markup { \italic simile } la la 
la la la }
\repeat unfold 68 { \times 4/6 { la[ la la la la la] } 
} la4 r
\times 4/6 { si,8[ si16 si si si] } |
   \repeat unfold 8 { \times 4/6 { mi,[ mi mi mi mi mi] } } |
}
}


IaltoDeux= {
\set Staff.instrumentName = \markup { \hcenter-in #25 Alto 2  }
   \set Staff.shortInstrumentName = Alt. 2  
   \set Staff.midiInstrument = viola
\clef alto
\relative do''
{ \clef treble \times 4/6 {
la re\harmonic la''16[ la re\harmonic la'' la re\harmonic 
la''
la re\harmonic la'' la re\harmonic la'' la re\harmonic la'']
}
\times 4/6 { la''16-\markup { \italic simile } la la 
la la la }
\repeat unfold 68 { \times 4/6 { la[ la la la la la] } 
} la4 r
\times 4/6 { la,8[ la16 la la la] } |
   \times 4/6 { la[ la la la la la] } \repeat unfold 7 {
\times 4/6 { re,[ re re re re re] } } |
}
}


IclarinetteUn= {
\set Staff.instrumentName = \markup { \hcenter-in #25 Clarinette 1  }
   \set Staff.shortInstrumentName = Cl. 1  
   \set Staff.midiInstrument = clarinet
\relative   {
R2.*3 | re''8 sib~ sib2~ | sib4 r | si!8 sol~ sol2~ | sol2 r4 | 
r
sold | mi2.~ | mi2.~ | mi2.~ | mi4 r |
   R2. R2 R2.*2 r4 r8 la, | mi2.~ | mi2.~ | mi2.~ | mi4 r |
   R2. R2 R2.*2 R2 | R2. mi'2.~| mi2.~| mi4 r |
}
}


IclarinetteDeux= {
\set Staff.instrumentName 

Re: Microtone accidentals

2007-07-26 Thread Trevor Bača

On 7/26/07, Siska Ádám [EMAIL PROTECTED] wrote:

Hello,


after lot of people suggested to me to upgrade to version 2.11, I did
it. I have to admit that the result is much better than in 2.10,
specially with a lot of smart automation on text positioning, which up
to now was done by myself. But I have some serious problems which I
don't know how to solve. These are almost all related to textspanners.

1) If I simply use the method suggested by upgrade-ly for text spanners,
that is:

\override TextSpanner #'bound-details #'left #'text = left-text
\override TextSpanner #'bound-details #'right #'text = right-text

I don't get the dashed lines, only the texts (in my particular case,
left-text was set to #(markup #:italic restez IV), and right-text
to , but also doesn't work with #(markup #:italic sul sol) and , etc.)


Please post the example where the dashes fail to print; dashes work
fine here with 2.11.x. Also, make sure you haven't set TextSpanner
#'dash-fraction = #0, which would remove the dashes as you describe.




2) I'm also getting the bug posted some time ago by Trevor Bača ('Overly
thick results from markup with draw-line'). Is there some workaround
related to this?


I think the developers posted back that that is, in fact, a bug but
has already been fixed in the repository. This means that 2.11.28 will
contain the fix. And, in fact, looking at the downloads page just now,
I see that 2.11.28 is available.

Argh, but trying the example just now shows that the overly thick nib
bug is still present in .28. Can you check and see if .28 still shows
the bug on your end? Maybe if we ask nicely, the fix will show up in
.29 ...




3) If there's a linebreak while a text spanner is active, the
textspanner's end-text gets displayed on the end of the line, and the
textspanner's begin-text gets displayed at the beginning of the new
line. How can I avoid this behaviour and get the one that worked in
2.10? (No duplications of the begin and end texts.) The reason in my
particular case is that the mentioned text-spanner tells the player that
he has to go from ordinary bow to sul ponticello while playing, and he
only has to reach the sul ponticello at the end of the text span. If I
got the sp sign printed on the end of the line, and I get the ord sign
printed at the beginning of the new line again, that would mean that the
player should do this two times (the ord-sp transition).


Ah, for this there's a corresponding group of attributes for what
happens to TextSpanners around line breaks. These attributes can be
found at

 \override TextSpanner #'bound-details #'left-broken

and

 \override TextSpanner #'bound-details #'right-broken

which you can set like this ...

 \override TextSpanner #'bound-details #'left-broken #'text = 

... if, for example, you do *not* want text to appear immediately
before or after a line break.




4) text spanners are printed for some reason some times very very far
from the musical context, with no reason. Also, markup texts are placed
always above text spanners, which not always is convenient, but I don't
know how to change this behaviour. Also, if I have several text spanners
the one after the other, every new text spanner gets placed above the
prior one, causing the space between the staves to be enormous. The
normal behaviour for this should be that in this cases they come one
time above, the next time below the prior text spanner, respectively, to
keep space. Can I force the spanners to do this somehow?


The first question about the relative vertical order of markups and
spanners can be solved, I think. Text spanners come from the
TextSpanner grob; markups come, less intuitively, from the TextScript
grob.

I think that both TextSpanner and TextScript will respect the
#'outside-staff-priority attribute which is an arbitrary and
relatively integer vertical ordering index. So you can say

 \override TextSpanner #'outside-staff-priority = #500
 \override TextScript #'outside-staff-priority = #100

... to, for example, specify that the TextSpanner should be closer to
the staff while the markup (TextScript) should be farther away from
the staff; bigger values mean I really wanna be closer to the staff.

So compare these two scores:

\version 2.11.28

\new Staff {
  c'4 ^ \markup { foo } \startTextSpan
  c'4 \stopTextSpan
}

\new Staff {
  \override TextSpanner #'outside-staff-priority = #200
  \override TextScript #'outside-staff-priority = #100
  c'4 ^ \markup { foo } \startTextSpan
  c'4 \stopTextSpan
}


The second part of your question about keeping spanners from
incrementally getting higher and higher on the page is harder for me
to answer. Try making these other fixes first and see if the problem
gets better. If now, post back again and we might try turning off
skyline spacing for spanners and perhaps a couple of other grobs.





5) There's a line in my score where I get no more linebreak. In 2.10,
Lilypond broke me the line at that particular place, thus I got a very
nice 

Re: Help with spacing spanner, i.e., horizontal spacing between notes

2007-07-26 Thread Trevor Bača

On 7/25/07, peterwinson [EMAIL PROTECTED] wrote:


I have read the horizontal spacing section in the manual and have tried to
replicated the code in my own ly file but \override SpacingSpanner
#'base-shortest-duration = #(ly:make-moment 1 4) doesn't seem to work.

Here is what I want to do.  The music is composed mostly of 1/8 notes.  So
if I make the base-shortest-duration to be 1/4 note then the spacing between
the notes would be shorter. Right?

However, no matter what I make base-shortest-duration to be, nothing
changes.  HELP!

Here is the code


http://www.nabble.com/file/p11803568/matins1_a.ly matins1_a.ly


Hi,

Does it work to simply make the line width shorter? Ie, you can add

  line-width = 5\in

in the paper block to see what this looks like.

In general, Lily likes to fill lines completely from left to right,
like fully justifying paragraphs of text, and I think that's why your
short, one-line example is stretched. If you add in several more lines
of music, Lily will optimize line spacing better. If, however, your
scores all are short like this, then consider setting

 ragged-last = ##f

in the layout block, which will tell Lily *not* to justify the last
(or in your case, the only) line. And while you're playing with
spacing, it's sometimes helpful to set

 ragged-right = ##t

also in the layout block, which will tell Lily *not* to justify all
lines in the score. In a one-line score, ragged-right = ##t should
carry the same effect as ragged-last = ##f.


Trevor.


--
Trevor Bača
[EMAIL PROTECTED]
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: all sharps ?

2007-07-26 Thread Vasil Kadifeli

I knew I saw it at some place ;) many thanks...

On 7/26/07, Valentin Villenave [EMAIL PROTECTED] wrote:


2007/7/26, Vasil Kadifeli [EMAIL PROTECTED]:

 And by the way, is there a way to play the tunes from a .ly file ?

Sure:

http://lilypond.org/doc/v2.10/Documentation/user/lilypond/Creating-MIDI-files

Regards,
V.Villenave





--
---
VASIL KADIFELI
sayfalarımızı ziyaret edin yararlanın :)
http://www.kadifeli.com
http://www.kadifeli.com/vasil
http://www.kadifeli.com/fedon
===
yeni bir hizmet : http://www.yeri.com
===
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: all sharps ?

2007-07-26 Thread Rune Zedeler
Quoting Vasil Kadifeli [EMAIL PROTECTED]:

 And by the way, is there a way to play the tunes from a *.ly* file ?

Yep, if you add a midi-block to the score, lilypond will create a midi-file that
you can play.
Read section 10.3 in the manual.

-Rune



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


Re: instrumentName and polyphony

2007-07-26 Thread Kieren MacMillan

Hi Charlotte,

Where in the syntax, or even in the .ly file do I put the \set  
instrumentName?


The good news is, there's no one answer for that.
The bad news is, there's no one answer for that.
=)

I need to label each vocal line because some scores are SATB whilst  
others
are SSTT or other combinations. However, I can only get one  
instrumentName

to appear (the lower of each pair of voices). (example code below)


The InstrumentName property is set at the Staff level, whereas you  
are including (e.g.) the S and A music as two *Voice* contexts within  
a single Staff context. Therefore, you need to set the (one) value to  
display *both* pieces of text you want to show on the one staff, i.e.


  \set Staff.instrumentName = \markup { \column { S A } }

or

\new Staff = women
\with { instrumentName = \markup { \column { S A } } }

\new Voice = sopranos { \voiceOne  \global \sopMusic  
 }

\new Voice = altos { \voiceTwo  \global \altoMusic  }


Of course, adjust the sample markup (baseline-skip, alignment, etc.)  
as desired.



I'd also like to chance the default font settings for instrumentName,
to make the font smaller and sans-serif. Can I do this
globally, or do I have to do it for each \score in the .ly file?


Use

\layout
{
\context
{
\Score
\override InstrumentName #'font-size = #-2
\override InstrumentName #'font-family = #'sans-serif
}
}

Off the top of my head, I can't remember the exact font style code:  
look it up in the docs.


Hope this helps!
Kieren.


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


Re: Microtone accidentals

2007-07-26 Thread Siska Ádám

Hello,


wow, this is very nice! I also tried it with flat sign (just to try it 
out), and also works fine. Thank you!
BTW, could you explain a bit (maybe in a private mail) how actually it 
works? I would like to adopt the sign to be able to create the 
down-arrowed accidentals too, and to be able to attach them to natural 
signs also, but unfortunately I know nothing about postscripting...


Many thanks again!
Adam



Siska Ádám
+36 (70) 207-63-85
http://apocalypse.rulez.org/~sadam


Valentin Villenave wrote:

2007/7/25, Siska Ádám [EMAIL PROTECTED]:


As an explanation, the 1/6 pitch accidentals are actually simple
vertical arrows, which can be standalone (that means 1/6 pitch higher or
lower as the base pitch) or combined with sharp symbols (if this is the
case, the obtained pitch is 1/6 higher or lower than the respective
sharp). Theoretically there could also be arrows combined with flats,
but they are not necessary to get the full 'palette' of 1/6 pitches (for
example, [uparrow + g flat] would mean the same as [uparrow + f sharp]).
Some times the standalone arrows are combined with natural symbols. I'm
not sure if these signs are standardized or not, but composers like
Grisey or Murail use these symbols frequently in their scores.


What about the following trick? (It looks ugly on screen, but fine 
when printed)

It has to be adapted, of course.


%%%snippet

upp =
#(define-music-function (parser location note)   (ly:music?)
 #{ \once \override Voice.Accidental #'stencil =
  #ly:text-interface::print
\once \override Voice.Accidental #'text =
  \markup {\musicglyph #accidentals.sharp
\postscript #gsave 0.17 setlinewidth -1.4 0.5 moveto -1.4 2 lineto
   stroke grestore
gsave 0.1 setlinewidth -1.7 1.4 moveto -1.4 2.18 lineto -1.1 1.4 
lineto

   stroke grestore}
$note #})

\relative {
a b d \upp gis
}

%%%

Regards,
Valentin Villenave




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


Re: How to screen-optimize stems

2007-07-26 Thread Rune Zedeler
Quoting Han-Wen Nienhuys [EMAIL PROTECTED]:

 \paper {
blot-diameter = 2 \pt
 }
 Unfortunately it does not work with bar-lines, though.

 Oh, but you could simply add

  \override Score.BarLine #'thickness = #100

 problem solved :-)

I am not really sure whether this was a joke, sorry.
(Was it a joke?)

Well, the thickness isn't used for anything in barlines, so overriding thickness
will not change anything.

We have

Bar_line::compound_barline (Grob *me, string str, Real h,
bool rounded)
and

Bar_line::print (SCM smob)
..
  return compound_barline (me, str, sz, false).smobbed_copy ();

Notice the hard-coded false.

So bar-lines are hardcoded to be made of non-rounded rectangles (that is, to be
outlined with a zero-width line).

I see to ways to solve the problem:
Either (a): Use rounded rectangles for bar-lines. That way my solution would
also work for bar-lines (perhaps one would have to increase the blot-diameter a
bit more.
Or (b): Add a lookup representing a line drawn with non-rounded ends and use
this for the bar-lines.

I will happily do this (b). Should I send a patch?
Notice that this will have no effect on the music on print. The only difference
will be how the music is rendered on screen. Representing lines as lines drawn
with a thickness rather as a filled rectangle makes it easier for the reader to
know what it is showing and therefore reproducing output nicely on screen.



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


Re: LilyPond extension/plugin for MediaWiki software

2007-07-26 Thread Benjamin Esham
Mark Dewey wrote:

 I've heard tell that there is a LilyPond extension or plugin for MediaWiki
 (that's the software they use with Wikipedia).  I have a wiki
 (HymnWiki.org) that uses LilyPond files quite a bit . . . so, I'm
 interested in finding out what the plugin is for, what it is called, and
 where I can get it.  Do any of you know?

Try these (probably in this order):
http://en.wikipedia.org/wiki/Wikipedia:WikiTeX
http://meta.wikimedia.org/wiki/Music_markup
http://wikisophia.org/wiki/Main_Page

If you need further information, your best bet is probably to post to
Wikitech-l: http://lists.wikimedia.org/mailman/listinfo/wikitech-l.

 I've heard that it requires LilyPond to be installed on the server.  Is
 this true?

Undoubtedly.  It doesn't really make sense otherwise :-)

HTH,
-- 
Benjamin D. Esham
E-mail/Jabber: [EMAIL PROTECTED] | AIM bdesham128 | PGP D676BB9A
When I hear of Schrödinger's cat, I reach for my gun.
   — Stephen Hawking



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


Re: metric modulation?

2007-07-26 Thread Valentin Villenave

26 Jul 2007 21:00:59 +0200, Arvid Grøtting [EMAIL PROTECTED]:


\version 2.11.28 % should work on versions all the way back to 2.8

looksFaster = #(define-music-function (parser location music)
(ly:music?)
(let ((new-music (ly:music-deep-copy music)))
 (shift-duration-log new-music 1 0)
 new-music))

\score { \looksFaster { a4. b4 c b8 a g a4 b8 a }}


Looks great!
I added it to the LSR.
http://lsr.dsi.unimi.it/LSR/Item?u=1id=305

Regards,
Valentin


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


[solved]Re: override-auto-beam-setting bug?

2007-07-26 Thread Wilbert Berendsen
Op donderdag 26 juli 2007, schreef Martial:
 you must write that it is for all the Staff

Thanks! I was already trying staff-override etc. :-) but this was the 
solution.

best regards,
Wilbert Berendsen

-- 
http://www.wilbertberendsen.nl/
You must be the change you wish to see in the world.
-- Mahatma Gandi


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


override-auto-beam-setting bug?

2007-07-26 Thread Wilbert Berendsen
Hi,

Since 2.11.28, override-auto-beam-setting does not work anymore in newly 
instantiated voices (implicit or not):

\version 2.11.28
\paper { ragged-right = ##t }
\relative c'' {
\time 8/8
#(override-auto-beam-setting '(end * * * *) 3 8)
#(override-auto-beam-setting '(end * * * *) 6 8)
#(override-auto-beam-setting '(end * * * *) 8 8)
c8 c c c c c c c
 g'1 \\ {c,8 c c c c c c c}
}

yields attached png. Is this a bug or is there a way to set 
override-auto-beam-setting for all voices at once? (the docs 404 since this 
noon :( )

with kind regards,
Wilbert Berendsen

-- 
http://www.wilbertberendsen.nl/
You must be the change you wish to see in the world.
-- Mahatma Gandi
inline: autobeam-other-voice.png___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Spacing problem

2007-07-26 Thread Siska Ádám

Hello,


I've sent the score to the list a few time ago, but it didn't arrive for 
me, although normally I get a copy of my own messages posted to the 
list. Did it arrive, or is there some restrictions for attachment type 
and/or size on this list?


Thank you,
Adam



Siska Ádám
+36 (70) 207-63-85
http://apocalypse.rulez.org/~sadam


Trevor Bača wrote:

On 7/26/07, Siska Ádám [EMAIL PROTECTED] wrote:

Hello,


I'm now getting some spacing errors with noteheads. I attach an image.
Is this some positioning bug in 2.11? (In 2.10 I didn't notice it.) If
not, is there some possible workaround for cases like these? (Both are
produced at beam endings, so maybe if there is some method for
increasing space between beams, that could also help.)


The pic helps, but very hard to debug without seeing the input code.

Can you produce a minimal example that, for example, shows just those
two measures?





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


RE: Parentheses

2007-07-26 Thread Paul Harouff
 How do you input parentheses in lyrics?  Just adding them in makes it so
it won't compile, due to a syntax error.

Special characters in lyrics must be enclosed in quotation marks. I've had
the same problem with colons.




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


metric modulation?

2007-07-26 Thread Adam Good

Hello,

Is there any handy dandy method to do the following:

let's say I wrote out a piece in 7/8. What if I wanted to see what it  
looked like in 7/16 without having to change every note value of what  
I already wrote say:

a4. b4 c b8 a g a4 b8 a

etc...

but what gets printed is:
a8. b8 c b16 a g a8 b16 a


can anyone come up with a quick and dirty method?

thanks

Adam


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


Re: Microtone accidentals

2007-07-26 Thread Valentin Villenave

2007/7/26, Siska Ádám [EMAIL PROTECTED]:


BTW, could you explain a bit (maybe in a private mail) how actually it
works? I would like to adopt the sign to be able to create the
down-arrowed accidentals too, and to be able to attach them to natural
signs also, but unfortunately I know nothing about postscripting...


Actually, neither do I :)

The basics are quite easy to learn though (I've been playing with it
for only a couple weeks).

Think of a pen on the paper. I've just printed the accidental glyph,
so the postscript object will start on the right of the sign.
Therefore I have to move it to the left:

-1.4 0.5 moveto  %% where -1.4 is the X coordinate of my new origin point

Then I print the first (vertical line), starting from this point and going up:

-1.4 2 lineto  %% as you can see, only the Y coordinate has changed

Besides, I use

0.17 setlinewidth

to make a thicker line so it's seamlessly integrated with the glyph.

This was my first line. I could go on with the other lines, but I want
thiner lines now.
So have to create two distincts objects.

I add

stroke  %% to tell the engine to actually draw my first object (the
line); and I'll insert

gsave %% at the beginning of my code , and

grestore %% after my code, to start a whole new object (the arrowhead)

The new object is printed in a similar way:

gsave %% I save the initial state

0.1 setlinewidth %% previously it was 0.17, so this is thiner

-1.7 1.4 moveto %% I move my pen without drawing anything

-1.4 2.18 lineto %% first line, towards the top of the thick line
(notice the -1.4 Y axis)

-1.1 1.4 lineto  %% starting from the end of the previous line, I
directly draw the second (to the right)

stroke %% don't ask me why this is needed

Here ends the PostScipt part.

I included it in a very basic Scheme function I found in the manual:
http://lilypond.org/doc/v2.10/Documentation/user/lilypond/Simple-substitution-functions

#(define-music-function (parser location note)   (ly:music?)

I create a variable, which will be named note (don't ask me how it works)
the (ly:music?) is a musical expression (so if you have several notes
to affect, you can encloe them in brackets and each accidental in the
brackets will be modified)

Here's the cool part: you can use Scheme to write genuine lilypond code

#{ \once \override Voice.Accidental #'stencil =
  #ly:text-interface::print

%%The Accidental object is replaced by a Text object (so I can use \markup)

   \once \override Voice.Accidental #'text =

%% Here comes the \markup, which include two objects: the glyph...

   \markup {\musicglyph #accidentals.sharp

%% ...and the postscript code

\postscript #gsave 0.17 setlinewidth -1.4 0.5 moveto -1.4 2 lineto
   stroke grestore
gsave 0.1 setlinewidth -1.7 1.4 moveto -1.4 2.18 lineto -1.1 1.4
lineto
   stroke grestore}

%%And of course, I don't forget to print the note after the accidental

$note #})

I'm really new to this (both Scheme and PostScript), so you see it
isn't very hard to do basic things. It is probably a very dirty code,
but it works.

Regards,
Valentin


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


cruft after introduction to vocal piece

2007-07-26 Thread Ed Ravin
I'm using LilyPond 2.10.14-1 on Mac OS X.

I'm typesetting a piece for piano and singer.  The first few bars are
an introduction, with no words for the singer.

In order to save paper, I want a staff without a vocal line for the first
few bars, then a regular PianoStaff with melody and lyrics for the rest
of the piece.  I got it working using the score block shown below,
by modifying an example out of the documentation.

There's just one problem.  The introduction takes up one line,
as planned, but after the double bar line at the end, the staff
lines continue past the double bar line, and there's an extra time
signature at the far right of the staff.

You can view the problem (at the upper right hand corner of the PDF) at:

   http://www.panix.com/~eravin/showlilyprob.pdf

What might I be doing wrong here?

-- Ed



\score {
{
\new PianoStaff = introduction 
#(set-accidental-style 'piano)
\context Staff = introupper \introupper
\context Staff = introlower \introlower

\break


  \new Staff = singer

\new Voice = vocal {
\autoBeamOff
\melody
}

  \new Lyrics \lyricsto vocal \new Lyrics { \text }
  \new PianoStaff = piano 
#(set-accidental-style 'piano)
\new Staff = upper { \upper }
\new Staff = lower { \lower }
  

}

\layout {
\context { \RemoveEmptyStaffContext }
\context {
\Score
\remove Bar_number_engraver
}
   }
}


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


Re: cruft after introduction to vocal piece

2007-07-26 Thread Paul A. Scott

Sorry, I sent this from the wrong address.

On Jul 26, 2007, at 10:10 PM, Ed Ravin wrote:


I'm using LilyPond 2.10.14-1 on Mac OS X.

I'm typesetting a piece for piano and singer.  The first few bars are
an introduction, with no words for the singer.

In order to save paper, I want a staff without a vocal line for the  
first
few bars, then a regular PianoStaff with melody and lyrics for the  
rest

of the piece.  I got it working using the score block shown below,
by modifying an example out of the documentation.

There's just one problem.  The introduction takes up one line,
as planned, but after the double bar line at the end, the staff
lines continue past the double bar line, and there's an extra time
signature at the far right of the staff.

You can view the problem (at the upper right hand corner of the  
PDF) at:


   http://www.panix.com/~eravin/showlilyprob.pdf

What might I be doing wrong here?


Without knowing what's in \melody, \upper and \lower it's difficult  
to help.


Paul Scott



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