Re: \tag can't follow \lyricsto

2008-07-16 Thread Trevor Daniels


Nicolas Sceaux wrote


Le 15 juil. 08 à 21:02, Trevor Daniels a écrit :



Roman Stawski wrote

<<
\new Staff { \new Voice = "dirge" { c''1 } }
\lyricsto "dirge" \new Lyrics { Whoops }
\tag #'harmony \new Staff { a'1 }
>>


OK, I see what you are trying to do.  The error is that
the order of the commands in the lyrics line is wrong,



Where does this rule come from?



and the \new Lyrics command should be followed by { .. }
just like \new Staff is.



Why should \new SomeThing be followed by { .. } ?


You're quite right, I was too presumptuous in generalising
my workaround to a rule, but I wonder if some advice or
good practice could be formulated which would avoid the
tagged line in this example being interpreted in Lyric mode?

Trevor 




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


Re: \tag can't follow \lyricsto

2008-07-16 Thread Valentin Villenave
2008/7/16 Han-Wen Nienhuys <[EMAIL PROTECTED]>:

> the mode switching commands (like lyricsto) are a bit erratic.
> Sometimes, the parser needs to look ahead to determine what to do
> next, and then it can happen that the next token is read in the wrong
> mode.  This may lead to interactions like the one you saw.

Does this need to be added to the tracker?

Cheers,
Valentin


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


Re: Slur ending repeated

2008-07-16 Thread Valentin Villenave
2008/7/13 Kieren MacMillan <[EMAIL PROTECTED]>:

> For the record, this is not a "bug"... you are asking for a new feature.

Hi Kieren,

can you help me adding this as an Enhancement request to the tracker,
by writing a minimal snippet and description?

Cheers,
Valentin


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


Re: \tag can't follow \lyricsto

2008-07-16 Thread Roman Stawski


Trevor Daniels wrote


OK, I see what you are trying to do.  The error is that
the order of the commands in the lyrics line is wrong,
and the \new Lyrics command should be followed by { .. }
just like \new Staff is.  Then it works fine, like this:


\new Staff { \new Voice = "dirge" { c''1 } }
\new Lyrics { \lyricsto "dirge" { Whoops } }
\tag #'harmony \new Staff {a'1}


Right.

The command order I'm using is from a really old template that I've
been using for years without problems. I came across your formulation
when checking an answer to another post on the bugs list.

Looks as if I'll have to update my templates. (Who's got the sed user
guide?)


However, there is an easier way to include or exclude
the harmony, without using tags, like this:


