Re: is shapeSlur broken?

2012-05-10 Thread Thomas Morley
Hi David,

2012/5/11 David Nalesnik :

> I don't have 2.14.2 up to test, but this all should work there provided you
> add the # before the string?
>
> So:
> \shape #"Slur" #'( ...

I tested what's needed to make it work with 2.14.2 (therefor the
2.14.2-version-number in the file).
Well, you can boil down the main-function quite easily, but
`ly:input-warning' is not part of 2.14. Deleting the whole
warning-part would mean a considerable loss of functionality.

And I didn't think about an alternative for 2.14.2, hoping for 2.16 coming soon.

>
> Thanks so much!
>
> Best,
> David
>

You're welcome.


-Harm

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


Re: is shapeSlur broken?

2012-05-10 Thread David Nalesnik
Hi Harm,

On Thu, May 10, 2012 at 6:00 PM, Thomas Morley <
thomasmorle...@googlemail.com> wrote:

> 2012/5/11 Thomas Morley :
> > Hi David,
> >
> > I thought a while about your function.
> > I'd like to suggest some changes. In the attached file you can see:
> >
> > - Elimination of `function' as argument of shape-curve and introducing
> > it as local variable.
>

I like this!  I had thought of looking up the callback (as an alternative
to passing it in), but hadn't found a way to do it.  Nice!


> > - A new condition added in shape-curve at the siblings-variable:
> ly:spanner?
>

Right--otherwise overriding LaissezVibrerTie won't work.


> > - In the music-function I added a new variable to specify the grob.
>

Aha--I didn't realize you could drop the # in the latest versions.  I like
this too.  Of course, if you want to stick with shapeSlur (and its ilk) you
can define it like this:

shapeSlur =
#(define-music-function (parser location offsets) (list?)
  #{
\once \override Slur #'control-points = #(shape-curve offsets location)
  #})

>
> > These give the advantage to define only one music-function.
> > Of course there is need to specify which grob should be applied.
> >
> > But now it works for all curves:
> >
> > Slur
> > PhrasingSlur
> > Tie
> > RepeatTie
> > LaissezVibrerTie
> >
> > I didn't test it very widly, but what do you think?
>
>
I like it all.


>
> Oops, forgot to delete the wrong version-number..
> Please switch to \version "2.15.36" or higher.
>
>
I don't have 2.14.2 up to test, but this all should work there provided you
add the # before the string?

So:
\shape #"Slur" #'( ...

Thanks so much!

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


Re: is shapeSlur broken?

2012-05-10 Thread Thomas Morley
2012/5/11 Thomas Morley :
> Hi David,
>
> I thought a while about your function.
> I'd like to suggest some changes. In the attached file you can see:
>
> - Elimination of `function' as argument of shape-curve and introducing
> it as local variable.
> - A new condition added in shape-curve at the siblings-variable: ly:spanner?
> - In the music-function I added a new variable to specify the grob.
>
> These give the advantage to define only one music-function.
> Of course there is need to specify which grob should be applied.
>
> But now it works for all curves:
>
> Slur
> PhrasingSlur
> Tie
> RepeatTie
> LaissezVibrerTie
>
> I didn't test it very widly, but what do you think?
>
>
>
> Best,
>  Harm

Oops, forgot to delete the wrong version-number..
Please switch to \version "2.15.36" or higher.

-Harm

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


Re: is shapeSlur broken?

2012-05-10 Thread Thomas Morley
Hi David,

I thought a while about your function.
I'd like to suggest some changes. In the attached file you can see:

- Elimination of `function' as argument of shape-curve and introducing
it as local variable.
- A new condition added in shape-curve at the siblings-variable: ly:spanner?
- In the music-function I added a new variable to specify the grob.

These give the advantage to define only one music-function.
Of course there is need to specify which grob should be applied.

But now it works for all curves:

Slur
PhrasingSlur
Tie
RepeatTie
LaissezVibrerTie

I didn't test it very widly, but what do you think?



Best,
  Harm


shaping-curves03-rev.ly
Description: Binary data
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Adjustment to tablature output

2012-05-10 Thread Christopher Webster

I think it looks absolutely splendid.  Thank you all very much.

/Christopher/.


On 2012-05-10 16:11, Choan Gálvez wrote:


\new TabStaff
  \with
  {
tablatureFormat = #fret-letter-tablature-format
\override TabNoteHead #'whiteout = ##f
  }
  {
\override TabNoteHead #'font-shape = #'italic
\override TabNoteHead #'stencil = #(lambda (grob)
  (grob-interpret-markup grob (markup->string 
(ly:grob-property grob

'text
e' f' fis' g' gis' a' ais' b' c'' cis'' d'' dis'' e'' f'' 
fis'' g''

gis''
  }

(@Choan: is this what you have in mind?)


This looks very nice and it's _exactly_ what I had in mind :)

But that's my opinion, I'm not the OP -- Christopher Webster is.

Best.
--
Choan Gálvez
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Mediawiki

2012-05-10 Thread Federico Bruni

Il 09/05/2012 17:49, Lucas Gonze ha scritto:

Hi Lilypond-user,

I stumbled across a Mediawiki  plugin that enables music, among other
multimedia. Music would be written in Lilypond.

http://wikitex.org/



If you search in the archives, you'll find a lot of discussion about 
mediawiki extensions.
Any web service based on lilypond must deal with serious security 
problems (some are explained also in the Usage manual). This includes 
Wikitex, which doesn't seem to warn the users about these security 
problems... but you can find here some doubts about its security:

http://lists.gnu.org/archive/html/lilypond-user/2010-02/msg00674.html

There was also a specific extension for LilyPond:
http://www.mediawiki.org/wiki/Extension:LilyPond

It seems that it's unmaintained and it's been forked in another extension:
http://www.mediawiki.org/wiki/Extension:Score

Check it out.

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


Re: function that inserts a toplevel expression

2012-05-10 Thread David Kastrup
Jan-Peter Voigt  writes:

> Am 10.05.2012 um 19:02 schrieb David Kastrup :
>
>> Jan-Peter Voigt  writes:
>> 
>>> ... thanks to Davids remarkable parser refinements. (I was not amused
>>> in the first place, rewriting/updating my scores accordingly, but IMO
>>> these changes are a major step forward for lilypond!)
>> 
>> convert-ly should have provided rather good coverage of the changes.
>> The one thing that it would not deal with would have been removed layers
>> in music expressions (SequentialMusic and/or EventChord around
>> everything).
>> 
> of course ... I just didn't like the fact, that it was something
> "new". I was so comfortable with the way it used to work ... ;)

You are a greater man than I am.  I wasn't.

All the best

-- 
David Kastrup

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


Re: pngtopnm missing?

2012-05-10 Thread Jan Nieuwenhuizen
Phil Holmes writes:

> I'm sorry I still can't answer your exact question, but I can give some 
> pointers.  pngtopnm is a standard image file
> format converter on unix boxes, and so I guess Lily assumes it's there for 
> some of its operations, and it isn't on
> Windows.  Hence the error message. 

That may be a bug, possibly we should ship netpbm with the windows
binaries?

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: Clickable table of contents

2012-05-10 Thread Svetlana
Hi!

I have similar task of making a mostly notes and a few of text in my book and 
here is my solution.
1) Process lilypond files with eps backend (lilypond -dbackend=eps 
-dno-gs-load-fonts -dinclude-eps-fonts myfile.ly) - this gives pdfs (along with 
eps) for every SINGLE page of your scores.
2) use the following code to put generated pdfs to your latex file:
\addcontentsline{toc}{chapter}{The title}
\noindent \includegraphics[width=170mm]{myfile.pdf}

