(de)cresendi syntax

2009-02-22 Thread Frédéric Bron

Hello,

I am in charge of the question of (de)crescendo syntax issue in 2.12.2.

Here is what lilypond 2.12.2 currently does (in ly/spanners-init.ly):

- \< and \cr are equivalent: they start a crescendo event on the 
previous note: #(make-span-event 'CrescendoEvent START)
- \> and \decr are equivalent: they start a decrescendo event on the 
previous note: #(make-span-event 'DecrescendoEvent START)
- \!, \endcr and \enddecr are equivalent: they stop of (de)cresendo 
event on the previous note: #(make-span-event 'CrescendoEvent STOP), 
#(make-span-event 'DecrescendoEvent STOP) (is it really equivalent?)


- the following commands set the (de)cresendo to be text with dashed 
line or hairpin forever (until changed to something else):

  . crescTextCresc -> text "cresc."
  . dimTextDecresc -> text "decresc."
  . dimTextDecr -> text "decr."
  . dimTextDim -> text "dim."
  . crescHairpin -> hairpin
  . dimHairpin -> hairpin

- the following commands start a text (de)crescendo on the next note 
(affects only the next (de)crescendo):

  . cresc -> text "cresc."
  . dim -> text "dim."
- the following commands stop a (de)crescendo on the next note:
  . enddim
  . endcresc


Current syntax is not satisfactory because:

- syntax is different between \<, \>, \! and \cresc, \dim, \enddim, 
\endcresc (undocumented):

  . \<, \>, \! apply to the previous note,
  . \cresc, \dim, \enddim, \endcresc apply to the next note
- there is no symmetry between \crescText, \dimText commands and 
\ commands

- some people just want cresc. to be printed without dashed line (spanner)
- \endcresc does something different from \endcr which is confusing


Here are my dreams:

- \<, \>, \! are used to start/stop (de)crescendo spanner (hairpin or text),
- crescTextXXX, dimTextXXX, crescHairpin, dimHairpin decide if \<, \>, 
\! produce text or hairpin (applies for ever until changed to something 
else), I would prefer simpler syntax: \crescCresc, \crescHairpin, 
\dimDim, \dimDecr, \dimDecresc, i.e. remove Text
- \<"cresc.", \<"cresc. poco a poco", \>"dim."... produce a text spanner 
with corresponding text, the spanner is ended with \!, the text applies 
only once, i.e. next (de)crescendo produces hairpin if this is the 
current setting
- \cresc, \dim, \decr, \decresc produce a text without spanner, applies 
only once to the previous note, no need to finish with \! or \endcresc, 
this could be implemented with a \markup command

- remove unnecessary \cr, \endcr, \decr, \enddecr
- remove unnecessary \enddim, \endcresc

I know that it is not possible to implement this only with scheme and 
lily code but I am sure it is possible in C++.


Could you please comment on these propositions and give any other ideas.

F. Bron

PS: attached is a file that show the behaviour of the commands.
\version "2.12.2"
%{
1) Make a table of all the crescendo and decrescendo forms, so we can
see at a glance the missing/broken pieces.
2) Make a patch for v. 2.13 (when it's started) to get the appropriate
symmetry for all forms.  This will require posting the table from 1)
on -user and getting feedback from users.
3) Make a patch for convert-ly, which will do two things:
a) fix the problem you've identified for the previous convert-ly rule for
2.12
b) Make a correct convert-ly rule for 2.13.

\<
\!
cr = #(make-span-event 'CrescendoEvent START) -> equivalent to \<
decr = #(make-span-event 'DecrescendoEvent START) -> equivalent to \>
enddecr = #(make-span-event 'DecrescendoEvent STOP) -> equivalent to \!
endcr = #(make-span-event 'CrescendoEvent STOP) -> equivalent to \!

