first-time user, a couple of questions

2012-11-27 Thread Xavier Noria
Hi! This is the first time I use LilyPond, thanks for the software and
the documentation, they are really good!

I have transcribed a song by Stevie Wonder:

https://github.com/fxn/scores/blob/master/stevie-wonder/you-and-i.ly

and have a couple of questions I have not been able to figure out searching:

1. As you see, in the source code I have everything organized by
measure. Is there a way to add lyrics by measure instead of in a
separate chunk? The score would be easier to write and follow if I
could mix them.

2. Whole notes and rests are kind of flushed to the left. It's been
many years since I did music but if I am not mistaken it was customary
to have them centered... is there a way to center them?

Thanks!

Xavier

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


Re: first-time user, a couple of questions

2012-11-27 Thread Thomas Morley
2012/11/27 Xavier Noria :
> Hi! This is the first time I use LilyPond, thanks for the software and
> the documentation, they are really good!
>
> I have transcribed a song by Stevie Wonder:
>
> https://github.com/fxn/scores/blob/master/stevie-wonder/you-and-i.ly
>
> and have a couple of questions I have not been able to figure out searching:
>
> 1. As you see, in the source code I have everything organized by
> measure. Is there a way to add lyrics by measure instead of in a
> separate chunk? The score would be easier to write and follow if I
> could mix them.

I don't know, if it's _possible_, but I would never do so.
Opposed to you I think it would make all _more_ intricate.

> 2. Whole notes and rests are kind of flushed to the left. It's been
> many years since I did music but if I am not mistaken it was customary
> to have them centered... is there a way to center them?

You used R1*x already. Use R1 instead of r1, too.
Whole notes are never centered in LilyPond and I've never seen
centered whole notes in any printed score.

Btw, compiling your score, several `warning: unterminated tie´ are occuring.
Perhaps you mean \laissezVibrer ?


Cheers,
  Harm

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


Re: Error Message

2012-11-27 Thread Francisco Vila
2012/11/27 Zenaan Harkness :
>> I verified that the manual contains no instance of
>> "TupletSpannerDuration".  "copy and paste" has a rather fixed meaning
>> that is usually not meant to include "read and manually retyped".
>
> Aww, c'mon. What's a few [de]capitalisations or an extra char between
> computers^Wfriends?

You can avoid extra frustration if you view computers not like
friends, but rather like stupid slaves.

-- 
Francisco Vila. Badajoz (Spain)
www.paconet.org , www.csmbadajoz.com

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


Re: first-time user, a couple of questions

2012-11-27 Thread Francisco Vila
2012/11/27 Thomas Morley :
> 2012/11/27 Xavier Noria :
>> Hi! This is the first time I use LilyPond, thanks for the software and
>> the documentation, they are really good!
>>
>> I have transcribed a song by Stevie Wonder:
>>
>> https://github.com/fxn/scores/blob/master/stevie-wonder/you-and-i.ly
>>
>> and have a couple of questions I have not been able to figure out searching:
>>
>> 1. As you see, in the source code I have everything organized by
>> measure. Is there a way to add lyrics by measure instead of in a
>> separate chunk? The score would be easier to write and follow if I
>> could mix them.
>
> I don't know, if it's _possible_, but I would never do so.
> Opposed to you I think it would make all _more_ intricate.

Entering lyrics in parallel should be possible if you could specify
lyricsmode for one of the variables, but I don't know how to specify
it

http://lilypond.org/doc/v2.16/Documentation/notation/multiple-voices#writing-music-in-parallel
-- 
Francisco Vila. Badajoz (Spain)
www.paconet.org , www.csmbadajoz.com

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


Re: first-time user, a couple of questions

2012-11-27 Thread David Kastrup
Xavier Noria  writes:

> Hi! This is the first time I use LilyPond, thanks for the software and
> the documentation, they are really good!
>
> I have transcribed a song by Stevie Wonder:
>
> https://github.com/fxn/scores/blob/master/stevie-wonder/you-and-i.ly

Here likely the Github usage conditions apply:

A8: You may not use the Service for any illegal or unauthorized
purpose. You must not, in the use of the Service, violate any laws
in your jurisdiction (including but not limited to copyright or
trademark laws).

Without an authorization by Stevie Wonder, publishing a version of his
work on GitHub is not allowed in most countries of the world, so you
should likely make this part of your repository private.

For the purpose of discussing LilyPond examples, try using random notes
or non-copyrighted material (18th century or so).  That will mean
additional work for adapting your examples and incorporating the
replies, but that are the conditions one has to work under these times.

-- 
David Kastrup


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


Re: first-time user, a couple of questions

2012-11-27 Thread David Kastrup
Francisco Vila  writes:

> 2012/11/27 Thomas Morley :
>> 2012/11/27 Xavier Noria :
>>> Hi! This is the first time I use LilyPond, thanks for the software and
>>> the documentation, they are really good!
>>>
>>> I have transcribed a song by Stevie Wonder:
>>>
>>> https://github.com/fxn/scores/blob/master/stevie-wonder/you-and-i.ly
>>>
>>> and have a couple of questions I have not been able to figure out searching:
>>>
>>> 1. As you see, in the source code I have everything organized by
>>> measure. Is there a way to add lyrics by measure instead of in a
>>> separate chunk? The score would be easier to write and follow if I
>>> could mix them.
>>
>> I don't know, if it's _possible_, but I would never do so.
>> Opposed to you I think it would make all _more_ intricate.
>
> Entering lyrics in parallel should be possible if you could specify
> lyricsmode for one of the variables, but I don't know how to specify
> it
>
> http://lilypond.org/doc/v2.16/Documentation/notation/multiple-voices#writing-music-in-parallel

lyricsmode is not a music mode, but an entry mode.  \parallelMusic gets
one argument and it is not possible to have this argument scanned in
more than one mode.

I don't really see a feasible way to do this kind of parallelism in
LilyPond.  It would be an interesting exercise to offer a "mixed" mode
where lyrics are just entered as quoted strings interspersed with notes,
having to pull the respective events apart afterwards in a music
function.  But that would require actually changing the parser and
recompiling LilyPond.

-- 
David Kastrup


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


Re: first-time user, a couple of questions

2012-11-27 Thread Thomas Morley
2012/11/27 Xavier Noria :
> On Tue, Nov 27, 2012 at 10:46 AM, Thomas Morley
>  wrote:
>
>>> 2. Whole notes and rests are kind of flushed to the left. It's been
>>> many years since I did music but if I am not mistaken it was customary
>>> to have them centered... is there a way to center them?
>>
>> You used R1*x already. Use R1 instead of r1, too.
>> Whole notes are never centered in LilyPond and I've never seen
>> centered whole notes in any printed score.
>
> Perfect.
>
>> Btw, compiling your score, several `warning: unterminated tie´ are occuring.
>> Perhaps you mean \laissezVibrer ?
>
> Oh, thanks for doing that!
>
> I didn't realize there were warnings being printed. They were ties
> across bars where the right note became a rest instead of a tied note
> in a later revision, and forgot to remove the tildes from the previous
> measures. It is fixed now.