This approach saves all advantages vs lilypond-book and has some advantages vs 
pdfpages (I've used it before):
1) Page numbering is done in latex, no need to alter them in each lilypond file.
2) You can include not so full page of notes and add some text after it in 
latex, not in lilypond - so you win much better text formatting options

One big disadvantage of it - I can't use ragged-right scores in my book, they 
all have different widths.

Best wishes, Svetlana.



07.05.2012, 21:43, "Álex R. Mosteo" :
> Federico Bruni wrote:
>
>>  Il 04/05/2012 16:57, Álex R. Mosteo ha scritto:
>>>  I would also be interested on how to get automatically a ToC entry for
>>>  each song, I'm currently doing it like this:
>>>
>>>  \tocItem \markup "Author - Song"
>>>  \bookpart {
>>> \header { title="Song" subtitle="Author" }
>>>
>>>  which causes some nagging duplication. But this is secondary anyway.
>>  Now I see why your title is not clickable: you must put \tocItem inside
>>  \bookpart:
>>
>>  markuplist \table-of-contents
>>  \pageBreak
>>
>>  \bookpart {
>> \header { title="Song" subtitle="Author" }
>> \tocItem \markup "Author - Song"
>> \score { c'1 }
>>  }
>
> Thank you all for your answers and warnings. Indeed that was simple. That's
> enough for my present purposes, even if I have to write two times the titles
> (that was a minor nag).
>
> This week-end I had settled on having a plain .tex file, and including the
> PDF for each song (generated from separate .ly files). The package pdfpages
> does it this way:
>
> \includepdf[pages={-},addtotoc={1,section,1,Artist - Song,somelabel}]{file}
>
> It's a bit more cumbersome (and still requires to duplicate the info). I'm
> too newbie to know, but maybe there are cases with reasons to go fully LaTeX
> and then this way would work (not that this is specific to lilypond,
> anyway).
>
> BTW, lilypond-book barfed on my .lytex when including my .ly (which compiled
> fine with lilypond), but not when using inline snippets. I guess that is
> necessarily a bug in lilypond-book?
>
> Cheers,
> Álex.
>
>>  I don't know how to get automatically the ToC entry from the header.
>>  You probably have to fiddle with \fromproperty #'header:title
>>
>>  If you have a look at ly/toc-init.ly you see:
>>
>>  \paper {
>> tocItemMarkup = \markup \fill-line {
>>   \fromproperty #'toc:text
>>   \fromproperty #'toc:page
>> }
>>  }
>>
>>  You should find a way to tell lilypond to replace the content of
>>  #'toc:text This content is defined inside \tocitem \markup { here }
>>
>>  But this doesn't print anything:
>>
>>  \markuplist \table-of-contents
>>  \pageBreak
>>
>>  \bookpart {
>> \header { title="Song" subtitle="Author" }
>> \tocItem \markup \fill-line {
>>   \fromproperty #'header:title
>>   \fromproperty #'header:subtitle
>> }
>> \score { c'1 }
>>  }
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user

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


Re: function that inserts a toplevel expression

2012-05-10 Thread Jan-Peter Voigt
Hi David,



Am 10.05.2012 um 19:02 schrieb David Kastrup :

> Jan-Peter Voigt  writes:
> 
>> ... thanks to Davids remarkable parser refinements. (I was not amused
>> in the first place, rewriting/updating my scores accordingly, but IMO
>> these changes are a major step forward for lilypond!)
> 
> convert-ly should have provided rather good coverage of the changes.
> The one thing that it would not deal with would have been removed layers
> in music expressions (SequentialMusic and/or EventChord around
> everything).
> 
of course ... I just didn't like the fact, that it was something "new". I was 
so comfortable with the way it used to work ... ;) so saying this is just 
evidence of my own ignorance or whatever you might call it. It is no big deal 
to call convert-ly - but one has to do it and look at the result to understand 
what happened ... I did that and now really appreciate the changes you made!

Cheers, Jan-Peter
> -- 
> David Kastrup
> 
> 
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user

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


Re: changing lyric font

2012-05-10 Thread Svetlana
Hi!

Just use \override LyricText #'font-name = #"Your font" inside \lyricmode 
before your lyrics.
Here is the link to some documentation with examples, scroll down  to "Changing 
stanza fonts": 
http://lilypond.org/doc/v2.12/input/lsr/lilypond-snippets/Vocal-music

Best wishes!
Svetlana.

09.05.2012, 18:40, "Dr. med. Kai Lautenschlger" :
> Hi Everybody,
>
> is there a possibility to change the lyric font? I would like to add lyrics 
> in hebrew and found out, how to include utf-8 in the lyrics. For better 
> readability I need a hebrew font other then the standard. For \markup texts 
> that works just fine. But in the \lyricmode it doesn't. Can anyone help me on 
> that?
>
> Using Version 2.15.38 with no problems so far.
>
> thanks in advance!
>
> Kai
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user

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


Re: function that inserts a toplevel expression

2012-05-10 Thread David Kastrup
Jan-Peter Voigt  writes:

> ... thanks to Davids remarkable parser refinements. (I was not amused
> in the first place, rewriting/updating my scores accordingly, but IMO
> these changes are a major step forward for lilypond!)

convert-ly should have provided rather good coverage of the changes.
The one thing that it would not deal with would have been removed layers
in music expressions (SequentialMusic and/or EventChord around
everything).

-- 
David Kastrup


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


RE: pngtopnm missing?

2012-05-10 Thread Chris Crossen
Thanks, Phil. I'll give that a try.

 

From: Phil Holmes [mailto:m...@philholmes.net] 
Sent: Thursday, May 10, 2012 9:04
To: Chris Crossen; lilypond-user@gnu.org
Subject: Re: pngtopnm missing?

 

I'm sorry I still can't answer your exact question, but I can give some
pointers.  pngtopnm is a standard image file format converter on unix boxes,
and so I guess Lily assumes it's there for some of its operations, and it
isn't on Windows.  Hence the error message.  

 

In my experiments, using --png with -dresolution=nnn gives exactly the same
output as -dresolution=nnn/3 -danti-alias-factor=3 - so it appears not worth
using the anti alias factor at all.  Accepting that you will never get an
image file as good looking as PDF, since PDF scales, then something like
lilypond --png -dresolution=900 should give you a better image than you
need.



Phil Holmes

 

 

- Original Message - 

From: Chris Crossen   

To: 'Phil Holmes'   ; lilypond-user@gnu.org 

Sent: Wednesday, May 09, 2012 9:54 PM

Subject: RE: pngtopnm missing?

 

That's what I tried first. It works, but the .PNG files don't look anywhere
near as good as the PDFs. I was trying to get a good-looking .PNG file with
the -danti-alias-factor=2 parameter.

 

From: Phil Holmes [mailto:m...@philholmes.net] 
Sent: Wednesday, May 09, 2012 0:46
To: Chris Crossen; lilypond-user@gnu.org
Subject: Re: pngtopnm missing?

 

I don't know why this happens, but you can cure it simply by replacing all
the other options you're using with -fpng:

 

lilypond -fpng test.ly


--
Phil Holmes

 

 

- Original Message - 

From: Chris Crossen   

To: lilypond-user@gnu.org 

Sent: Tuesday, May 08, 2012 4:30 AM

Subject: pngtopnm missing?

 

I am trying to create a .png file from a LilyPond score. I am running
Windows XP. I'm getting an error about pngtopnm. 

 

Is it part of LilyPond?  Should I have it as part of the install?

 

Below is my run output.

 

Thank you,

Chris Crossen

 

C:\ScoreWork\data>lilypond -dbackend=eps -dno-gs-load-fonts
-dinclude-eps-fonts -dresolution=96 -danti-alias-factor=2 --png test.ly

GNU LilyPond 2.14.2

Processing `test.ly'

Parsing...

Interpreting music... [8]

Preprocessing graphical objects...

Finding the ideal number of pages...

Fitting music on 1 page...

Drawing systems...

Layout output to `test.eps'...

Converting to PNG...'pngtopnm' is not recognized as an internal or external
command,

operable program or batch file.

GS exited with status: 255   


  _  


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

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


Re: pngtopnm missing?

2012-05-10 Thread Phil Holmes
I'm sorry I still can't answer your exact question, but I can give some 
pointers.  pngtopnm is a standard image file format converter on unix boxes, 
and so I guess Lily assumes it's there for some of its operations, and it isn't 
on Windows.  Hence the error message.  

In my experiments, using --png with -dresolution=nnn gives exactly the same 
output as -dresolution=nnn/3 -danti-alias-factor=3 - so it appears not worth 
using the anti alias factor at all.  Accepting that you will never get an image 
file as good looking as PDF, since PDF scales, then something like lilypond 
--png -dresolution=900 should give you a better image than you need.


Phil Holmes


  - Original Message - 
  From: Chris Crossen 
  To: 'Phil Holmes' ; lilypond-user@gnu.org 
  Sent: Wednesday, May 09, 2012 9:54 PM
  Subject: RE: pngtopnm missing?


  That's what I tried first. It works, but the .PNG files don't look anywhere 
near as good as the PDFs. I was trying to get a good-looking .PNG file with the 
-danti-alias-factor=2 parameter.

   

  From: Phil Holmes [mailto:m...@philholmes.net] 
  Sent: Wednesday, May 09, 2012 0:46
  To: Chris Crossen; lilypond-user@gnu.org
  Subject: Re: pngtopnm missing?

   

  I don't know why this happens, but you can cure it simply by replacing all 
the other options you're using with -fpng:

   

  lilypond -fpng test.ly


  --
  Phil Holmes

   

   

- Original Message - 

From: Chris Crossen 

To: lilypond-user@gnu.org 

Sent: Tuesday, May 08, 2012 4:30 AM

Subject: pngtopnm missing?

 

I am trying to create a .png file from a LilyPond score. I am running 
Windows XP. I'm getting an error about pngtopnm. 

 

Is it part of LilyPond?  Should I have it as part of the install?

 

Below is my run output.

 

Thank you,

Chris Crossen

 

C:\ScoreWork\data>lilypond -dbackend=eps -dno-gs-load-fonts 
-dinclude-eps-fonts -dresolution=96 -danti-alias-factor=2 --png test.ly

GNU LilyPond 2.14.2

Processing `test.ly'

Parsing...

Interpreting music... [8]

Preprocessing graphical objects...

Finding the ideal number of pages...

Fitting music on 1 page...

Drawing systems...

Layout output to `test.eps'...

Converting to PNG...'pngtopnm' is not recognized as an internal or external 
command,

operable program or batch file.

GS exited with status: 255   




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


Mediawiki

2012-05-10 Thread Lucas Gonze
Hi Lilypond-user,

I stumbled across a Mediawiki  plugin that enables music, among other
multimedia. Music would be written in Lilypond.

http://wikitex.org/

Quote from there:

After you place special tags in your wiki article, WikiTeX goes to
work; in a nutshell,


\relative c' {
e16-.->a(b gis)a-.->c(d b)c-.->e(f dis)e-.->a(b a)
gis(b e)e,(gis b)b,(e gis)gis,(b e)e,(gis? b e)
}


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


Re: Too complicated and time consuming ...

2012-05-10 Thread ArnoldTheresius


joannesmith wrote:
> 
> Hello to all.
> We are in the process of making our own hymn books (we use shape notes).
> We have about 450 hymns that are in paper format right now (copied,
> pasted, written on, sloppy, taped, marked, etc.) and I have the job of
> making them all look nice. A friend suggested lilypond. I appreciate all
> that lilypond can do, but I find that it is taking a painful amount of
> time 
> ...
> So my question ... maybe there is another program that will better suite
> my needs?? Or maybe there is someone here that is really good at entering
> a variety of hymns into lilypond and would be willing to help me every now
> and then??? ...
> 

Yes, my experience is, the syntax of lilypond is some ugly to new users. But
thats the same with every programming language. And lilypond is more like a
programming language (compiler), and absolutely not a
What-You-See-Is-What-You-Get interactive application with graphic user
interface.
At the beginning I thought to use one of these GUI programms which can
export a LY file. But the ones I tried were not compatible with my old
operating system version I used at this time. So I cannot recommend one,
either.
Today I expect for retyping a page of a full size orchestral part (which is
larger than DIN A4 resp. LETTER sheetsize) approx. one and a half hour,
including visual check and obtaining two differently transposed reprints.
Writing by hand would need the same time, but then I would only have on
transposition of it.

Today I like lilypond for several features:
+ associativity (one part, one place to put corrections in, corrected where
ever it is used)
+ stabiliy
+ expandability (e.g. \prall with an alteration above, which is
automatically adapted when you transpose it, e. g. form A-clarinet to
Bflat-clarinet)
+ good (very good) readabily of the result
+ very littly (often none) adjustments required to recieve a good readable
print

Well, I know, entering the music on the computer keyboard is some time
consuming. One of the projects I'm working at the moment is a collection of
22 dances, 16 instrument parts existing (available), one additional
instrument part has to be re-created when the score of the single piece is
complete, many alternate parts (transpositions, other clefs) have to be
generated. Only one quarter is done until now. I expect to complete in
within a total period of one or two years, because other tasks with higher
priority interrupt my work, and I failed to motivate other people to (try
to) enter the voices they need transposed into a lilypond file thus I would
only need to do correction, final touches, and what they marked "I don't
know how to do this, there".

Sorry, but I wont help you typing your songs.
-- 
View this message in context: 
http://old.nabble.com/Too-complicated-and-time-consuming-...-tp33763582p33763662.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.


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


changing lyric font

2012-05-10 Thread Dr. med. Kai Lautenschläger
Hi Everybody,

is there a possibility to change the lyric font? I would like to add lyrics in 
hebrew and found out, how to include utf-8 in the lyrics. For better 
readability I need a hebrew font other then the standard. For \markup texts 
that works just fine. But in the \lyricmode it doesn't. Can anyone help me on 
that?

Using Version 2.15.38 with no problems so far.

thanks in advance!

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


changing lyrics font

2012-05-10 Thread Kai
Hi Everybody,

is there a possibility to change the lyric font? I would like to add 
lyrics in hebrew and found out, how to 
include utf-8 in the lyrics. For better readability I need a hebrew 
font other then the standard. For 
\markup texts that works just fine. But in the \lyricmode it doesn't. 
Can anyone help me on that?

Using Version 2.15.38 with no problems so far.

thanks in advance!

Kai


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


Re: Too complicated and time consuming ...

2012-05-10 Thread Urs Liska

Am 10.05.2012 16:36, schrieb joannesmith:

Thank you all for your private emails ... they have been a great
encouragement to me. I will probably end up sticking with Lilypond for all
the reasons you mentioned. It really does seem like the best option ... I
just need to hang in there long enough to get a good grip on it and be
patient with myself.

A little more specifics. I first tried to use lilypond on my Linux/Ubuntu
system and could not figure it out 'to save my life.' I am still learning
Linux, but that's a whole other issue. I ended up loading lilypond on to my
Windows system and then, through some internet searching, got Frescobaldi
and it seems they work together.
LilyPond is a command line program. If you call it it will read the file 
it is given and then produces the engraved output from it.
In principle you can use any text editor to produce the text files that 
LilyPond uses to do its magic on.
But there are editors who are better suited than others. The first thing 
is syntax highlighting. And the second one are more specific tools that 
are specialised on LilyPond and that can effectively aid you in working 
with LilyPond input files. Frescobaldi is one of them.

You may want to read http://lilypond.org/easier-editing.html.


I'm ignorant as to why really but I do know
how to do html and it seems kind of like the same concept in a way? I have a
basic template that I am working off of and re-use it each time I start a
new one. If I have a hymn that seems like another one, I'll use that other
song as a template. Something I found that helps is if I keep notes of songs
that are a bit unique. And then if I run into a difficult song, I can look
at my notes and see if I've had that 'problem' before. Copying and pasting
is good.

This is the usual way you start with.
And it's exactly this what you will love with LilyPond: it will make it 
possible to overcome this situation.
In an ideal world you'd have a framework of helper and score template 
files, and you'd chose for any given song which one to use and then the 
only thing you still have to enter is the plain music .
In an ordinary world it usually isn't as nice, but with 450 pieces you 
have the chance to really go into such a direction.

Some have offered to help with questions, encouraged me to post questions
here, and also pointed me to a forum that is for lilypond users who use
shape notes. THANK YOU!!  These are all such excellent resources and I'm
sure if I just keep pressing on I'll get better and better.
Maybe you could give some examples or explanations about what is 
characteristic, usual, special or whatever about your hynms. Especially 
interesting (and good for you to thoroughly think about in advance) are 
aspects that are common to most or even all of your pieces.
You will surely get some hints about what you should take care about or 
what better to avoid.


Thank you again ... I'm so glad I posted this cry for help here!



and yes, the replies (at least the numerous ones I saw) _are_ public ;-)