harmony = { \new Staff {a'1} }
<<
\new Staff { \new Voice = "dirge" { c''1 } }
\lyricsto "dirge" \new Lyrics { Whoops }
%\harmony %uncomment to include harmony
>>


That doesn't convince me.

Ideally, I want to produce different output from the same score
_without_ touching the contents. My idea (dream?) of using tags was
to eventually write a dollop of scheme that would be able to look at
the command line arguments and set \keepWithTag or \removeWithTag as
appropriate. However, the way that tags are implemented today isn't
powerful enough for what I want to do... they can only be used to filter
music expressions -- I'd like to be able to filter out markup, scores and
anything else in the input file. (Well, I did say 'dream'!).

At the moment I'm using a cobbled together solution partly based on tags,
and partly based on a perl preprocessor that does the filtering before
passing the input onto to Lilypond -- but pretty it ain't.


Tags are usually used for short sections of music.

You might find section 3.3.2 Different editions
from one source in the most recent version of the
2.11 docs worth a read - it was recently rewritten.


Yes, I have. That's where I found out about tags in the first place.

Thanks for your input, anyway. 




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


How to join plain + markup text in a single syllable?

2008-07-16 Thread Francisco Vila
Hello all,

Attached is what I want and what I get; in a single note we have:

- last letter of a previous word
- an italic apostrophe
- first letter of the next word, also italic

Not only I cannot join all of this onto a single note, I also obtain
errors for the next syllable (unfinished hyphen).

Any ideas?

The complete code of the attempt is:

\version "2.11.52"
{ \time 3/8 \autoBeamOff a'8 a'16 a' a' a' }
\addlyrics { bien ha -- y \markup{ \italic "'a" } --  que -- ya }


-- 
Francisco Vila. Badajoz (Spain)
http://www.paconet.org
<><>___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Stupid of me. Re: How to join plain + markup text in a single syllable?

2008-07-16 Thread Francisco Vila
2008/7/16 Francisco Vila <[EMAIL PROTECTED]>:
> The complete code of the attempt is:
>
> \version "2.11.52"
> { \time 3/8 \autoBeamOff a'8 a'16 a' a' a' }
> \addlyrics { bien ha -- y \markup{ \italic "'a" } --  que -- ya }

And the solution is to put the 'y' inside of the markup,
 \addlyrics { bien ha --  \markup{ y \italic "'a" }  -- que -- ya }

Although it now appears "y  'a" separated as two words, in my original
the letter 'a' is common to both words.
-- 
Francisco Vila. Badajoz (Spain)
http://www.paconet.org


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


Re: How to join plain + markup text in a single syllable?

2008-07-16 Thread James E. Bailey


Am 16.07.2008 um 13:35 schrieb Francisco Vila:


Hello all,

Attached is what I want and what I get; in a single note we have:

- last letter of a previous word
- an italic apostrophe
- first letter of the next word, also italic

Not only I cannot join all of this onto a single note, I also obtain
errors for the next syllable (unfinished hyphen).

Any ideas?

The complete code of the attempt is:

\version "2.11.52"
{ \time 3/8 \autoBeamOff a'8 a'16 a' a' a' }
\addlyrics { bien ha -- y \markup{ \italic "'a" } --  que -- ya }


--  
Francisco Vila. Badajoz (Spain)

http://www.paconet.org
italic.png>___

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


What you need here is a printer's mark, not an apostrophe, which is  
what the ' character on your keyboard is. On a macintosh, to get that  
character, you use shift+option=] and it creates the character ’ as  
opposed to the ' which is just a hash mark.

\version "2.11.52"
{ \time 3/8 \autoBeamOff a'8 a'16 a' a' a' }
\addlyrics { bien ha -- y’a --  que -- ya }
\paper {ragged-right = ##f }
<>




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


Re: Stupid of me. Re: How to join plain + markup text in a single syllable?

2008-07-16 Thread Reinhold Kainhofer
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Am Mittwoch, 16. Juli 2008 schrieb Francisco Vila:
> 2008/7/16 Francisco Vila <[EMAIL PROTECTED]>:
> > The complete code of the attempt is:
> >
> > \version "2.11.52"
> > { \time 3/8 \autoBeamOff a'8 a'16 a' a' a' }
> > \addlyrics { bien ha -- y \markup{ \italic "'a" } --  que -- ya }
>
> And the solution is to put the 'y' inside of the markup,
>  \addlyrics { bien ha --  \markup{ y \italic "'a" }  -- que -- ya }
>
> Although it now appears "y  'a" separated as two words, in my original
> the letter 'a' is common to both words.


Hint: Search the list of markup command in the NR for something like 
\concat ;-)

Cheers,
Reinhole

- -- 
- --
Reinhold Kainhofer, Vienna University of Technology, Austria
email: [EMAIL PROTECTED], http://reinhold.kainhofer.com/
 * Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/
 * K Desktop Environment, http://www.kde.org, KOrganizer maintainer
 * Chorvereinigung "Jung-Wien", http://www.jung-wien.at/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIfeJ3TqjEwhXvPN0RAoBLAJwM3+OdnRclOCLzNgjcbqtgqi94TgCgxI+W
WyO9O9hx5CvfvFm6Nxc76OQ=
=QbCO
-END PGP SIGNATURE-


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


Re: How to join plain + markup text in a single syllable?

2008-07-16 Thread Roman Stawski

Francisco Vila wrote:


Hello all,

Attached is what I want and what I get; in a single note we have:

- last letter of a previous word
- an italic apostrophe
- first letter of the next word, also italic

Not only I cannot join all of this onto a single note, I also obtain
errors for the next syllable (unfinished hyphen).

Any ideas?

The complete code of the attempt is:

\version "2.11.52"
{ \time 3/8 \autoBeamOff a'8 a'16 a' a' a' }
\addlyrics { bien ha -- y \markup{ \italic "'a" } --  que -- ya }


\version "2.11.49"
\paper{ ragged-right=##f } % to make it easier to see alignment
{ \time 3/8 \autoBeamOff a'8 a'16 a' a' a' }
\addlyrics { bien ha -- \markup{y \italic{'a}} -- que -- ya }
% or alternatively
\addlyrics { bien ha -- \markup{\concat{y \italic{'a}}} -- que -- ya } 




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


Re: \tag can't follow \lyricsto

2008-07-16 Thread Nicolas Sceaux

Le 16 juil. 08 à 13:31, Roman Stawski a écrit :


The command order I'm using is from a really old template that I've
been using for years without problems. I came across your formulation
when checking an answer to another post on the bugs list.

Looks as if I'll have to update my templates. (Who's got the sed user
guide?)


You don't have to. The way you're using it is valid.
You just have to adapt it when using \tag to workaround the parser
defect.


However, there is an easier way to include or exclude
the harmony, without using tags, like this:


harmony = { \new Staff {a'1} }
<<
\new Staff { \new Voice = "dirge" { c''1 } }
\lyricsto "dirge" \new Lyrics { Whoops }
%\harmony %uncomment to include harmony
>>


That doesn't convince me.


It was poor advice, your use of \tag is correct in this situation.


Ideally, I want to produce different output from the same score
_without_ touching the contents. My idea (dream?) of using tags was
to eventually write a dollop of scheme that would be able to look at
the command line arguments and set \keepWithTag or \removeWithTag as
appropriate. However, the way that tags are implemented today isn't
powerful enough for what I want to do... they can only be used to  
filter
music expressions -- I'd like to be able to filter out markup,  
scores and

anything else in the input file. (Well, I did say 'dream'!).

At the moment I'm using a cobbled together solution partly based on  
tags,

and partly based on a perl preprocessor that does the filtering before
passing the input onto to Lilypond -- but pretty it ain't.


You can conditionnaly insert music using a music function.
For instance:

#(define (true-function . args) #t)
insertWhen =
#(define-music-function (parser location condition music) (true- 
function ly:music?)

   (if condition
   music
   (make-music 'Music)))

<<
  \new Staff { \new Voice = "dirge" { c''1 } }
  \lyricsto "dirge" \new Lyrics \lyricmode { Whoops }
  \insertWhen #(eqv? (ly:get-option 'part) 'harmony) \new Staff { a'1 }
>>

Then, when compiling your input file with -dpart=harmony option,
the staff is added.

You can also specialize \insertWhen, the following way:

insertWhenHarmony =
#(define-music-function (parser location music) (ly:music?)
   (if (eqv? (ly:get-option 'part) 'harmony)
   music
   (make-music 'Music)))

<<
  \new Staff { \new Voice = "dirge" { c''1 } }
  \lyricsto "dirge" \new Lyrics \lyricmode { Whoops }
  \insertWhenHarmony \new Staff { a'1 }
>>

nicolas



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


Changing notes based on fingerings

2008-07-16 Thread Eric Knapp
The next issue in trying to extend Lilypond for my instrument is that
I want to change things in the Note based on the text in the
Fingering. Here's an example, this displayMusic call results in the
make-music call that is after it. I have code working that gives me
the "2" from the FingeringEvent that I got from the very helpful Neil
Puttock. Now I need to be able to retrieve the NoteEvent that is in
the same list.

\displayMusic {a''2-2}

(make-music
  'SequentialMusic
  'elements
  (list (make-music
  'EventChord
  'elements
  (list (make-music
  'NoteEvent  <-- I want to make changes here.
  'duration
  (ly:make-duration 1 0 1 1)
  'pitch
  (ly:make-pitch 1 5 0))
(make-music
  'FingeringEvent
  'digit
  2)<  Based on this.


If I'm in a function that was delivered a Fingering grob, can I
navigate up to the containing list and then up to the SequentialMusic
object? Or is this not the direction that will give me a solution? The
other idea I have about this is to override the creation of all music
notes and if there is a Fingering object then rewrite the entire
make-music call. I don't know how to do that, either.

Thanks,

-Eric


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


Re: How to join plain + markup text in a single syllable?

2008-07-16 Thread Francisco Vila
Thank you, James and Roman, the concat solves the undesired space problem.

Now, if several words are in italics, I'm sure there is a better form
than to repeat \markup{\italic...} for each syllable. Do you know of
any?
-- 
Francisco Vila. Badajoz (Spain)
http://www.paconet.org


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


Re: How to join plain + markup text in a single syllable?

2008-07-16 Thread James E. Bailey


Am 16.07.2008 um 16:45 schrieb Francisco Vila:

Thank you, James and Roman, the concat solves the undesired space  
problem.


Now, if several words are in italics, I'm sure there is a better form
than to repeat \markup{\italic...} for each syllable. Do you know of
any?
--
Francisco Vila. Badajoz (Spain)
http://www.paconet.org


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


I use \override LyricText #'font-shape = #'italic


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


Re: How to join plain + markup text in a single syllable?

2008-07-16 Thread Francisco Vila
2008/7/16 James E. Bailey <[EMAIL PROTECTED]>:
> What you need here is a printer's mark, not an apostrophe, which is what the
> ' character on your keyboard is. On a macintosh, to get that character, you
> use shift+option=] and it creates the character ' as opposed to the ' which
> is just a hash mark.

I've found that in my 105-key pc keyboard this is achieved with AltGR+Shift+B
-- 
Francisco Vila. Badajoz (Spain)
http://www.paconet.org


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


Re: \tag can't follow \lyricsto

2008-07-16 Thread Valentin Villenave
2008/7/16 Nicolas Sceaux <[EMAIL PROTECTED]>:

> You can conditionnaly insert music using a music function.

Awesome! Can you (or Roman) write a LSR snippet with this great function?

Cheers,
Valentin


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


I love editor arguments:)

2008-07-16 Thread Patrick Horgan
I believe the truth is more along the lines of duckling imprinting--you 
know that ducklings imprint on whatever moves first and think that that 
thing, duck, dog or person, is mommy.   We do the same with whatever 
editor we learned well enough to work with first.  For me it was vi.  
I've learned emacs several times in my life and am able to use it 
effectively right after relearning it, but the whole time, I yearn for 
vi.  I don't make the mistake of saying vi is better, nor emacs or kate 
or whatever.  If it does the job, and you like it best, then it's the 
best for you.  (Actually vi is better ).


Patrick


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


GDP: NR 1.3 Expressive, first draft

2008-07-16 Thread Graham Percival
I'm happy to announce the first draft of NR 1.3 Expressive!
Thanks go to Patrick.  Please proofread this carefully; if you
find any mistakes, omissions, or anything that's unclear, please
post it here!

GDP website:
http://web.uvic.ca/~gperciva/

Cheers,
- Graham


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


Re: I love editor arguments:)

2008-07-16 Thread James E. Bailey


Am 16.07.2008 um 21:20 schrieb Patrick Horgan:

I believe the truth is more along the lines of duckling imprinting-- 
you know that ducklings imprint on whatever moves first and think  
that that thing, duck, dog or person, is mommy.   We do the same  
with whatever editor we learned well enough to work with first.  For  
me it was vi.  I've learned emacs several times in my life and am  
able to use it effectively right after relearning it, but the whole  
time, I yearn for vi.  I don't make the mistake of saying vi is  
better, nor emacs or kate or whatever.  If it does the job, and you  
like it best, then it's the best for you.  (Actually vi is better  
).


Patrick



I think any of these arguments are funny, I've had the pleasure to  
watch a couple. Honestly, the only reason I use an editor is for  
lilypond. In fact, until I was forced to use an editor because of the  
10.5 intel problem, I didn't even know what an editor was. I use nano.  
It gets the job done, and I don't have to learn an editor :)



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


New LilyPondTool version coming soon

2008-07-16 Thread Bertalan Fodor

Dear LilyPond users,

I have good news: a new LilyPondTool version is coming soon, it is under 
testing now.
If you think that some not so hard feature would be very important to be 
included, please let me know in private mail. I will then later 
summarize the suggestions and choose the one suggested by the most 
people (considering the effort needed). (I think things like automatic 
lilypond binary searching, LSR integration, so features that don't need 
too much work. Currently lyqi and rumor-like input is not in the scope, 
but on my backlist.)


New features already included:
- extended instant help: now the keyword is searched in the help index 
and the relevant page can be opened by one click

- Stewart Holmes' Bezier tool to tweak slurs
- reverse point-and-click that highlights the note at the cursor

I decided to postpone the new real Scheme based parsing, because it 
turned out to be too hard.


Cheers,

Bert


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


GDP: NR 1.5 Simultaneous, second draft

2008-07-16 Thread Graham Percival
I'm happy to announce the second public draft of NR 1.5
Simultaneous notes.  If you haven't already done so, please
proofread this section carefully -- we want the docs to be as good
as possible for 2.12.

GDP website:
http://web.uvic.ca/~gperciva/


The GDP website now contains a summary of the current status of
finished/draft/working/untouched sections.

Cheers,
- Graham


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


Shouldn't articulation '

2008-07-16 Thread George_


-- 
View this message in context: 
http://www.nabble.com/Shouldn%27t-articulation-%27-tp18501606p18501606.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


Shouldn't articulation 'stick' to note-heads?

2008-07-16 Thread George_

hi guys

I was wondering if there were a way to make articulation 'stick' to a
notehead, no matter where it is? I use 2.11.49 on XP, and I have a two-part
melody, the lower voice is to be played staccato, like so:

http://www.nabble.com/file/p18501666/1.jpg 

Except in the lily output, the staccato dots are (as shown) on the stem side
of the note-head. Is there a way to make these articulations go over the
notes? Or is this just a bug?

Thanks

George
-- 
View this message in context: 
http://www.nabble.com/Shouldn%27t-articulation-%27stick%27-to-note-heads--tp18501666p18501666.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: Shouldn't articulation 'stick' to note-heads?

2008-07-16 Thread James E. Bailey


Am 17.07.2008 um 07:10 schrieb George_:



hi guys

I was wondering if there were a way to make articulation 'stick' to a
notehead, no matter where it is? I use 2.11.49 on XP, and I have a  
two-part

melody, the lower voice is to be played staccato, like so:

http://www.nabble.com/file/p18501666/1.jpg

Except in the lily output, the staccato dots are (as shown) on the  
stem side
of the note-head. Is there a way to make these articulations go over  
the

notes? Or is this just a bug?

Thanks

George
--
View this message in context: 
http://www.nabble.com/Shouldn%27t-articulation-%27stick%27-to-note-heads--tp18501666p18501666.html
Sent from the Gnu - Lilypond - User mailing list archive at  
Nabble.com.


http://lilypond.org/doc/v2.10/Documentation/user/lilypond/Articulations#Articulations
shows how to force above or below notehead articulations. As far as I  
know, that section hasn't been rewritten yet for the 2.11 docs.



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


Re: Shouldn't articulation 'stick' to note-heads?

2008-07-16 Thread James E. Bailey


Am 17.07.2008 um 07:10 schrieb George_:



hi guys

I was wondering if there were a way to make articulation 'stick' to a
notehead, no matter where it is? I use 2.11.49 on XP, and I have a  
two-part

melody, the lower voice is to be played staccato, like so:

http://www.nabble.com/file/p18501666/1.jpg

Except in the lily output, the staccato dots are (as shown) on the  
stem side
of the note-head. Is there a way to make these articulations go over  
the

notes? Or is this just a bug?

Thanks

George
--
View this message in context: 
http://www.nabble.com/Shouldn%27t-articulation-%27stick%27-to-note-heads--tp18501666p18501666.html
Sent from the Gnu - Lilypond - User mailing list archive at  
Nabble.com.


http://lilypond.org/doc/v2.10/Documentation/user/lilypond/Articulations#Articulations
shows how to force above or below notehead articulations. As far as I  
know, that section hasn't been rewritten yet for the 2.11 docs.


Look at that, someone updated that section! Yay!


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