cresc =
2.10.33: { #(ly:export (make-event-chord (list cr)))\set crescendoText =   \markup { \italic "cresc." }   \set crescendoSpanner = #'dashed-line }
2.12.2:  { #(ly:export (make-event-chord (list cr)))  \once \set crescendoText =   \markup { \italic "cresc." } \once \set crescendoSpanner = #'text }
dim =
2.10.33: { #(ly:export (make-event-chord (list decr)))  \set decrescendoText = \markup { \italic "dim." } \set decrescendoSpanner = #'dashed-line }
2.12.2:  { #(ly:export (make-event-chord (list decr)))\once \set decrescendoText = \markup { \italic "dim." }   \once \set decrescendoSpanner = #'text }
enddim =
2.10.33: { #(ly:export (make-event-chord (list enddecr))) \unset decrescendoText \unset decrescendoSpanner }
2.12.2:  { #(ly:export (make-event-chord (list enddecr))) }
endcresc =
2.10.33: { #(ly:export (make-event-chord (list endcr)))   \unset crescendoText \unset crescendoSpanner }
2.12.3:  { #(ly:export (make-event-chord (list endcr))) }

2.10.33:
setTextCresc =   { \set crescendoText =   \markup { \italic "cresc." }   \set crescendoSpanner = #'dashed-line }
setTextDecresc = { \set decrescendoText = \markup { \italic "decr." }\set decrescendoSpanner = #'dashed-line }
setTextDim = { \set decrescendoText = \markup { \italic "dim." } \set decrescendoSpanner = #'dashed-line }
2.12.2:
crescTextCresc = { \set crescendoText =   \mar

Re: (de)cresendi syntax

2009-02-22 Thread Cameron Horsburgh
On Sun, Feb 22, 2009 at 09:25:57AM +0100, Frédéric Bron wrote:
> Hello,
>

>
> Here are my dreams:
>
> - \<, \>, \! are used to start/stop (de)crescendo spanner (hairpin or text),
> - crescTextXXX, dimTextXXX, crescHairpin, dimHairpin decide if \<, \>,  
> \! produce text or hairpin (applies for ever until changed to something  
> else), I would prefer simpler syntax: \crescCresc, \crescHairpin,  
> \dimDim, \dimDecr, \dimDecresc, i.e. remove Text

I would prefer it if the \< and \> forms produced hairpins and the
various textual forms produced the various text possibilities.

> - \<"cresc.", \<"cresc. poco a poco", \>"dim."... produce a text spanner  
> with corresponding text, the spanner is ended with \!, the text applies  
> only once, i.e. next (de)crescendo produces hairpin if this is the  
> current setting

This is a great idea. In fact, it would make sense to me to have the
\< and \> forms default to hairpins, but have some sort of attached
markup to describe a textual form instead. So, for instance,

   a\< 

would produce a hairpin starting on the a, while 

  a\<_"cresc."  

would produce a 'cresc.' attached to the a instead. I can see there
might be a problem if this was a fully fledged markup, because there
is already a lot of formatting applied to the text mark. (I can also
see that my syntax is ambiguous, because it could also mean that I
want a simple markup attached to the a).

I have no idea about the programming, but we might also be able to add
another symbol that would suggest the addition of dots. However, this
preference would often apply globally to a piece, so it might be best
set once for all in the current way.

> - \cresc, \dim, \decr, \decresc produce a text without spanner, applies  
> only once to the previous note, no need to finish with \! or \endcresc,  
> this could be implemented with a \markup command
> - remove unnecessary \cr, \endcr, \decr, \enddecr
> - remove unnecessary \enddim, \endcresc
>

I agree. These different forms are all confusing, and I always worry
I've been mixing forms and just hope I haven't used the wrong one!

> I know that it is not possible to implement this only with scheme and  
> lily code but I am sure it is possible in C++.
>
> Could you please comment on these propositions and give any other ideas.
>
> F. Bron
>
> PS: attached is a file that show the behaviour of the commands.


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


-- 

Cameron Horsburgh

Blog: http://spiritcry.wordpress.com/


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


RE: Partial measures

2009-02-22 Thread Nick Payne
Jon

What you have below works fine with the small example, but when I remove the
\partial at the beginning of the 2nd repeat in the actual score, not only do
I not get the partial measure, but Lilypond gets quite bamboozled (see
attached png of the final page) and forgets to put in any line breaks
between bars 13 and 24.

Adding the partials back gets correct looking output at the cost of barcheck
failed warnings.

Nick

> -Original Message-
> From: Jonathan Kulp [mailto:jonlancek...@gmail.com]
> Sent: Sunday, 22 February 2009 15:20
> To: Nick Payne
> Cc: lilypond-user@gnu.org
> Subject: Re: Partial measures
> 
> Nick Payne wrote:
> > I'm engraving a piece that has partial measures at the beginning and
> end of
> > both repeats. The piece is in 4/4 time, with the initial measure of
> each
> > repeat being 1/8 and the final measure 7/8. In a minimal example, eg
> >
> > \relative c'' {
> > \time 4/4
> > \repeat volta 2 {
> > \partial 8 gis8 |
> > fis4 g g c, |
> > \partial 8*7 b2. r8
> > }
> > }
> >
> > I get no errors, but in the actual score, adding the \partial 8*7 at
> the end
> > of a repeat gives a barcheck failed error. In s.1.2.3 of the NR it
> states
> > that \partial is intended only to be used at the beginning of a
> piece.
> >
> > What's the correct way of getting this working?
> >
> > Nick
> >
> > Ps. Search function in the LSR seems broken at the moment - nothing
> gets
> > returned for any search.
> >
> Hi Nick,
> 
> I haven't had to do this before but it seems to work right without
> using
> \partial after the beginning of the piece.  See if this gets the output
> you want.  I just copied the same notes in to act as the B section:
> 
> %%%
> 
> \version "2.12.3"
> 
> \relative c'' {
>   \time 4/4
>   \repeat volta 2 {
>   \partial 8 gis8 |
>   fis4 g g c, |
>   b2. r8
>   }
>   \repeat volta 2 {
>   gis'8
>   fis4 g g c, |
>   b2. r8
>   }
> }
> 
> %%%
> 
> --
> Jonathan Kulp
> http://www.jonathankulp.com
> No virus found in this incoming message.
> Checked by AVG - www.avg.com
> Version: 8.0.237 / Virus Database: 270.11.2/1963 - Release Date:
> 02/21/09 15:36:00
<>___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: How to control ordering of staves?

2009-02-22 Thread aliteralmind

So very helpful, once again, John. Thank you.

(By the way, are you related to a Heather Kulp in SE Pennsylvania? I went to
high school with a Heather Kulp.)
-- 
View this message in context: 
http://www.nabble.com/How-to-control-ordering-of-staves--tp22142941p22146169.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.



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


\transpose and \transposition combination error(?)

2009-02-22 Thread Zbyněk Burget

Hi,
I found a (probably) error in combination \transpose and \transposition 
functions.

I've score:

\score {
  \new StaffGroup <<
\new Staff {
  \key c \major
  c'1
}
\new Staff {
  \transposition bes
  \key d \major
  d'1
}
  >>
  \midi {}
}

There is allright. But...

...now I need transpose all score to another key:

\score { \transpose c d {
  \new StaffGroup <<
\new Staff {
  \key c \major
  c'1
}
\new Staff {
  \transposition bes
  \key d \major
  d'1
}
  >> }
  \midi {}
}

In this case is produced midi file wrong. Only way to produce correct 
midi is as follows:


...
\new Staff {
  \transposition bes
  \key d \major
  \transpose c g { d'1 }
}
...

Is it error or feature?

Zbynek


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


Re: Partial measures

2009-02-22 Thread Jonathan Kulp

Nick Payne wrote:

Jon

What you have below works fine with the small example, but when I remove the
\partial at the beginning of the 2nd repeat in the actual score, not only do
I not get the partial measure, but Lilypond gets quite bamboozled (see
attached png of the final page) and forgets to put in any line breaks
between bars 13 and 24.

Adding the partials back gets correct looking output at the cost of barcheck
failed warnings.

Nick

Boy that does look weird.  Maybe there's a way to reset the barcheck 
counter (or whatever it's called) after the \partial command in the 2nd 
half so that all the rest of the barchecks work.  Could you attach the 
whole file so I can have a look.  I'm curious about this.


Jon

--
Jonathan Kulp
http://www.jonathankulp.com


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


Problem wit grace notes

2009-02-22 Thread Zbyněk Burget

Hi again,

I find one more problem. This time with grace notes at the beginning of 
score, where is multiple staves.
If one of staves begins with grace note {\grace, \appoggiatura, 
\acciaccatura), instrument name on first line is not printed and key, 
time and clef signs are printed unreasonably.
If more simultaneous StaffGoups are defined, missing instrument names 
(and unreasonably engraved key, time and clef signs) are at all staves 
in staff group, in which is staff with grace note.


Example:

\score {
  <<
\new Staff {
  \set Staff.instrumentName = #"Instrument 1"
  \set Staff.shortInstrumentName = #"I1"
  \key d \major
  \time 2/2
  \relative c' {
d4 e fis gis
a1
  }
}
\new Staff {
  \set Staff.instrumentName = #"Instrument 2"
  \set Staff.shortInstrumentName = #"I2"
  \key d \major
  \time 2/2
  \relative c' {
\grace c8 d4 d d d \break
d1
  }
}
  >>
  \layout {}
}


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


Re: Problem wit grace notes

2009-02-22 Thread Jonathan Kulp

Zbyněk Burget wrote:

Hi again,

I find one more problem. This time with grace notes at the beginning of 
score, where is multiple staves.
If one of staves begins with grace note {\grace, \appoggiatura, 
\acciaccatura), instrument name on first line is not printed and key, 
time and clef signs are printed unreasonably.
If more simultaneous StaffGoups are defined, missing instrument names 
(and unreasonably engraved key, time and clef signs) are at all staves 
in staff group, in which is staff with grace note.


Example:

\score {
  <<
\new Staff {
  \set Staff.instrumentName = #"Instrument 1"
  \set Staff.shortInstrumentName = #"I1"
  \key d \major
  \time 2/2
  \relative c' {
d4 e fis gis
a1
  }
}
\new Staff {
  \set Staff.instrumentName = #"Instrument 2"
  \set Staff.shortInstrumentName = #"I2"
  \key d \major
  \time 2/2
  \relative c' {
\grace c8 d4 d d d \break
d1
  }
}
  >>
  \layout {}
}



This looks like the problem addressed in Notation Reference 1.2.6 under 
"Known issues and warnings":


"Grace note synchronization can also lead to surprises. Staff notation, 
such as key signatures, bar lines, etc., are also synchronized. Take 
care when you mix staves with grace notes and staves without, for 
example..."


http://lilypond.org/doc/v2.12/Documentation/user/lilypond/Special-rhythmic-concerns#Special-rhythmic-concerns

Jon

--
Jonathan Kulp
http://www.jonathankulp.com


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


display chords (Ami7(b5))

2009-02-22 Thread Grammostola Rosea

Hi,

How do I make chords with the 5th an half tone lower or higher (e.g. b5 
or #5)?


for example

Am7(b5)

or

D7(#5)


Thanks in advance,

\r


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


lyrics and melody

2009-02-22 Thread Grammostola Rosea

hi,

this melody:

g4 a bes | es1( | es4) f, g a | d2 d

and I want to add these lyrics:

The fall - ing leaves_  drift by my win - dow,


leaves should be place below es1( | es4)


The templae of frescobaldi uses:

verse = \lyricmode {
 % Liedtekst volgt hier.

}

I don't get this done :(

Thanks in advance,

\r






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


help with: Cannot find voice

2009-02-22 Thread Alberto Simões
Hello

I am trying to produce a SATB where S and A share the same staff.


This is my definition:

\score{
\context ChoirStaff
<<
\context Staff = "upper"
<<
\clef treble
\context Voice = sop \upperOne
\context Voice = con \upperTwo
>>
\lyricsto "sop" \new Lyrics \firstverse 
\context Staff = "tenor"
<<
\clef treble
\context Voice = ten \lowerOne
\lyricsto "ten" \new Lyrics \secondverse
>>
\context Staff = "bass"
<<
\clef bass
\context Voice = bas \lowerTwo
\lyricsto "bas" \new Lyrics \thirdverse
>>
>>
 [...]

Now, lilypond complains with:

4vozes.ly:64:16: warning: cannot find Voice `sop'   
\lyricsto "sop" \new Lyrics \firstverse 


Any hint?
Thank you
Alberto


-- 
Alberto Simões - Departamento de Informática - Universidade do Minho
 Campus de Gualtar - 4710-057 Braga - Portugal


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


Re: lyrics and melody

2009-02-22 Thread Alberto Simões
Hello

Grammostola Rosea wrote:
> hi,
> 
> this melody:
> 
> g4 a bes | es1( | es4) f, g a | d2 d
> 
> and I want to add these lyrics:
> 
> The fall - ing leaves_  drift by my win - dow,

Probably you want:

The fall- ing leaves drift by my win- dow

Cheers
Alberto

> 
> 
> leaves should be place below es1( | es4)
> 
> 
> The templae of frescobaldi uses:
> 
> verse = \lyricmode {
>  % Liedtekst volgt hier.
> 
> }
> 
> I don't get this done :(
> 
> Thanks in advance,
> 
> \r
> 
> 
> 
> 
> 
> 
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> http://lists.gnu.org/mailman/listinfo/lilypond-user

-- 
Alberto Simões - Departamento de Informática - Universidade do Minho
 Campus de Gualtar - 4710-057 Braga - Portugal


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


Re: lyrics and melody

2009-02-22 Thread Grammostola Rosea

Alberto Simões wrote:

Hello

Grammostola Rosea wrote:
  

hi,

this melody:

g4 a bes | es1( | es4) f, g a | d2 d

and I want to add these lyrics:

The fall - ing leaves_  drift by my win - dow,



Probably you want:

The fall- ing leaves drift by my win- dow

Cheers
Alberto

  

that looks better, thanks.
Is it also possible to get a line after leaves? Like this: leaves___


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


Re: lyrics and melody

2009-02-22 Thread Alberto Simões


Grammostola Rosea wrote:
> Alberto Simões wrote:
>> Hello
>>
>> Grammostola Rosea wrote:
>>  
>>> hi,
>>>
>>> this melody:
>>>
>>> g4 a bes | es1( | es4) f, g a | d2 d
>>>
>>> and I want to add these lyrics:
>>>
>>> The fall - ing leaves_  drift by my win - dow,
>>> 
>>
>> Probably you want:
>>
>> The fall- ing leaves drift by my win- dow
>>
>> Cheers
>> Alberto
>>
>>   
> that looks better, thanks.
> Is it also possible to get a line after leaves? Like this: leaves___

That I do not know how to do.

For window, as there is a second note, try

win- dow __ _

Cheers

-- 
Alberto Simões - Departamento de Informática - Universidade do Minho
 Campus de Gualtar - 4710-057 Braga - Portugal


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


Re: help with: Cannot find voice [ Fixed ]

2009-02-22 Thread Alberto Simões
Heh.
Fixed
Was easy... just adding some notes made the trick :$

Cheers
Alberto

Alberto Simões wrote:
> Hello
> 
> I am trying to produce a SATB where S and A share the same staff.
> 
> 
> This is my definition:
> 
> \score{
>   \context ChoirStaff
>   <<
>   \context Staff = "upper"
>   <<
>   \clef treble
>   \context Voice = sop \upperOne
>   \context Voice = con \upperTwo
>   >>
>   \lyricsto "sop" \new Lyrics \firstverse 
>   \context Staff = "tenor"
>   <<
>   \clef treble
>   \context Voice = ten \lowerOne
>   \lyricsto "ten" \new Lyrics \secondverse
>   >>
>   \context Staff = "bass"
>   <<
>   \clef bass
>   \context Voice = bas \lowerTwo
>   \lyricsto "bas" \new Lyrics \thirdverse
>   >>
>   >>
>  [...]
> 
> Now, lilypond complains with:
> 
> 4vozes.ly:64:16: warning: cannot find Voice `sop' 
> \lyricsto "sop" \new Lyrics \firstverse   
> 
> 
> Any hint?
> Thank you
> Alberto
> 
> 

-- 
Alberto Simões - Departamento de Informática - Universidade do Minho
 Campus de Gualtar - 4710-057 Braga - Portugal


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


Re: lyrics and melody

2009-02-22 Thread Trevor Daniels


Alberto Simões wrote Sunday, February 22, 2009 3:25 PM


Grammostola Rosea wrote:

hi,

this melody:

g4 a bes | es1( | es4) f, g a | d2 d

and I want to add these lyrics:

The fall - ing leaves_  drift by my win - dow,


Probably you want:

The fall- ing leaves drift by my win- dow


or, to get centered hyphens,

The fall -- ing leaves drift by my win -- dow

See Learning Manual section 2.4 for more.

Trevor




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


Re: help with: Cannot find voice

2009-02-22 Thread Trevor Daniels


It should work, unless you have no notes in \upperOne

Trevor

- Original Message - 
From: "Alberto Simões" 

To: "lilypond" 
Sent: Sunday, February 22, 2009 3:24 PM
Subject: help with: Cannot find voice


Hello

I am trying to produce a SATB where S and A share the same staff.


This is my definition:

\score{
\context ChoirStaff
<<
\context Staff = "upper"
<<
\clef treble
\context Voice = sop \upperOne
\context Voice = con \upperTwo



\lyricsto "sop" \new Lyrics \firstverse
\context Staff = "tenor"
<<
\clef treble
\context Voice = ten \lowerOne
\lyricsto "ten" \new Lyrics \secondverse



\context Staff = "bass"
<<
\clef bass
\context Voice = bas \lowerTwo
\lyricsto "bas" \new Lyrics \thirdverse




[...]

Now, lilypond complains with:

4vozes.ly:64:16: warning: cannot find Voice `sop'
   \lyricsto "sop" \new Lyrics \firstverse


Any hint?
Thank you
Alberto


--
Alberto Simões - Departamento de Informática - Universidade do Minho
Campus de Gualtar - 4710-057 Braga - Portugal


___
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: display chords (Ami7(b5))

2009-02-22 Thread Tim McNamara


On Feb 22, 2009, at 8:02 AM, Grammostola Rosea wrote:


Hi,

How do I make chords with the 5th an half tone lower or higher  
(e.g. b5 or #5)?


for example

Am7(b5)

or

D7(#5)


I just asked this same question a couple of weeks ago.  The standard  
way would be:


 Am7(b5) for two beats  =  a2:m7.5-   which will render as Aø

 D7(#5) for four beats  =  d1:7.5+   which will render as D7/#5

You can do #9 or b9, etc. this way.  All the altered notes will be  
preceded by a slash except the major 7th, m7b5 and diminished chords  
which are denoted by a delta, diminished sign or half-diminished sign  
respectively.


There are other options for rendering the chords which involve  
setting up a file of chord markups.  For more information, look in  
the mailing list archives for the thread "Hello! and question about  
jazz chords" for more details.  The thread started 10 Feb 2009.


Hope this helps!

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


Re: lyrics and melody

2009-02-22 Thread James E. Bailey
also, like the centered hyphens, you can get smart(er) extender lines  
using " __ " (note the spaces around the underscores), but if you've  
read section 2.4, you've seen that already.


El 22.02.2009, a las 16:49, Trevor Daniels escribió:



Alberto Simões wrote Sunday, February 22, 2009 3:25 PM


Grammostola Rosea wrote:

hi,

this melody:

g4 a bes | es1( | es4) f, g a | d2 d

and I want to add these lyrics:

The fall - ing leaves_  drift by my win - dow,


Probably you want:

The fall- ing leaves drift by my win- dow


or, to get centered hyphens,

The fall -- ing leaves drift by my win -- dow

See Learning Manual section 2.4 for more.

Trevor




___
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


SPACING AND MIDI ISSUES

2009-02-22 Thread mischa falkenburg

Hello All,

I have a piece that currently is 84 pages in length.
It is 6 voices in harmony. When the pdf files is generated, however, 
each page shows six lines at the top, a GAP, and then 6 lines again at 
the bottom...until the final page...when there are 6 lines followed by 
six lines - NO gap.


The other issue is the generating of a midi file. The score has what I 
assume to be the proper \midi { } placement since there are no error 
messages...but I don't see any midi file being created.


The spacing issue is a bit more crucial, since losing that GAP would 
cut-down on the number of printed pages required.


Thanks in advance for your help,
Mischa



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


LilyPond on Leopard

2009-02-22 Thread Christopher Berg

Hi,

I used LilyPond for a brief period several years ago on Mac 10.4  
(Tiger) and it was working fine. I stopped using it for awhile, but  
I've become interested in it again. In the meantime, though, I've  
upgraded to Leopard.  I tried downloading LilyPond directly from http://ivo.bouwmans.name/lilypondleopard/ 
, but I couldn't get that to work (there was no usable menu) and I  
concluded LilyPond wouldn't work under Leopard.


But I've spent several days reading everything I could about getting  
LilyPond to run on Leopard and finally downloaded it (compiled?) via  
Fink and Fink Commander (Fink Commander compiled version 2.10.33, not  
2.12). I found I could create a test file in TextEdit, and get the  
output  compiled through the Terminal and I've been successful using  
files from mutopia.  I've also been experimenting using jEdit, but I  
have not  been able to output files from jEdit with the LilyPond  
Tool.  Just so you know, this is my first foray into compiling open  
source software and I'm not that familiar with the terminal.


Here's my question: I can get the .ly to output as .pdf. and .ps files  
successfully, but I also get the error message below. Is this normal  
and should I be concerned about it? Additionally, the output files  
always get saved to my ~ folder, no matter where the .ly file was.


GNU LilyPond 2.10.33
Fontconfig error: Cannot load config file "/usr/X11/lib/X11/fonts/ 
fonts.conf"

Fontconfig error: Cannot load default config file
Processing `/Users/christopherberg/Documents/LilyPond files/ 
bach_siciliano_bmv_1031.ly'

Parsing...
Interpreting music...
Interpreting music... [8][16][24][32][33]
Preprocessing graphical objects...
MIDI output to `bach_siciliano_bmv_1031.midi'...
Layout output to `bach_siciliano_bmv_1031.ps'...
Converting to `bach_siciliano_bmv_1031.pdf'...

I hope this is enough information… I really don't know enough to know  
exactly what to ask. I guess I can live with running around looking in  
different folders but it would be nice to have some control over where  
the output files end up.


Thank you so much for any advice you can offer!

Christopher Berg
http://www.myspace.com/bergchristopher
http://www.myspace.com/rossignolduo
http://www.christopherberg.com








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


Re: display chords (Ami7(b5))

2009-02-22 Thread Grammostola Rosea

Tim McNamara wrote:


On Feb 22, 2009, at 8:02 AM, Grammostola Rosea wrote:


Hi,

How do I make chords with the 5th an half tone lower or higher (e.g. 
b5 or #5)?


for example

Am7(b5)

or

D7(#5)


I just asked this same question a couple of weeks ago.  The standard 
way would be:


 Am7(b5) for two beats  =  a2:m7.5-   which will render as Aø

 D7(#5) for four beats  =  d1:7.5+   which will render as D7/#5

You can do #9 or b9, etc. this way.  All the altered notes will be 
preceded by a slash except the major 7th, m7b5 and diminished chords 
which are denoted by a delta, diminished sign or half-diminished sign 
respectively.


There are other options for rendering the chords which involve setting 
up a file of chord markups.  For more information, look in the mailing 
list archives for the thread "Hello! and question about jazz chords" 
for more details.  The thread started 10 Feb 2009.




Thanks!

Yeah it would be nice if jazz chords will be improved in Lilypond, like 
it was suggested in the link you gave...



\r



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


Re: Persian musical koron and sori

2009-02-22 Thread Behnam Rassi

Hi,
I produced a package of things that I could do.
I made a TTF Persian font called Vaziri which has the music notations.
I also created a separate folder for a version of the font (without  
Persian text characters) in OTF and Type1 format with all their  
related files.

There is also a PDF for 21 Persian music symbols that I could collect.
Hope it helps.
http://idisk.mac.com/behnam-Public?view=web
Behnam



On 20-Feb-09, at 6:23 PM, Kees van den Doel wrote:




\override Accidental #'stencil = #ly:text-interface::print
\override Accidental #'font-name = #"???"
\override Accidental #'font-size = #?
\override Accidental #'text = #(lambda (grob)
  (cdr

(assoc

(ly:grob-property grob 'alteration)
   persianStrings)))
\override Accidental #'X-extent = #'(0 . 1)
\override Accidental #'Y-extent = #'(-1 . 1)



and so on for KeySignature


I added lookup code for the positioning of the symbols and it works  
great with Pertout's microtonal font (http://www.pertout.com/ 
PhD2007Introduction.htm), sample attached! Thanks again.


But  can't understand how to get KeySignature to print these  
symbols though, anyone out there
that understands how to do that? Should KeySignature have a list in  
# 'text perhaps?


Kees






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


Re: LilyPond on Leopard

2009-02-22 Thread Jonathan Kulp

Christopher,

Have you tried the suggestions on Nicolas Sceaux's site?  Here's the 
address:


http://nicolas.sceaux.free.fr/index.php/2008/11/24/26-building-lilypond-from-git-sources-on-mac-os-105-intel

Good luck with this.  2.12 is really much better than 2.10.33.

Jon

Christopher Berg wrote:

Hi,

I used LilyPond for a brief period several years ago on Mac 10.4 (Tiger) 
and it was working fine. I stopped using it for awhile, but I've become 
interested in it again. In the meantime, though, I've upgraded to 
Leopard.  I tried downloading LilyPond directly from 
http://ivo.bouwmans.name/lilypondleopard/, but I couldn't get that to 
work (there was no usable menu) and I concluded LilyPond wouldn't work 
under Leopard.


But I've spent several days reading everything I could about getting 
LilyPond to run on Leopard and finally downloaded it (compiled?) via 
Fink and Fink Commander (Fink Commander compiled version 2.10.33, not 
2.12). I found I could create a test file in TextEdit, and get the 
output  compiled through the Terminal and I've been successful using 
files from mutopia.  I've also been experimenting using jEdit, but I 
have not  been able to output files from jEdit with the LilyPond Tool.  
Just so you know, this is my first foray into compiling open source 
software and I'm not that familiar with the terminal.


Here's my question: I can get the .ly to output as .pdf. and .ps files 
successfully, but I also get the error message below. Is this normal and 
should I be concerned about it? Additionally, the output files always 
get saved to my ~ folder, no matter where the .ly file was.


GNU LilyPond 2.10.33
Fontconfig error: Cannot load config file 
"/usr/X11/lib/X11/fonts/fonts.conf"

Fontconfig error: Cannot load default config file
Processing `/Users/christopherberg/Documents/LilyPond 
files/bach_siciliano_bmv_1031.ly'

Parsing...
Interpreting music...
Interpreting music... [8][16][24][32][33]
Preprocessing graphical objects...
MIDI output to `bach_siciliano_bmv_1031.midi'...
Layout output to `bach_siciliano_bmv_1031.ps'...
Converting to `bach_siciliano_bmv_1031.pdf'...

I hope this is enough information… I really don't know enough to know 
exactly what to ask. I guess I can live with running around looking in 
different folders but it would be nice to have some control over where 
the output files end up.


Thank you so much for any advice you can offer!

Christopher Berg
http://www.myspace.com/bergchristopher
http://www.myspace.com/rossignolduo
http://www.christopherberg.com




--
Jonathan Kulp
http://www.jonathankulp.com


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


Re: \transpose and \transposition combination error(?)

2009-02-22 Thread Trevor Daniels

Hmm.  Not sure it's a bug.  The \transpose command transposes all
pitches within its scope, including the pitch in the \transposition 
command.

You can compensate for this by using \transposition ees rather than
\transposition bes in your example, but this seems a little 
confusing

and rather destroys the point of having just one \transpose command.

I'm sure others on the list will have better approaches to this 
problem.


Trevor

- Original Message - 
From: "Zbyněk Burget" 

To: "Lilypond" 
Sent: Sunday, February 22, 2009 12:20 PM
Subject: \transpose and \transposition combination error(?)



Hi,
I found a (probably) error in combination \transpose and 
\transposition functions.

I've score:

\score {
  \new StaffGroup <<
\new Staff {
  \key c \major
  c'1
}
\new Staff {
  \transposition bes
  \key d \major
  d'1
}
  >>
  \midi {}
}

There is allright. But...

...now I need transpose all score to another key:

\score { \transpose c d {
  \new StaffGroup <<
\new Staff {
  \key c \major
  c'1
}
\new Staff {
  \transposition bes
  \key d \major
  d'1
}
  >> }
  \midi {}
}

In this case is produced midi file wrong. Only way to produce 
correct midi is as follows:


...
\new Staff {
  \transposition bes
  \key d \major
  \transpose c g { d'1 }
}
...

Is it error or feature?

Zbynek


___
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: Partial measures

2009-02-22 Thread jpeters

One way to do this is with measureLength: 
 
 \relative c'' {   
\time 4/4  
\repeat volta 2 {  
   \partial 8 gis8 |   
   fis4 g g c, |   
  
   \set Score.measureLength = #(ly:make-moment 7 8)  
b2. r8 |
\set Score.measureLength = #(ly:make-moment 4 4)
}  
  fis4 g g c, |
 } 
~


Jonathan Kulp-2 wrote:
> 
> Nick Payne wrote:
>> Jon
>> 
>> What you have below works fine with the small example, but when I remove
>> the
>> \partial at the beginning of the 2nd repeat in the actual score, not only
>> do
>> I not get the partial measure, but Lilypond gets quite bamboozled (see
>> attached png of the final page) and forgets to put in any line breaks
>> between bars 13 and 24.
>> 
>> Adding the partials back gets correct looking output at the cost of
>> barcheck
>> failed warnings.
>> 
>> Nick
>> 
> Boy that does look weird.  Maybe there's a way to reset the barcheck 
> counter (or whatever it's called) after the \partial command in the 2nd 
> half so that all the rest of the barchecks work.  Could you attach the 
> whole file so I can have a look.  I'm curious about this.
> 
> Jon
> 
> -- 
> Jonathan Kulp
> http://www.jonathankulp.com
> 
> 
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> http://lists.gnu.org/mailman/listinfo/lilypond-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Partial-measures-tp22143202p22152625.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.



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


Re: Cannot correctly code this rhythm...

2009-02-22 Thread M Watts

Brett Duncan wrote:
I've been fiddling with your files, and I cannot get the main notes to 
perfectly line up, even when I set proportionalNotationDuration to a 
very small value. The main culprits appear to be the grace notes, as 
Carl indicated, but also the tremolos. (A bug, maybe?)


And set SpacingSpanner #'strict-grace-spacing to ##t did not seem to 
have a discernable effect.




When I put  \override SpacingSpanner #'strict-grace-spacing to ##t into 
the score's \with block, I get errors like


programming error: No spring between column 992 and next one continuing, 
cross fingers,


and output like the attached, but it's probably because of other things 
I tried too.



Anyway, I tried moving the Spacing_engraver into the DrumStaff context, 
but I don't think it makes much difference.


I now have the following, which doesn't look too bad, but I've put in 
too many settings which try to fight each other!


\new Score \with { \remove Spacing_engraver  }
{ 
   \new DrumStaff \with {

   \override BarLine #'bar-size = #4

   \consists Spacing_engraver
   proportionalNotationDuration = #(ly:make-moment 1 2)
   \override SpacingSpanner #'uniform-stretching = ##t
   \override SpacingSpanner #'common-shortest-duration = 
#(ly:make-moment 1 16)
   \override SpacingSpanner #'base-shortest-duration = 
#(ly:make-moment 1 8)

   \override SpacingSpanner #'average-spacing-wishes = ##t
   \override SpacingSpanner #'shortest-duration-space = #0.35
   \override SpacingSpanner #'spacing-increment = #2.45
}


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


\score inside define-markup-command

2009-02-22 Thread Michael Käppler

Hi all,
is it possible to use the \score markup function in a new defined markup 
function construct?


For example,

#(define-markup-command (test layout props testclef) (string?)
  (interpret-markup layout props (markup #:score ( << \clef #testclef 
a4 h c >>



This is invalid code because it mixes LilyPond and Scheme syntax. How 
can I achieve something similar to what's expressed in this dummy code 
piece?


Regards,
Michael


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


Re: display chords (Ami7(b5))

2009-02-22 Thread Tim McNamara


On Feb 22, 2009, at 1:59 PM, Grammostola Rosea wrote:


Tim McNamara wrote:


On Feb 22, 2009, at 8:02 AM, Grammostola Rosea wrote:


Hi,

How do I make chords with the 5th an half tone lower or higher  
(e.g. b5 or #5)?


for example

Am7(b5)

or

D7(#5)


I just asked this same question a couple of weeks ago.  The  
standard way would be:


 Am7(b5) for two beats  =  a2:m7.5-   which will render as Aø

 D7(#5) for four beats  =  d1:7.5+   which will render as D7/#5

You can do #9 or b9, etc. this way.  All the altered notes will be  
preceded by a slash except the major 7th, m7b5 and diminished  
chords which are denoted by a delta, diminished sign or half- 
diminished sign respectively.


There are other options for rendering the chords which involve  
setting up a file of chord markups.  For more information, look in  
the mailing list archives for the thread "Hello! and question  
about jazz chords" for more details.  The thread started 10 Feb 2009.




Thanks!

Yeah it would be nice if jazz chords will be improved in Lilypond,  
like it was suggested in the link you gave...


Well, the jazz chord rendering follows a set of conventions, just not  
the ones established at Berklee and in the Real Book.  There's really  
nothing wrong with it except that it's not what most jazz musicians  
will expect (and the slash is a bit confusing- "is the #5 in the  
bass?").   But I've been handed lots of charts at rehearsals with the  
chords rendered the way LilyPond does it.


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


Re: (de)cresendi syntax

2009-02-22 Thread Carl D. Sorensen
Frederic,

I have made some comments in your message below.  Thanks for taking on this
project.

This type of proposal probably should go to lilypond-devel, rather than
-user, so I'm cross-posting to -devel.


On 2/22/09 1:25 AM, "Frédéric Bron"  wrote:

> Hello,
> 
> I am in charge of the question of (de)crescendo syntax issue in 2.12.2.
> 
> Here is what lilypond 2.12.2 currently does (in ly/spanners-init.ly):
> 
> - \< and \cr are equivalent: they start a crescendo event on the
> previous note: #(make-span-event 'CrescendoEvent START)
> - \> and \decr are equivalent: they start a decrescendo event on the
> previous note: #(make-span-event 'DecrescendoEvent START)
> - \!, \endcr and \enddecr are equivalent: they stop of (de)cresendo
> event on the previous note: #(make-span-event 'CrescendoEvent STOP),
> #(make-span-event 'DecrescendoEvent STOP) (is it really equivalent?)
> 
> - the following commands set the (de)cresendo to be text with dashed
> line or hairpin forever (until changed to something else):
>. crescTextCresc -> text "cresc."
>. dimTextDecresc -> text "decresc."
>. dimTextDecr -> text "decr."
>. dimTextDim -> text "dim."
>. crescHairpin -> hairpin
>. dimHairpin -> hairpin
> 
> 
> - the following commands start a text (de)crescendo on the next note
> (affects only the next (de)crescendo):
>. cresc -> text "cresc."
>. dim -> text "dim."
> - the following commands stop a (de)crescendo on the next note:
>. enddim
>. endcresc
> 
> 
> Current syntax is not satisfactory because:
> 
> - syntax is different between \<, \>, \! and \cresc, \dim, \enddim,
> \endcresc (undocumented):
>. \<, \>, \! apply to the previous note,
>. \cresc, \dim, \enddim, \endcresc apply to the next note
> - there is no symmetry between \crescText, \dimText commands and
> \ commands
> - some people just want cresc. to be printed without dashed line (spanner)
> - \endcresc does something different from \endcr which is confusing
> 
> 
> Here are my dreams:
> 
> - \<, \>, \! are used to start/stop (de)crescendo spanner (hairpin or text),
> - crescTextXXX, dimTextXXX, crescHairpin, dimHairpin decide if \<, \>,
> \! produce text or hairpin (applies for ever until changed to something
> else), I would prefer simpler syntax: \crescCresc, \crescHairpin,
> \dimDim, \dimDecr, \dimDecresc, i.e. remove Text

This part of the syntax got hashed out pretty heavily as part of 2.10.  I
think that the crescXXX and dimXXX syntax is where we want it.

The issue is that there are hairpin crescendos and decrescendos, and there
are text crescendos and decrescendos.  That's why the Text word was put in
there.  Perhaps we could make a change, but we ought to review this
carefully.

The previous conversation was at
http://thread.gmane.org/gmane.comp.gnu.lilypond.devel/15693/focus=15696

This is all coupled together with the idea that there are dynamic markings
that aren't really spanners, but are just markups for the individual note.

> - \<"cresc.", \<"cresc. poco a poco", \>"dim."... produce a text spanner
> with corresponding text, the spanner is ended with \!, the text applies
> only once, i.e. next (de)crescendo produces hairpin if this is the
> current setting

I believe that this will require a rewrite of the parser.  It will be
challenging to identify the difference between \< which starts a crescendo
spanner in your  proposal above, and \<"my crescendo text here" which starts
a text spanner.

> - \cresc, \dim, \decr, \decresc produce a text without spanner, applies
> only once to the previous note, no need to finish with \! or \endcresc,
> this could be implemented with a \markup command

I don't like the idea of changing current syntax so dramatically, but I may
be in the minority here.

> - remove unnecessary \cr, \endcr, \decr, \enddecr

I'm not sure why we have both \cr and \<.  If the two really are equivalent,
one ought to be deprecated before it is ultimately removed.

> - remove unnecessary \enddim, \endcresc


> 
> I know that it is not possible to implement this only with scheme and
> lily code but I am sure it is possible in C++.
> 
> Could you please comment on these propositions and give any other ideas.
> 
> F. Bron
> 
> PS: attached is a file that show the behaviour of the commands.



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


Persian music

2009-02-22 Thread Kees van den Doel
Hi all,

Many thanks for all your help, we can now write Persian music!!

If you want to try it you can download the init file persian.ly and
the font file (put in Lilypond font directory) from here:

http://www.cs.ubc.ca/~kvdoel/tmp/persian.zip

and try stuff like:

\include "persian.ly"
\version "2.12.2"
\score {
  \relative c' {
   \set Staff.keySignature = \chahargahD
bk'8 a gs fo r g ak g fs ek d c d ef16 d c4
 }
  \midi { }
  \layout { 
\context {
  \Score \override KeySignature #'text = #chahargahDKey
}
  }
}

Kees



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


Re: Re: Partial measures

2009-02-22 Thread nick . payne
  BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; }
 Thanks. Using your suggestion fixes all the problems I was seeing.
 Nick
 On Mon 23/02/09  9:11 AM , jpeters j...@jpeters.net sent:
 One way to do this is with measureLength:  
  relative c'' {
 time 4/4   
 repeat volta 2 {   
partial 8 gis8 |
fis4 g g c, |
set Score.measureLength = #(ly:make-moment 7 8)   
 b2. r8 | 
 set Score.measureLength = #(ly:make-moment 4 4) 
 }   
   fis4 g g c, | 
  }  
 ~ 
 Jonathan Kulp-2 wrote: 
 >  
 > Nick Payne wrote: 
 >> Jon 
 >>  
 >> What you have below works fine with the small example, but when I
remove 
 >> the 
 >> partial at the beginning of the 2nd repeat in the actual score,
not only 
 >> do 
 >> I not get the partial measure, but Lilypond gets quite bamboozled
(see 
 >> attached png of the final page) and forgets to put in any line
breaks 
 >> between bars 13 and 24. 
 >>  
 >> Adding the partials back gets correct looking output at the cost
of 
 >> barcheck 
 >> failed warnings. 
 >>  
 >> Nick 
 >>  
 > Boy that does look weird.  Maybe there's a way to reset the
barcheck  
 > counter (or whatever it's called) after the partial command in the
2nd  
 > half so that all the rest of the barchecks work.  Could you attach
the  
 > whole file so I can have a look.  I'm curious about this. 
 >  
 > Jon 
 >  
 > --  
 > Jonathan Kulp 
 > http://www.jonathankulp.com 
 >  
 >  
 > ___ 
 > lilypond-user mailing list 
 >  
 > http://lists.gnu.org/mailman/listinfo/lilypond-user 
 >  
 >  
 --  
 View this message in context:
http://www.nabble.com/Partial-measures-tp22143202p22152625.html 
 Sent from the Gnu - Lilypond - User mailing list archive at
Nabble.com. 
 ___ 
 lilypond-user mailing list 
 http://lists.gnu.org/mailman/listinfo/lilypond-user 
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user