Best
Urs


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


Re: Too complicated and time consuming ...

2012-05-10 Thread joannesmith

Ok, one more thing ... most of the responses were probably not private
emails??!! I'm still learning this forum as well. Thanks for your patience!


joannesmith wrote:
> 
> Thank you all for your private emails ... they have been a great
> encouragement to me. 
> 

-- 
View this message in context: 
http://old.nabble.com/Too-complicated-and-time-consuming-...-tp33763582p33763681.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.


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


Re: Too complicated and time consuming ...

2012-05-10 Thread joannesmith

Thank you all for your private emails ... they have been a great
encouragement to me. I will probably end up sticking with Lilypond for all
the reasons you mentioned. It really does seem like the best option ... I
just need to hang in there long enough to get a good grip on it and be
patient with myself. 

A little more specifics. I first tried to use lilypond on my Linux/Ubuntu
system and could not figure it out 'to save my life.' I am still learning
Linux, but that's a whole other issue. I ended up loading lilypond on to my
Windows system and then, through some internet searching, got Frescobaldi
and it seems they work together. I'm ignorant as to why really but I do know
how to do html and it seems kind of like the same concept in a way? I have a
basic template that I am working off of and re-use it each time I start a
new one. If I have a hymn that seems like another one, I'll use that other
song as a template. Something I found that helps is if I keep notes of songs
that are a bit unique. And then if I run into a difficult song, I can look
at my notes and see if I've had that 'problem' before. Copying and pasting
is good.