Hi again,

although I stand to my statement about centered whole notes, I attach
a file to center a NoteColumn, which I made some time ago.
Perhaps you can adapt it (I didn't test it with your score).

Please don't forget to answer all.

-Harm


center-note-column-13.ly
Description: Binary data
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: first-time user, a couple of questions

2012-11-27 Thread Xavier Noria
On Tue, Nov 27, 2012 at 11:07 AM, David Kastrup  wrote:

> Xavier Noria  writes:
>
>> Hi! This is the first time I use LilyPond, thanks for the software and
>> the documentation, they are really good!
>>
>> I have transcribed a song by Stevie Wonder:
>>
>> https://github.com/fxn/scores/blob/master/stevie-wonder/you-and-i.ly
>
> Here likely the Github usage conditions apply:
>
> A8: You may not use the Service for any illegal or unauthorized
> purpose. You must not, in the use of the Service, violate any laws
> in your jurisdiction (including but not limited to copyright or
> trademark laws).
>
> Without an authorization by Stevie Wonder, publishing a version of his
> work on GitHub is not allowed in most countries of the world, so you
> should likely make this part of your repository private.
>
> For the purpose of discussing LilyPond examples, try using random notes
> or non-copyrighted material (18th century or so).  That will mean
> additional work for adapting your examples and incorporating the
> replies, but that are the conditions one has to work under these times.

Thanks for the warning David, I was not aware of that publishing a
score was violating anything.

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


Re: first-time user, a couple of questions

2012-11-27 Thread Jan Nieuwenhuizen
David Kastrup writes:

> Without an authorization by Stevie Wonder, publishing a version of his
> work on GitHub is not allowed in most countries of the world, so you
> should likely make this part of your repository private.

Either that, or move to a country which allows such publishing.  As an
aside, is there a list of countries that allow this AND have free
internet access?

> For the purpose of discussing LilyPond examples, try using random notes
> or non-copyrighted material (18th century or so).  That will mean
> additional work

Randomization, or de-copyrightization, wouldn't that be a nice feature
for a LilyPond editor or mode?  

Greetings, Jan

-- 
Jan Nieuwenhuizen  | GNU LilyPond http://lilypond.org
Freelance IT http://JoyofSource.com | Avatar®  http://AvatarAcademy.nl  

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


Re: first-time user, a couple of questions

2012-11-27 Thread Urs Liska

Am 27.11.2012 10:11, schrieb Xavier Noria:

2. Whole notes and rests are kind of flushed to the left. It's been
many years since I did music but if I am not mistaken it was customary
to have them centered... is there a way to center them?
I'm embarrassed that I don't exactly know when and where, but there 
actually _were_ times when notes were placed in the middle of the time 
they are supposed to fill.

You can even find it in _handwritten_ 19th century scores.
For example look at the last measure in this Schubert manuscript: 
http://www.schubert-online.at/activpage/manuskripte.php?werke_id=253&werkteile_id=&image=MH_00122_D648_052.jpg&groesse=100&aktion=einzelbild&bild_id=51


[Another practice was to place the prolongation dots not directly after 
the note but at the horizontal position where the next note normally 
would be placed (which is quite irritating to read)]


But you wouldn't have this kind of notation in printed scores, and 
surely not in anything from the 20th century.


Best
Urs

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


Re: first-time user, a couple of questions

2012-11-27 Thread Martin Tarenskeen




You can even find it in _handwritten_ 19th century scores.
For example look at the last measure in this Schubert manuscript: 
http://www.schubert-online.at/activpage/manuskripte.php?werke_id=253&werkteile_id=&image=MH_00122_D648_052.jpg&groesse=100&aktion=einzelbild&bild_id=51


BTW: nice website!

--

MT


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


new user--Glissando question

2012-11-27 Thread Bill Restemeyer
Hello!  I'm trying to use LilyPond to score music for Harp and have a question 
about continuous glissandos.  There are measures in this piece (4/4) where each 
quarter note is the beginning and the end of a glissando (well, except the 
first).  After doing this for a while, this pattern stops and each quarter note 
begins a "contemporary" glissando (no ending note).  My problem is conecting 
these two with another glissando.  To create the "contemporary" glissando, I 
break into two voices, so the question is how to connect the last Bb quarter 
note to the following F quarter note (all in the left hand).

\header{
  title = "glissando example"
  poet =  \markup \harp-pedal #"v-^|v--v"
}

\relative c {
\new PianoStaff <<
\set PianoStaff.instrumentName = \markup \italic #"HARP  "
  \new Staff = "right" { \key f \major 
\override Glissando #'breakable = ##t
\override Glissando #'after-line-breaking = ##t

e'''8 d c a-4( f) c f,4 | s1 |
g'4\glissando bes,,\glissando g''\glissando bes,,\glissando |
  }


  \new Staff = "left" { \key f \major
\clef bass

  \override Glissando #'breakable = ##t
  \override Glissando #'after-line-breaking = ##t

f,4\glissando bes'\glissando f,4\glissando bes' %\glissando | 
<<
 {s4 c,\glissando^"R" \hideNotes g'' \unHideNotes c,\glissando \change 
Staff = "right" \hideNotes g'' \unHideNotes \change Staff = "left" }
  \\
 { f,,,\glissando_"L" \hideNotes c'' \unHideNotes f,\glissando \hideNotes 
c''\unHideNotes }
>>
s2. |

}
>>

}


\version "2.16.1"  % necessary for upgrading to future LilyPond versions.

Thanks for any help you can give!
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


2.17.7 won't compile

2012-11-27 Thread Bric
I'm getting this error on "make":


--- begin quote -
! I can't find file `mfplain'.
l.27 input mfplain
--- end quote ---


What is "mfplain" ? Online searching fails to explain.

I'm on Ubuntu Maverick (10.10).

Thanks.

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


Re: 2.17.7 won't compile

2012-11-27 Thread David Kastrup
Bric  writes:

> I'm getting this error on "make":
>
>
> --- begin quote -
> ! I can't find file `mfplain'.
> l.27 input mfplain
> --- end quote ---
>
>
> What is "mfplain" ? Online searching fails to explain.

$ dpkg -S mfplain
texlive-metapost: /usr/share/texlive/texmf-dist/metapost/base/mfplain.mp
texlive-binaries: /usr/bin/mfplain
texlive-metapost: /usr/share/texlive/texmf-dist/metapost/config/mfplain.ini
$

Do you have texlive-metapost installed?

-- 
David Kastrup


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


Re: 2.17.7 won't compile

2012-11-27 Thread Jan Nieuwenhuizen
David Kastrup writes:

> Bric  writes:
>> What is "mfplain" ? Online searching fails to explain.
>
> $ dpkg -S mfplain

While helpful for this user in this specific case, that only works if
you already have what you are missing.  Try (after apt-file update
of course)

$ apt-file search mfplain
texlive-binaries: /usr/bin/mfplain
texlive-metapost: /usr/share/texlive/texmf-dist/metapost/base/mfplain.mp
texlive-metapost: /usr/share/texlive/texmf-dist/metapost/config/mfplain.ini

Greetings, Jan

-- 
Jan Nieuwenhuizen  | GNU LilyPond http://lilypond.org
Freelance IT http://JoyofSource.com | Avatar®  http://AvatarAcademy.nl  

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


RE: new user--Glissando question

2012-11-27 Thread Daniel Rosen
Since you never have more than two voices of music at once, there's no need for 
you to have more than one voice within a Staff context. Just put all the music 
for the each hand in its respective Staff context and use the \change function 
to switch staves:

%%% start
\header{
  title = "glissando example"
  poet =  \markup \harp-pedal #"v-^|v--v"
}

\relative c {
  \new PianoStaff <<
\set PianoStaff.instrumentName = \markup \italic #"HARP  "
\new Staff = "right" { 
  \key f \major 
  e'''8 d c a-4( f) c f,4 | \voiceOne
  \change Staff = "left" s4 c,\glissando^"R" \once \hideNotes g''
  c,\glissando \change Staff = "right" | \oneVoice
  g''4\glissando bes,,\glissando g''\glissando bes,,\glissando |
} 
\new Staff = "left" {
  \key f \major
  \clef bass
  f,4\glissando bes'\glissando f,4\glissando bes' \glissando | \voiceTwo
  f,\glissando_"L" \once \hideNotes c''
  f,\glissando \once \hideNotes c'' |
  s1  
}
  >>
}

\version "2.16.1"

%%% end

In the future, debugging is a lot easier when you use tiny examples 
(http://www.lilypond.org/tiny-examples.html). :) 

DR


-Original Message-
From: Bill Restemeyer [mailto:reste...@bellatlantic.net] 
Sent: Tuesday, November 27, 2012 7:46 AM
To: lilypond-user@gnu.org
Subject: new user--Glissando question

Hello!  I'm trying to use LilyPond to score music for Harp and have a question 
about continuous glissandos.  There are measures in this piece (4/4) where each 
quarter note is the beginning and the end of a glissando (well, except the 
first).  After doing this for a while, this pattern stops and each quarter note 
begins a "contemporary" glissando (no ending note).  My problem is conecting 
these two with another glissando.  To create the "contemporary" glissando, I 
break into two voices, so the question is how to connect the last Bb quarter 
note to the following F quarter note (all in the left hand).

\header{
  title = "glissando example"
  poet =  \markup \harp-pedal #"v-^|v--v"
}

\relative c {
\new PianoStaff <<
\set PianoStaff.instrumentName = \markup \italic #"HARP  "
  \new Staff = "right" { \key f \major 
\override Glissando #'breakable = ##t
\override Glissando #'after-line-breaking = ##t

e'''8 d c a-4( f) c f,4 | s1 |
g'4\glissando bes,,\glissando g''\glissando bes,,\glissando |
  }


  \new Staff = "left" { \key f \major
\clef bass

  \override Glissando #'breakable = ##t
  \override Glissando #'after-line-breaking = ##t

f,4\glissando bes'\glissando f,4\glissando bes' %\glissando | 
<<
 {s4 c,\glissando^"R" \hideNotes g'' \unHideNotes c,\glissando \change 
Staff = "right" \hideNotes g'' \unHideNotes \change Staff = "left" }
  \\
 { f,,,\glissando_"L" \hideNotes c'' \unHideNotes f,\glissando \hideNotes 
c''\unHideNotes }
>>
s2. |

}
>>

}


\version "2.16.1"  % necessary for upgrading to future LilyPond versions.

Thanks for any help you can give!


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


Re: new user--Glissando question

2012-11-27 Thread Eluze
Bill Restemeyer wrote
> Hello!  I'm trying to use LilyPond to score music for Harp and have a
> question about continuous glissandos.  There are measures in this piece
> (4/4) where each quarter note is the beginning and the end of a glissando
> (well, except the first).  After doing this for a while, this pattern
> stops and each quarter note begins a "contemporary" glissando (no ending
> note).  My problem is conecting these two with another glissando.  To
> create the "contemporary" glissando, I break into two voices, so the
> question is how to connect the last Bb quarter note to the following F
> quarter note (all in the left hand).

no idea if I understood correctly, but in any case I would keep the "real"
music together (in one voice) and try to put "excessive" ornamentations or
indications in another voice - here is what I'd try:

\context Staff <<
  \new Voice  { 
\voiceOne
c'4 \glissando c'' \glissando  e' \glissando  c'' \glissando
c'4 \glissando c'' \glissando  e' \glissando  c''
  }
  \new Voice  {
\voiceTwo
\autoBeamOff
\override Glissando.color = #magenta
\override Glissando.style = #'zigzag
s1 \hideNotes
c'8 \glissando c'' c'' \glissando c''' e' \glissando e'' c'' \glissando 
c'''
  }
>>

does this help!?

Eluze



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/new-user-Glissando-question-tp136919p136925.html
Sent from the User mailing list archive at Nabble.com.

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


Re: measures per system

2012-11-27 Thread David Nalesnik
Hi Kieren,

> On 2012-Nov-26, at 12:34, Kieren MacMillan wrote:
>
>> Hi all,
>>
>> One of my favourite snippets (thanks David!) is
>> 

I'm glad you like it!

>>
>> Is there a way that this can be coded "arbitrarily", e.g.
>>
>> 1. The first 19 measures broken as '(4 5 4 6).
>> 2. The next 200 measures broken automagically by Lilypond.
>> 3. The next 32 measures broken as '(4) [repeated 8 times].
>> 4. The rest of the score (unknown number of measures) broken automagically 
>> by Lilypond.
>>
>> ??


On Mon, Nov 26, 2012 at 1:32 PM, Kieren MacMillan
 wrote:
> p.s. I guess in my exact example as given, one could use
>
> '(4 5 4 6 200 4 4 4 4 4 4 4 4 100)
>
> But I think there is still a valid question in here [somewhere] about how to 
> give the greatest flexibility to this [wonderful!] Scheme engraver, with the 
> simplest user interface.
>

Basically (for those who are unfamiliar with the syntax), this list
specifies where to add forced breaks.  So, there will be one after
four measures, another after 5 more, etc.  During the expanse of 200
measures, no forced breaks will be added, but LilyPond will continue
to break as she sees fit because 200 measures is obviously too many to
put on a line.

But...if you include this:
\override NonMusicalPaperColumn #'line-break-permission = ##f

(in other words, insist that all breaks must be specified)

the program will fit 200 bars on a line, with the familiar result of
music running off the page.

I could change the engraver so that you could specify the list in your
example like so:

'(4 5 4 6 (200) 4 4 4 4 4 4 4 4 (100))

with the meaning that elements in further parentheses have
'line-break-permission set to 'allow (the default, which lets LilyPond
make her aesthetic decisions), and the other elements have
'line-break-permission set to #f and 'force at the breakpoints.
Therefore, you would be assured of getting exactly 4, 5, 4, 6 bars,
with the understanding that you could leave the parentheses off of 200
and create something nasty.  But I suppose the point of a
bars-per-line-engraver is the freedom to do just that.

What do you think?

-David

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


Re: review of a Mutopia file (why TabStaff gives error here?)

2012-11-27 Thread Nick Payne

On 27/11/12 11:52, David Kastrup wrote:

#(define (text-spanner-start-stop mus)
   (let ((elts (extract-typed-music mus 'rhythmic-event)))
 (for-each
   (lambda (sel)
 (let ((m (sel elts)))
   (set! (ly:music-property m 'articulations)
 (cons (make-music 'TextSpanEvent
   'span-direction (sel '(-1 1)))
   (ly:music-property m 'articulations)
   (list last first)))
   mus)


Thanks. Substituting that works well except when \repeat unfold is used 
inside the braces holding the music for the barre, when the console contains


warning: cannot find start of text spanner
warning: unterminated text spanner.

and the output is not what is desired.

\version "2.16.0"

#(define (text-spanner-start-stop mus)
  (let ((elts (extract-typed-music mus 'rhythmic-event)))
(for-each
  (lambda (sel)
(let ((m (sel elts)))
  (set! (ly:music-property m 'articulations)
(cons (make-music 'TextSpanEvent
  'span-direction (sel '(-1 1)))
  (ly:music-property m 'articulations)
  (list last first)))
  mus)

barre =
#(define-music-function (parser location strg music)(string? ly:music?)
   (let ((arg (string-append "B " strg)))
  #{
 \override TextSpanner #'(bound-details left text) = $arg
 #(text-spanner-start-stop music)
  #}))

\relative c {
\clef "treble_8"
\barre V { \repeat unfold 24 { c4 } }
}
<>___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: review of a Mutopia file (why TabStaff gives error here?)

2012-11-27 Thread Thomas Morley
2012/11/27 David Kastrup :
> Probably try something like
>
> #(define (text-spanner-start-stop mus)
>   (let ((elts (extract-typed-music mus 'rhythmic-event)))
> (for-each
>   (lambda (sel)
> (let ((m (sel elts)))
>   (set! (ly:music-property m 'articulations)
> (cons (make-music 'TextSpanEvent
>   'span-direction (sel '(-1 1)))
>   (ly:music-property m 'articulations)
>   (list last first)))
>   mus)

Thanks a lot.

Works fine. I'll update the LSR-snippet following your suggestion.

-Harm

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


Re: review of a Mutopia file (why TabStaff gives error here?)

2012-11-27 Thread Thomas Morley
2012/11/27 Nick Payne :
> On 27/11/12 11:52, David Kastrup wrote:
>>
>> #(define (text-spanner-start-stop mus)
>>(let ((elts (extract-typed-music mus 'rhythmic-event)))
>>  (for-each
>>(lambda (sel)
>>  (let ((m (sel elts)))
>>(set! (ly:music-property m 'articulations)
>>  (cons (make-music 'TextSpanEvent
>>'span-direction (sel '(-1 1)))
>>(ly:music-property m 'articulations)
>>(list last first)))
>>mus)
>
>
> Thanks. Substituting that works well except when \repeat unfold is used
> inside the braces holding the music for the barre, when the console contains
>
> warning: cannot find start of text spanner
> warning: unterminated text spanner.
>
> and the output is not what is desired.
>
> \version "2.16.0"
>
>
> #(define (text-spanner-start-stop mus)
>   (let ((elts (extract-typed-music mus 'rhythmic-event)))
> (for-each
>   (lambda (sel)
> (let ((m (sel elts)))
>   (set! (ly:music-property m 'articulations)
> (cons (make-music 'TextSpanEvent
>   'span-direction (sel '(-1 1)))
>   (ly:music-property m 'articulations)
>   (list last first)))
>   mus)
>
> barre =
> #(define-music-function (parser location strg music)(string? ly:music?)
>(let ((arg (string-append "B " strg)))
>   #{
>  \override TextSpanner #'(bound-details left text) = $arg
>  #(text-spanner-start-stop music)
>   #}))
>
> \relative c {
> \clef "treble_8"
> \barre V { \repeat unfold 24 { c4 } }
> }
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>

Although I can confirm your observation, I asked myself: How would I
use a TextSpanner to span a repeat-unfold-expression with pure
LilyPond-syntax?

I couldn't find any reasonable method.

The following doesn't work (ofcourse not):

\relative c {
\clef "treble_8"
\override TextSpanner #'(bound-details left text) = #"B V"
\startTextSpan
\repeat unfold 24 { c4 } \stopTextSpan
}

How to do?

-Harm

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


Re: include header conflicts

2012-11-27 Thread Eluze
David Kastrup wrote
> 
> You could suck the whole file into one score and get just the music back
> out again using ly:score-music, something like
> 
> #(ly:score-music #{ \score { \include "xxx.ly" } #})
> 
> The music will already be "scorified" (repeat chords expanded, \\
> replaced and other things), so you just need to add it to your book or
> whatever.

is there any more information/documentation on these functions:

ly:score-music
ly:score-header
or similar?

the doc just says

ly:score-music score [Function]
Return score music

but there is no instruction how to use it, what may/should (or what may not)
be in the file that's included, in which context you can run it …

the reason I'm asking is because there are a lot of constellations with
failures and I don't feel like finding out by trial and learning

thanks
Eluze





--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/include-header-conflicts-tp136849p136931.html
Sent from the User mailing list archive at Nabble.com.

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


Re: review of a Mutopia file (why TabStaff gives error here?)

2012-11-27 Thread Nick Payne

On 28/11/12 09:35, Thomas Morley wrote:

Although I can confirm your observation, I asked myself: How would I
use a TextSpanner to span a repeat-unfold-expression with pure
LilyPond-syntax?

I couldn't find any reasonable method.

The following doesn't work (ofcourse not):

\relative c {
 \clef "treble_8"
 \override TextSpanner #'(bound-details left text) = #"B V"
 \startTextSpan
 \repeat unfold 24 { c4 } \stopTextSpan
}

How to do?


My previous example was quite artificial, but here's part of an actual 
score where I would want to indicate a barre -  it's from a 
transcription of Haydn's string quartet Op 2 No 1, transcribed for 
guitar duet by the 19th century guitarist François de Fossa. Guitar 2 
plays a lot of repeated chords like this, sometimes the same chord for 
several bars. Here the console doesn't indicate any error, but the barre 
doesn't display.


\version "2.16.0"

beamTuplets = \set beamExceptions =
  #'((end . (((1 . 24) . (3 3 3 3)


#(define (text-spanner-start-stop mus)
  (let ((elts (extract-typed-music mus 'rhythmic-event)))
(for-each
  (lambda (sel)
(let ((m (sel elts)))
  (set! (ly:music-property m 'articulations)
(cons (make-music 'TextSpanEvent
  'span-direction (sel '(-1 1)))
  (ly:music-property m 'articulations)
  (list last first)))
  mus)

barre =
#(define-music-function (parser location strg music)(string? ly:music?)
   (let ((arg (string-append "B " strg)))
  #{
 \override TextSpanner #'(bound-details left text) = $arg
 #(text-spanner-start-stop music)
  #}))

\relative c' {
  \clef "treble_8"
  \time 2/4
  \key d \major
  <<
{
  \beamTuplets
  \set tupletSpannerDuration = #(ly:make-moment 1 8)
  \barre II { \times 2/3 { \repeat unfold 12 { 16 } } }
}
\\
{
  \beamTuplets
  \set fingeringOrientations = #'(left)
  \set tupletSpannerDuration = #(ly:make-moment 1 8)
  \times 2/3 {  \repeat unfold 11 { cis16 } }
}
  >>
}

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


Re: include header conflicts

2012-11-27 Thread David Kastrup
Eluze  writes:

> David Kastrup wrote
>> 
>> You could suck the whole file into one score and get just the music back
>> out again using ly:score-music, something like
>> 
>> #(ly:score-music #{ \score { \include "xxx.ly" } #})
>> 
>> The music will already be "scorified" (repeat chords expanded, \\
>> replaced and other things), so you just need to add it to your book or
>> whatever.
>
> is there any more information/documentation on these functions:
>
> ly:score-music
> ly:score-header
> or similar?

Not that I know of.

> but there is no instruction how to use it, what may/should (or what
> may not) be in the file that's included, in which context you can run
> it …

Well, any context where wrapping a \score around the file contents would
deliver a working result.

> the reason I'm asking is because there are a lot of constellations
> with failures and I don't feel like finding out by trial and learning

Sure: your files need to have a certain form to make this work (the
problem was putting music and headers in the same file, being able to
strip the headers on demand).  Depending on your preferred form, you
might need to suck into a \book rather than a \score.  Or something
else.

If you need to be more flexible, take a look at
Documentation/snippets/generating-whole-scores-also-book-parts-in-scheme-without-using-the-parser.ly
which redefines several hooks and then is able to include a file of
arbitrary structure (depending on its elements, the various different
hooks get called).

-- 
David Kastrup


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


Re: new user--Glissando question

2012-11-27 Thread Bill Restemeyer
Daniel,

Thanks much for the valuable tips.  I was able to adapt your method for other 
parts of the piece also.

I promise to follow the rules of Tiny Examples if I need to submit another 
snippet. :-)

Bill

 
On Nov 27, 2012, at 12:24 PM, Daniel Rosen wrote:

> Since you never have more than two voices of music at once, there's no need 
> for you to have more than one voice within a Staff context. Just put all the 
> music for the each hand in its respective Staff context and use the \change 
> function to switch staves:
> 
> %%% start
> \header{
>  title = "glissando example"
>  poet =  \markup \harp-pedal #"v-^|v--v"
> }
> 
> \relative c {
>  \new PianoStaff <<
>\set PianoStaff.instrumentName = \markup \italic #"HARP  "
>\new Staff = "right" { 
>  \key f \major 
>  e'''8 d c a-4( f) c f,4 | \voiceOne
>  \change Staff = "left" s4 c,\glissando^"R" \once \hideNotes g''
>  c,\glissando \change Staff = "right" | \oneVoice
>  g''4\glissando bes,,\glissando g''\glissando bes,,\glissando |
>} 
>\new Staff = "left" {
>  \key f \major
>  \clef bass
>  f,4\glissando bes'\glissando f,4\glissando bes' \glissando | \voiceTwo
>  f,\glissando_"L" \once \hideNotes c''
>  f,\glissando \once \hideNotes c'' |
>  s1  
>}
>>> 
> }
> 
> \version "2.16.1"
> 
> %%% end
> 
> In the future, debugging is a lot easier when you use tiny examples 
> (http://www.lilypond.org/tiny-examples.html). :) 
> 
> DR
> 
> 
> -Original Message-
> From: Bill Restemeyer [mailto:reste...@bellatlantic.net] 
> Sent: Tuesday, November 27, 2012 7:46 AM
> To: lilypond-user@gnu.org
> Subject: new user--Glissando question
> 
> Hello!  I'm trying to use LilyPond to score music for Harp and have a 
> question about continuous glissandos.  There are measures in this piece (4/4) 
> where each quarter note is the beginning and the end of a glissando (well, 
> except the first).  After doing this for a while, this pattern stops and each 
> quarter note begins a "contemporary" glissando (no ending note).  My problem 
> is conecting these two with another glissando.  To create the "contemporary" 
> glissando, I break into two voices, so the question is how to connect the 
> last Bb quarter note to the following F quarter note (all in the left hand).
> 
> \header{
>  title = "glissando example"
>  poet =  \markup \harp-pedal #"v-^|v--v"
> }
> 
> \relative c {
> \new PianoStaff <<
> \set PianoStaff.instrumentName = \markup \italic #"HARP  "
>  \new Staff = "right" { \key f \major 
> \override Glissando #'breakable = ##t
> \override Glissando #'after-line-breaking = ##t
> 
> e'''8 d c a-4( f) c f,4 | s1 |
>g'4\glissando bes,,\glissando g''\glissando bes,,\glissando |
>  }
> 
> 
>  \new Staff = "left" { \key f \major
>\clef bass
> 
>  \override Glissando #'breakable = ##t
>  \override Glissando #'after-line-breaking = ##t
> 
> f,4\glissando bes'\glissando f,4\glissando bes' %\glissando | 
><<
> {s4 c,\glissando^"R" \hideNotes g'' \unHideNotes c,\glissando \change 
> Staff = "right" \hideNotes g'' \unHideNotes \change Staff = "left" }
>  \\
> { f,,,\glissando_"L" \hideNotes c'' \unHideNotes f,\glissando \hideNotes 
> c''\unHideNotes }
>>> 
>s2. |
> 
> }
>>> 
> 
> }
> 
> 
> \version "2.16.1"  % necessary for upgrading to future LilyPond versions.
> 
> Thanks for any help you can give!
> 


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


Re: new user--Glissando question

2012-11-27 Thread Daniel Rosen
It's less a question of following rules, and more about making things easier 
for everyone involved--often by stripping stuff away I'm able to isolate and 
fix issues myself. :)

DR

Sent from my iPhone

On Nov 27, 2012, at 7:28 PM, "Bill Restemeyer"  
wrote:

> Daniel,
> 
> Thanks much for the valuable tips.  I was able to adapt your method for other 
> parts of the piece also.
> 
> I promise to follow the rules of Tiny Examples if I need to submit another 
> snippet. :-)
> 
> Bill
> 
> 
> On Nov 27, 2012, at 12:24 PM, Daniel Rosen wrote:
> 
>> Since you never have more than two voices of music at once, there's no need 
>> for you to have more than one voice within a Staff context. Just put all the 
>> music for the each hand in its respective Staff context and use the \change 
>> function to switch staves:
>> 
>> %%% start
>> \header{
>> title = "glissando example"
>> poet =  \markup \harp-pedal #"v-^|v--v"
>> }
>> 
>> \relative c {
>> \new PianoStaff <<
>>   \set PianoStaff.instrumentName = \markup \italic #"HARP  "
>>   \new Staff = "right" { 
>> \key f \major 
>> e'''8 d c a-4( f) c f,4 | \voiceOne
>> \change Staff = "left" s4 c,\glissando^"R" \once \hideNotes g''
>> c,\glissando \change Staff = "right" | \oneVoice
>> g''4\glissando bes,,\glissando g''\glissando bes,,\glissando |
>>   } 
>>   \new Staff = "left" {
>> \key f \major
>> \clef bass
>> f,4\glissando bes'\glissando f,4\glissando bes' \glissando | \voiceTwo
>> f,\glissando_"L" \once \hideNotes c''
>> f,\glissando \once \hideNotes c'' |
>> s1  
>>   }
 
>> }
>> 
>> \version "2.16.1"
>> 
>> %%% end
>> 
>> In the future, debugging is a lot easier when you use tiny examples 
>> (http://www.lilypond.org/tiny-examples.html). :) 
>> 
>> DR
>> 
>> 
>> -Original Message-
>> From: Bill Restemeyer [mailto:reste...@bellatlantic.net] 
>> Sent: Tuesday, November 27, 2012 7:46 AM
>> To: lilypond-user@gnu.org
>> Subject: new user--Glissando question
>> 
>> Hello!  I'm trying to use LilyPond to score music for Harp and have a 
>> question about continuous glissandos.  There are measures in this piece 
>> (4/4) where each quarter note is the beginning and the end of a glissando 
>> (well, except the first).  After doing this for a while, this pattern stops 
>> and each quarter note begins a "contemporary" glissando (no ending note).  
>> My problem is conecting these two with another glissando.  To create the 
>> "contemporary" glissando, I break into two voices, so the question is how to 
>> connect the last Bb quarter note to the following F quarter note (all in the 
>> left hand).
>> 
>> \header{
>> title = "glissando example"
>> poet =  \markup \harp-pedal #"v-^|v--v"
>> }
>> 
>> \relative c {
>> \new PianoStaff <<
>> \set PianoStaff.instrumentName = \markup \italic #"HARP  "
>> \new Staff = "right" { \key f \major 
>> \override Glissando #'breakable = ##t
>> \override Glissando #'after-line-breaking = ##t
>> 
>> e'''8 d c a-4( f) c f,4 | s1 |
>>   g'4\glissando bes,,\glissando g''\glissando bes,,\glissando |
>> }
>> 
>> 
>> \new Staff = "left" { \key f \major
>>   \clef bass
>> 
>> \override Glissando #'breakable = ##t
>> \override Glissando #'after-line-breaking = ##t
>> 
>> f,4\glissando bes'\glissando f,4\glissando bes' %\glissando | 
>>   <<
>>{s4 c,\glissando^"R" \hideNotes g'' \unHideNotes c,\glissando \change 
>> Staff = "right" \hideNotes g'' \unHideNotes \change Staff = "left" }
>> \\
>>{ f,,,\glissando_"L" \hideNotes c'' \unHideNotes f,\glissando \hideNotes 
>> c''\unHideNotes }
 
>>   s2. |
>> 
>> }
 
>> 
>> }
>> 
>> 
>> \version "2.16.1"  % necessary for upgrading to future LilyPond versions.
>> 
>> Thanks for any help you can give!
>> 
> 

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


Lilypond-book does not run

2012-11-27 Thread Chris
I have used Lilypond-book (2.14) with Vista. Now I switched to Windows 8 and 
installed the actual stable lilypond Version (2.16). An actual MikTeX 
Installation did run (pdfLaTeX works).
Lilypond.exe runs well, lilypond-book does not run correctly.

To have a simple test I used the example of the documentation 
(http://lilypond.org/doc/v2.16.1/Documentation/usage/an-example-of-a-
musicological-document.html) and deleted the line with \lilypondfile


Starting a cmd and entering the suggested command 
"C:\Program Files\LilyPond\usr\bin\lilypond-book.py"  --output=out --pdf 
lilybook.lytex

I get the help. 
Starting with --verbose I get an Exeption in line 114

Is there a incompabiliy with Windows 8? Do I have an error in the command?

Thanks!

Chris





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


Re: Note duration line (contemporary)

2012-11-27 Thread Oscar Dub
> It looks like you might be able to use a glissando and override the style to 
> be "line", then twiddle the thickness until it looks right?

Using this glissando method mentioned, does anybody know of a specific override 
that would force the glissando line to be flat (i.e. ignore the y position of 
the right bound and instead use the y position of the left one)?

If that's not simple then I was thinking this might be achievable with a 
simple-ish scheme callback, something like:
\override Glissando #'bound-details #'right #'Y = >> some nice function 
which returns the staff position of the note that the gliss is attached to 
<<

A nudge in the right direction would be great!

Thanks,

Oscar


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


Re: Note duration line (contemporary)

2012-11-27 Thread David Nalesnik
Hi Oscar,

On Tue, Nov 27, 2012 at 8:58 PM, Oscar Dub  wrote:
>> It looks like you might be able to use a glissando and override the style to 
>> be "line", then twiddle the thickness until it looks right?
>
> Using this glissando method mentioned, does anybody know of a specific 
> override that would force the glissando line to be flat (i.e. ignore the y 
> position of the right bound and instead use the y position of the left one)?
>
> If that's not simple then I was thinking this might be achievable with a 
> simple-ish scheme callback, something like:
> \override Glissando #'bound-details #'right #'Y = >> some nice function 
> which returns the staff position of the note that the gliss is attached to 
> <<
>
> A nudge in the right direction would be great!
>

I didn't get anything to work using an override of  #'bound-details
#'right #'Y, but you can override 'after-line-breaking like so:

\version "2.17.7"

#(define flat-gliss
  (lambda (grob)
(let ((left-Y (assoc-get 'Y (ly:grob-property grob 'left-bound-info
  (ly:grob-set-nested-property! grob '(right-bound-info Y) left-Y

\relative c'' {
  \override Glissando #'after-line-breaking = #flat-gliss
  \override Glissando #'thickness = #5
  c1\glissando
  g'\glissando
  g,
}

HTH,
David

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