Some have offered to help with questions, encouraged me to post questions
here, and also pointed me to a forum that is for lilypond users who use
shape notes. THANK YOU!!  These are all such excellent resources and I'm
sure if I just keep pressing on I'll get better and better.

Thank you again ... I'm so glad I posted this cry for help here!


-- 
View this message in context: 
http://old.nabble.com/Too-complicated-and-time-consuming-...-tp33763582p33763679.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.


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


Re: Adjustment to tablature output

2012-05-10 Thread Christopher Webster



This looks very nice and it's _exactly_ what I had in mind :)

But that's my opinion, I'm not the OP -- Christopher Webster is.

Best.


... and said Christopher Webster is at work just now, and trying to 
concentrate reasonably conscientiously on it!  But I promise to try this 
when I'm home later and let you know what I think.  However, as I 
already said elsewhere, I'm not an expert in tablature, and I'm 
satisfied enough with the solution I already found.  So if Choan is 
happy with this, I guess I'll be more than happy.


Many thanks

/Christopher/.

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


Re: Adjustment to tablature output

2012-05-10 Thread David Nalesnik
Hi Choan,


> This looks very nice and it's _exactly_ what I had in mind :)
>

Glad to hear it!


>
> But that's my opinion, I'm not the OP -- Christopher Webster is.
>

Oops--seems I got lost...

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


Re: Adjustment to tablature output

2012-05-10 Thread Choan Gálvez

Hi,

On 5/10/12 14:33 , David Nalesnik wrote:

Hi Carl,

I'm pretty sure he wants to use the *baseline* of the characters to
align
relative to the staff line.


Ah, OK.  Looking at the examples he's provided I see that that's exactly
what he wants.

So you can't use tab-note-head::print, since
it centers the *total extent* of the characters.

You need to find the character lookup from tab-note-head::print, and use
the character lookup to get the markup to be displayed, and offset that
from the staff line.  You'll have to do all the calculations to get
to the
right string, I think.


I hadn't thought to look at the markup for the text.  Doing that I see
that it's a vertically centered column.  So using your tips, I get the
following which I think is a step in the right direction:

\new TabStaff
  \with
  {
tablatureFormat = #fret-letter-tablature-format
\override TabNoteHead #'whiteout = ##f
  }
  {
\override TabNoteHead #'font-shape = #'italic
\override TabNoteHead #'stencil = #(lambda (grob)
  (grob-interpret-markup grob (markup->string (ly:grob-property grob
'text
e' f' fis' g' gis' a' ais' b' c'' cis'' d'' dis'' e'' f'' fis'' g''
gis''
  }

(@Choan: is this what you have in mind?)


This looks very nice and it's _exactly_ what I had in mind :)

But that's my opinion, I'm not the OP -- Christopher Webster is.

Best.
--
Choan Gálvez

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


Re: help needed for new church hymnbook / hulp gevraagd voor nieuw liedboek

2012-05-10 Thread Dossy Shiobara
On 5/10/12 5:58 AM, Wilbert Berendsen wrote:
> The music engraving is done using LilyPond.

What format is the source material in?  Hand-written scores?  How will
this material be provided to those who are selected to join the
engraving team?

-- 
Dossy Shiobara |  "He realized the fastest way to change
do...@panoptic.com |   is to laugh at your own folly -- then you
http://panoptic.com/   |   can let go and quickly move on." (p. 70) 
  * WordPress * jQuery * MySQL * Security * Business Continuity *


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


Re: function that inserts a toplevel expression

2012-05-10 Thread Urs Liska

Hello Jan-Peter,

thank you for the ideas, that I have partly understood.

Am 10.05.2012 13:35, schrieb Jan-Peter Voigt:

Hello Urs,

On 10.05.2012 12:40, Urs Liska wrote:

Hi David,

thank you for the reply

Am 10.05.2012 12:05, schrieb David Kastrup:

Urs Liska  writes:


So now the question:
How can I write a function that produces a toplevel expression?

No such thing.

:-(
an _ugly_ way is to produce a string and then use 
#(ly:parser-include-string parser topLevelString)
This snip can then be included in a music- or scheme-function to be 
used in lily-syntax. There are cases, where I use this construct, but 
I try to avoid it.

OK, I don't really understand it, but the cleaner

\layout { \debugCurvesOn }

is perfectly acceptable.

...

I wanted to be able to write

\liedScore "Stimme" "Klavier"
or
\liedScore "Voice" "Piano"
and get back the respective \score block with the parameters 
substituted.


you can write
liedScore = \score { ... }
and you can write
liedScore = #(define-scheme-function (parser layout ...)(...)
#{
\score {
...
}
#})

... thanks to Davids remarkable parser refinements. (I was not amused 
in the first place, rewriting/updating my scores accordingly, but IMO 
these changes are a major step forward for lilypond!)


If you reference this, it looks all the same
\liedScore /optional parms/
So this is what I came up with. This is a minimal example of how it 
could work:

% inside included (library) file:
liedScore = \score {
  \new Staff {
\set Staff.instrumentName = \instName
\music
  }
}

music = \relative c' { c4 e g b } % Defined in another (piece specific) 
included file
instName = "Test" % already defined with default value in the library, 
so I don't _have_ to write this

\score { \liedScore }


But from your answers to the other part of the question I now know 
that this isn't possible.
If liedScore is a music-function (returning void), it can be placed 
anywhere. This function can do anything possible in scheme: It can add 
scores or markups to the current stream:

--snip--

fun = #(define-music-function (parser location mus)(ly:music?)

(add-score parser (list #{ \markup { Hello World } #}))

(add-score parser #{ \score { $mus } #})

(make-music 'SequentialMusic 'void #t))

\fun \relative c' { c4 e g b }

--snip--

Now you can put anything in your function, to create the score.
Unfortunately this doesn't seem to work for me. I don't want to pass the 
music as parameter but one or more strings containing the instrument 
names of the staves.


But thinking of it the above solution is probably sufficient. I can 
define default values in the library and override them in the master 
file if necessary.




Probably I'll look for a solution through defining a variable and 
then including the file with the \score definition.
For the project at hand it's not necessary because I can have the 
score block be hardcoded. But I want to distill a more generic 
library/framework for use after this project.
Using lilypond is handcraft and the artist often wishes to have his 
own unique tool ;-)


I also use my own functions:
http://www.xn--schne-noten-tfb.de/?tabs=3,1
http://www.xn--schne-noten-tfb.de/lalily.tgz
It is poorly to not documented, but if you are interested, I can give 
you more information.

I'll look into it later
Best
Urs


Cheers, Jan-Peter



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


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


Re: Adjustment to tablature output

2012-05-10 Thread David Nalesnik
Hi Carl,

I'm pretty sure he wants to use the *baseline* of the characters to align
> relative to the staff line.


Ah, OK.  Looking at the examples he's provided I see that that's exactly
what he wants.


> So you can't use tab-note-head::print, since
> it centers the *total extent* of the characters.
>
> You need to find the character lookup from tab-note-head::print, and use
> the character lookup to get the markup to be displayed, and offset that
> from the staff line.  You'll have to do all the calculations to get to the
> right string, I think.
>

I hadn't thought to look at the markup for the text.  Doing that I see that
it's a vertically centered column.  So using your tips, I get the following
which I think is a step in the right direction:

\new TabStaff
 \with
 {
   tablatureFormat = #fret-letter-tablature-format
   \override TabNoteHead #'whiteout = ##f
 }
 {
   \override TabNoteHead #'font-shape = #'italic
   \override TabNoteHead #'stencil = #(lambda (grob)
 (grob-interpret-markup grob (markup->string (ly:grob-property grob
'text
   e' f' fis' g' gis' a' ais' b' c'' cis'' d'' dis'' e'' f'' fis'' g'' gis''
 }

(@Choan: is this what you have in mind?)

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


Re: function that inserts a toplevel expression

2012-05-10 Thread Jan-Peter Voigt

Hello Urs,

On 10.05.2012 12:40, Urs Liska wrote:

Hi David,

thank you for the reply

Am 10.05.2012 12:05, schrieb David Kastrup:

Urs Liska  writes:


So now the question:
How can I write a function that produces a toplevel expression?

No such thing.

:-(
an _ugly_ way is to produce a string and then use 
#(ly:parser-include-string parser topLevelString)
This snip can then be included in a music- or scheme-function to be used 
in lily-syntax. There are cases, where I use this construct, but I try 
to avoid it.



...

OK, instead of

\debugCurvesOn

I now have to insert

\layout { \debutCurvesOn }

in my main file.
It is not perfectly what I had hoped for, but it's fine nevertheless 
(definitely better than the current solution).

So we may consider this as solved.

If you want to turn this into a function, you use define-scheme-function
and construct the return value using #{ \layout { ... } #}.

Not necessary anymore. But I think I see now better how this works.



Furthermore I will later want to write functions for the \score block,
and I will want to pass some parameters in there - which doesn't work
with include files.

Not clear to me what you want.


I wanted to be able to write

\liedScore "Stimme" "Klavier"
or
\liedScore "Voice" "Piano"
and get back the respective \score block with the parameters substituted.

you can write
liedScore = \score { ... }
and you can write
liedScore = #(define-scheme-function (parser layout ...)(...)
#{
\score {
...
}
#})

... thanks to Davids remarkable parser refinements. (I was not amused in 
the first place, rewriting/updating my scores accordingly, but IMO these 
changes are a major step forward for lilypond!)


If you reference this, it looks all the same
\liedScore /optional parms/

But from your answers to the other part of the question I now know 
that this isn't possible.
If liedScore is a music-function (returning void), it can be placed 
anywhere. This function can do anything possible in scheme: It can add 
scores or markups to the current stream:

--snip--

fun = #(define-music-function (parser location mus)(ly:music?)

(add-score parser (list #{ \markup { Hello World } #}))

(add-score parser #{ \score { $mus } #})

(make-music 'SequentialMusic 'void #t))

\fun \relative c' { c4 e g b }

--snip--

Now you can put anything in your function, to create the score.

Probably I'll look for a solution through defining a variable and then 
including the file with the \score definition.
For the project at hand it's not necessary because I can have the 
score block be hardcoded. But I want to distill a more generic 
library/framework for use after this project.
Using lilypond is handcraft and the artist often wishes to have his own 
unique tool ;-)


I also use my own functions:
http://www.xn--schne-noten-tfb.de/?tabs=3,1
http://www.xn--schne-noten-tfb.de/lalily.tgz
It is poorly to not documented, but if you are interested, I can give 
you more information.


Cheers, Jan-Peter

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


Re: function that inserts a toplevel expression

2012-05-10 Thread David Kastrup
Urs Liska  writes:

> I wanted to be able to write
>
> \liedScore "Stimme" "Klavier"
> or
> \liedScore "Voice" "Piano"
> and get back the respective \score block with the parameters substituted.
> But from your answers to the other part of the question I now know
> that this isn't possible.

You can perfectly well put score blocks into variables.  score
_functions_ I can't tell off-hand.

-- 
David Kastrup


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


Re: [ANN] Schumann - Album for the Young. Version 1. (in French or German)

2012-05-10 Thread Phil Hézaine

Le 09/05/2012 19:44, Phil Hézaine a écrit :

Hi all,

This publication comes in 2 forms:

a version with FINGERING

a version without FINGERING

so the pianists, whichever they are students or professors, will use it
at their convenience, at least let's hope so.

You should also be noted that this publication is currently available
(09/May/2012) in 2 languages:

in French

in German

A complete edition in another language can be easily seen if you know
translate yourself the French or German language. If you are interested
or want to learn more, write me. I'll address you then a list already
easy to translate expressions.

The Album for the Youth of Robert Schumann is published under the terms
of the free Art license, see:

http://www.artlibre.org/licence/lal/ (fr, en, de, es, pt, it)


The Lilypond source + midi into the pdfs are in tar.bz2 format. Problems
with unpacking of this format (on Windows or Mac), you will find them in
zip format on the site.

Download at the following address:

http://superbonus.project.free.fr/spip.php?article50

Be happy.
Phil.


Hi,

An UPDATE of the German translation written in an updated spelling is 
available. (Thanks to Rainer Henkel)


By the way I forgot to disable the point-and-click option when 
compiling. Now all pdfs are really, really lighter (around ten times 
more). Please, update.

Phil.

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


Re: function that inserts a toplevel expression

2012-05-10 Thread Urs Liska

Hi David,

thank you for the reply

Am 10.05.2012 12:05, schrieb David Kastrup:

Urs Liska  writes:


So now the question:
How can I write a function that produces a toplevel expression?

No such thing.

:-(

I want to be able to write:

\debugCurvesOn

or

#(debug-curves-on)

(or something similar) which should then expand to

\layout {
   \context {
 \Score
 \override Slur #'stencil = #(display-control-points)
 \override PhrasingSlur #'stencil = #(display-control-points)
\override Tie #'stencil = #(display-control-points) }
}

(you see where this is going? ;-) )

debugCurvesOn = \layout {
\context {
  \Score
  \override Slur #'stencil = #(display-control-points)
  \override PhrasingSlur #'stencil = #(display-control-points)
  \override Tie #'stencil = #(display-control-points) }
}

That created a layout definition (more accurately: an output definition
suitable for use in layouts).  Which can be used in \layout:

\layout { \debugCurvesOn  [Other stuff ...] }

OK, instead of

\debugCurvesOn

I now have to insert

\layout { \debutCurvesOn }

in my main file.
It is not perfectly what I had hoped for, but it's fine nevertheless 
(definitely better than the current solution).

So we may consider this as solved.

If you want to turn this into a function, you use define-scheme-function
and construct the return value using #{ \layout { ... } #}.

Not necessary anymore. But I think I see now better how this works.



Furthermore I will later want to write functions for the \score block,
and I will want to pass some parameters in there - which doesn't work
with include files.

Not clear to me what you want.


I wanted to be able to write

\liedScore "Stimme" "Klavier"
or
\liedScore "Voice" "Piano"
and get back the respective \score block with the parameters substituted.
But from your answers to the other part of the question I now know that 
this isn't possible.


Probably I'll look for a solution through defining a variable and then 
including the file with the \score definition.
For the project at hand it's not necessary because I can have the score 
block be hardcoded. But I want to distill a more generic 
library/framework for use after this project.


Thanks again
Urs

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


Re: function that inserts a toplevel expression

2012-05-10 Thread David Kastrup
Urs Liska  writes:

> So now the question:
> How can I write a function that produces a toplevel expression?

No such thing.

> I want to be able to write:
>
> \debugCurvesOn
>
> or
>
> #(debug-curves-on)
>
> (or something similar) which should then expand to
>
> \layout {
>   \context {
> \Score
> \override Slur #'stencil = #(display-control-points)
> \override PhrasingSlur #'stencil = #(display-control-points)
> \override Tie #'stencil = #(display-control-points) }
> }
>
> (you see where this is going? ;-) )

debugCurvesOn = \layout {
   \context {
 \Score
 \override Slur #'stencil = #(display-control-points)
 \override PhrasingSlur #'stencil = #(display-control-points)
 \override Tie #'stencil = #(display-control-points) }
}

That created a layout definition (more accurately: an output definition
suitable for use in layouts).  Which can be used in \layout:

\layout { \debugCurvesOn  [Other stuff ...] }

If you want to turn this into a function, you use define-scheme-function
and construct the return value using #{ \layout { ... } #}.

> Furthermore I will later want to write functions for the \score block,
> and I will want to pass some parameters in there - which doesn't work
> with include files.

Not clear to me what you want.

-- 
David Kastrup


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


help needed for new church hymnbook / hulp gevraagd voor nieuw liedboek

2012-05-10 Thread Wilbert Berendsen
(Nederlandse tekst hieronder)

Dear LilyPond-users,

We (a conglomerate of three Dutch publishers) are in the process
of creating a new Dutch church hymnary ("Liedboek"), containing roughly
1100 entities (songs/psalms/texts/etc).

The music engraving is done using LilyPond.

We are looking for 3 or 4 experienced LilyPond engravers who can help
us with entering the LilyPond music source. This encompasses a
single-voice congregation book layout, but also choir and organ
editions. We have templates easing the input.

If we can find 4 people extending our current engraving team, on
average 20 entities per month per engraver are to be engraved each month
from now to september 1st, 2012.

The work is paid for, on a per-entity basis. If you would like to help
us, please let me know via private mail.

With thanks in advance, and best regards,
Wilbert Berendsen (technical leader engraving team)

Dutch text follows:

Beste LilyPond-gebruikers,

Wij zijn voor het zetwerk van een nieuwe Nederlandstalige
kerkliedbundel op zoek naar uitbreiding van ons muziekzetters-team.
We zoeken 3 of 4 ervaren Lilypond-zetters die ons kunnen helpen bij
het invoeren van muziek in LilyPond. Het gaat in totaal om ongeveer
1.100 liederen, waarvan een deel al is ingevoerd. Voor elk lied wordt
een eenstemmige weergave, een meerstemmige koorzetting en een
instrumentale begeleiding (piano of orgel) gemaakt.

Er zijn sjablonen ontwikkeld die zorgen voor een consistente lay-out.

Voor dit werk is een vergoeding per afgewerkt lied beschikbaar. Bij
een uitbreiding van ons team met 4 mensen zullen er vanaf nu tot 1
september ongeveer 20 liederen per maand per medewerker moeten worden
ingevoerd.

Als u belangstelling heeft, wilt u dan reageren via persoonlijke mail
naar Wilbert Berendsen, [info@wilbertberendsen], er wordt dan spoedig
contact met u opgenomen.  

Hartelijke groet,
Wilbert Berendsen (technisch leider zetteam)

-- 
Wilbert Berendsen
(http://www.wilbertberendsen.nl)


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


function that inserts a toplevel expression

2012-05-10 Thread Urs Liska

Hi list,

I'm sorry that I once more have a basic Scheme question.

[
Any suggestion for a reading to find my way into Scheme?
I think I have some programming experience (although without any formal 
IT tuition), mainly from object pascal, but also a little bit with other 
languages.
But when it comes to Scheme I'm absolutely lost. I don't seem to be able 
to find out even such things as to pass a color to a function ... All 
these brackets and ticks and #s are so confusing, that it also isn't 
possible getting somewhere through trial and error.
I have read much of LilyPond's Scheme introduction, but it doesn't seem 
to help me much. So maybe I'd rather read something elsewhere and come 
back trying to get that together with LilyPond when I'm a little bit 
familiar with Scheme.

]

So now the question:
How can I write a function that produces a toplevel expression?

I want to be able to write:

\debugCurvesOn

or

#(debug-curves-on)

(or something similar) which should then expand to

\layout {
  \context {
\Score
\override Slur #'stencil = #(display-control-points)
\override PhrasingSlur #'stencil = #(display-control-points) 
\override Tie #'stencil = #(display-control-points) 
  }

}

(you see where this is going? ;-) )

So far I have realized this with an include file.
This works without problems, but calling a function seems
- more elegant and
- you don't need to remember the path (the function would be included 
through the general library anyway)


Furthermore I will later want to write functions for the \score block, 
and I will want to pass some parameters in there - which doesn't work 
with include files.


Any help is appreciated
Best
Urs

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


Re: is shapeSlur broken?

2012-05-10 Thread Urs Liska

Hi Jan-Peter,

thanks for this.
I had already inserted phrasingSlurs into the function, but somehow they 
slipped through the net during some update ...


Best
Urs

Am 10.05.2012 09:59, schrieb Jan-Peter Voigt:

Hello David, hello Urs,

thank you very much for these improvements!

I have a tiny addition: PhrasingSlurs
--snip--

shapePhrasingSlur =

#(define-music-function (parser location offsets)

(list?)

#{

\once \override PhrasingSlur #'control-points =

#(shape-curve offsets ly:slur::calc-control-points location)

#})

--snip--


Cheers, Jan-Peter

On 09.05.2012 18:42, David Nalesnik wrote:

Hi Urs,

On Wed, May 9, 2012 at 10:13 AM, Urs Liska > wrote:


Hi David,

now I tested your new function.
OK, I didn't test more than the sources you provided, but I think
they give all the necessary combinations.

So my conclusion is: This is awesome!

I won't ever live without this (as long as LilyPond is concerned)
anymore - as long as it won't get broken by new versions.

Great!  I'm very happy to hear this!

One idea to make it even more comfortable and generic to use
would be not to hard-code the color within the function.
If one could somehow set the color outside the function one could
personalize it to ones needs.

As this is kind of a library thing, I think it isn't necessary to
make this settable at runtime through the function call.
Maybe one could define a variable for the color above the
function, setting #black as default.
Then anybody can easily see how to adapt it even if she/he
doesn't understand the function itself.
Ah, I just realized that this way one could still set the color
in the music source by redefininge the variable ...

I would be happy about this enhancement.
But I really have to admit that this is quite low priority
because the function is already extremely helpful.


This isn't difficult to do.  As you say, you could define a variable 
for color above the function.  All you would need to do then is 
replace red with the name of the variable in the two places it 
occurs.  In the attached file, I do this and give several ways of 
specifying the color you want.  (Of course, it's the last definition 
that is actually used.)



Best and thanks again

Urs


You're very welcome!

Best,
David


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




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


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


Re: is shapeSlur broken?

2012-05-10 Thread Jan-Peter Voigt

Hello David, hello Urs,

thank you very much for these improvements!

I have a tiny addition: PhrasingSlurs
--snip--

shapePhrasingSlur =

#(define-music-function (parser location offsets)

(list?)

#{

\once \override PhrasingSlur #'control-points =

#(shape-curve offsets ly:slur::calc-control-points location)

#})

--snip--


Cheers, Jan-Peter

On 09.05.2012 18:42, David Nalesnik wrote:

Hi Urs,

On Wed, May 9, 2012 at 10:13 AM, Urs Liska > wrote:


Hi David,

now I tested your new function.
OK, I didn't test more than the sources you provided, but I think
they give all the necessary combinations.

So my conclusion is: This is awesome!

I won't ever live without this (as long as LilyPond is concerned)
anymore - as long as it won't get broken by new versions.

Great!  I'm very happy to hear this!

One idea to make it even more comfortable and generic to use would
be not to hard-code the color within the function.
If one could somehow set the color outside the function one could
personalize it to ones needs.

As this is kind of a library thing, I think it isn't necessary to
make this settable at runtime through the function call.
Maybe one could define a variable for the color above the
function, setting #black as default.
Then anybody can easily see how to adapt it even if she/he doesn't
understand the function itself.
Ah, I just realized that this way one could still set the color in
the music source by redefininge the variable ...

I would be happy about this enhancement.
But I really have to admit that this is quite low priority because
the function is already extremely helpful.


This isn't difficult to do.  As you say, you could define a variable 
for color above the function.  All you would need to do then is 
replace red with the name of the variable in the two places it occurs. 
 In the attached file, I do this and give several ways of specifying 
the color you want.  (Of course, it's the last definition that is 
actually used.)



Best and thanks again

Urs


You're very welcome!

Best,
David


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


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