Re: paper block for little snippets for webpublishing

2010-11-21 Thread Bill Mooney

Hi Francois,
You should really reply to the list so that you get info from all the 
people there... I'm a complete novice at this.
However, if you are making stuff for Powerpoint presentations or similar 
then you would probably have to get the images with transparent 
backgrounds - which lilypond doesn't do, I think - which means editing 
them in some sort of image software where you can clip out the bit you 
want at the same time... so using the command I sent you is probably ? 
the easiest way to go...


also, see the quote from the Notation Reference... which might give you 
what you want but again I think the results are with non-transparent 
backrounds, although I haven't checked that...


lilypond -f png -dresolution=600 -dclip-systems 'filename'

is the command line I used after reading the following... from the NR

Hope all this helps
Regards
Bill

**
3.4.1 Extracting fragments of music

It is possible to quote small fragments of a large score directly from 
the output. This can be compared to clipping a piece of a paper score 
with scissors.


This is done by defining the measures that need to be cut out 
separately. For example, including the following definition


\layout {
  clip-regions
  = #(list
  (cons
   (make-rhythmic-location 5 1 2)
   (make-rhythmic-location 7 3 4)))
}

will extract a fragment starting halfway the fifth measure, ending in 
the seventh measure. The meaning of 5 1 2 is: after a 1/2 note in 
measure 5, and 7 3 4 after 3 quarter notes in measure 7.


More clip regions can be defined by adding more pairs of 
rhythmic-locations to the list.


In order to use this feature, LilyPond must be invoked with 
-dclip-systems. The clips are output as EPS files, and are converted to 
PDF and PNG if these formats are switched on as well.


For more information on output formats, see Invoking lilypond.
**

On 21/11/10 13:35, Music Teacher wrote:

I have now the same question, for a paper input file (in html,
paperblock is not accepted).
This is for making snippets for worships programs. Output is
meaningless (gif, jpg or png) but resolution should be at least 300
dpi. With Bill's answer ok, but the question is to get directly the
pict without having to cut it with gimp.
Thanks in advance
Francois

2010/11/19, Bill Mooneymooney...@aim.com:

Hi,
you might try :-

lilypond -f png -dresolution=600 filename
where the 600 is an example - whatever you find is appropriate

Hope this helps
Regards
Bill

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



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


Re: Parenthesised arpeggio collision

2010-11-21 Thread Phil Holmes
- Original Message - 


From: Neil Puttock n.putt...@gmail.com

To: Phil Holmes m...@philholmes.net

Cc: Valentin Villenave valen...@villenave.net; LilyPond User Group 
lilypond-user@gnu.org


Sent: Saturday, November 20, 2010 9:19 PM

Subject: Re: Parenthesised arpeggio collision



On 20 November 2010 13:07, Phil Holmes m...@philholmes.net wrote:
Looking at this prior to raising a bug report. I'd be interested in 
finding

out the actual widths of the arpeggio grobs. Is there a way of printing
these out somehow?


\override Arpeggio #'after-line-breaking =
#(lambda (grob)
  (newline)
  (display (ly:grob-property grob 'X-extent)))

As a workaround to prevent the collision you can set a tiny amount of
extra-spacing-height:

\override Arpeggio #'extra-spacing-height = #'(-0.1 . 0.1)

Cheers,
Neil


Thanks, Neil.  There's definitely something strange about the parenthesis 
arpeggio - look what happens when you add padding to all the arpeggio 
types - the other ones all move the note to the right, away from the arp, 
but the parenthesis moves the arp to the left, away from the notes.


I've reported this: http://code.google.com/p/lilypond/issues/detail?id=1421

--
Phil Holmes


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


Re: how to get half-bar used in Bach Music?

2010-11-21 Thread Marc Mouries

thanks Ted, that could do it. The tricky part though is that Bach uses a 
half-bar every other measure.

I ttried this but got 2 issues:
1) 5.0 is not the normal height of the bar line. Would you know what it is?
2) i put a second override to get a normal bar after a half-bar size but the 
second override seems to override the 1st override ???

\relative c' {
  \override Staff.BarLine #'bar-size = #2.0
  c4 c c c |
  \override Staff.BarLine #'bar-size = #5.0
  c c c c |
}

On Nov 21, 2010, at 1:14 AM, Ted Stanion wrote:

 Does this do what you want?
 
 \version 2.12.3
 
 \relative c' {
   \override Staff.BarLine #'bar-size = #2.0
   c4 c c c |
   c c c c |
 }
 
 
 On Sat, Nov 20, 2010 at 9:00 PM, Marc Mouries m...@mouries.net wrote:
 thanks Nick. A half-bar is Bach's writing was a bar containing the same 
 number notes but only went over the staff from the 2nd to the 4th lines.
 
 On Nov 20, 2010, at 11:20 PM, Nick Payne wrote:
 
  On 21/11/10 15:10, Marc Mouries wrote:
  I searched and checked 
  http://lilypond.org/doc/v2.12/Documentation/user/lilypond/Bars
  but could not find a way to print a half-bar like Bach used in some of his 
  music.
  It is not really used often so i'd not be surprised but just wanted to 
  check with you guys just in case.
 
  \version 2.13.39
 
  \relative c'' {
 c4 c c c |
 \set Score.measureLength = #(ly:make-moment 2 4)
 c c |
 \set Score.measureLength = #(ly:make-moment 4 4)
 c c c c |
  }
 
  ___
  lilypond-user mailing list
  lilypond-user@gnu.org
  http://lists.gnu.org/mailman/listinfo/lilypond-user
 
 
 ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 http://lists.gnu.org/mailman/listinfo/lilypond-user
 

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


Multi-page markup: programming error

2010-11-21 Thread Jayaratna

Dear members,

this seems to be something that has not been discussed yet.

I am writing a Postface in two languages, so I made my own titles (using
\markup) and put my texts inside a \markuplines section at the end of my
score.

Lilypond says:  programming error: FT_Load_Sfnt_Table (): error.
http://old.nabble.com/file/p30271258/smex.ly smex.ly 
Any workaround?

PS Lilypond-book  would not be a solution, because I can't get Latex to
handle some fonts I need in my score.
-- 
View this message in context: 
http://old.nabble.com/Multi-page-markup%3A-programming-error-tp30271258p30271258.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: how to get half-bar used in Bach Music?

2010-11-21 Thread Jan Warchoł
2010/11/21 Marc Mouries m...@mouries.net:

 thanks Ted, that could do it. The tricky part though is that Bach uses a
 half-bar every other measure.
 I ttried this but got 2 issues:
 1) 5.0 is not the normal height of the bar line. Would you know what it is?

I suppose it's 4.0 (5 lines in a staff - 4 staffspaces between them),
it works for me.

 2) i put a second override to get a normal bar after a half-bar size but the
 second override seems to override the 1st override ???

Unfortunately i have no ideas here...

Janek

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


Re: how to get half-bar used in Bach Music?

2010-11-21 Thread Alexander Kobel

On 2010-11-21 13:55, Marc Mouries wrote:


thanks Ted, that could do it. The tricky part though is that Bach uses a
half-bar every other measure.

I ttried this but got 2 issues:
1) 5.0 is not the normal height of the bar line. Would you know what it is?
2) i put a second override to get a normal bar after a half-bar size but
the second override seems to override the 1st override ???

\relative c' {
\override Staff.BarLine #'bar-size = #2.0
c4 c c c |
\override Staff.BarLine #'bar-size = #5.0
c c c c |
}


Hi, Marc,

halfBar = \once \override Staff . BarLine #'bar-size = #2

relative c' {
  c4 c c c \halfBar |
  c c c c |
}

should give you what you want.  The \once says that this tweak should be 
applied - well, just once.  Thus, there's no need to rewrite the whole 
thing just to get normal size bars; if you do not want to use the 
\once however, be sure to check out the \revert command.


An \override without \once affects all objects on the very time you call 
it, and lasts for the later ones.
Thus, your code works as expected, but regardless of the order of | and 
\override, the /second/ call holds for the moment the BarLine gets 
drawn.  The first affects everything from time 0 to just before the end 
of the first measure, but there is no bar line there.



HTH,
Alexander

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


\book output

2010-11-21 Thread Stephan Elliot Perez
Greetings,
When I have multiple \score in a \book , I receive multiple .pdf
files as output, as if I had processed each of them separately.  How can I
process them into one file?

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


Re: \book output

2010-11-21 Thread Aaron Dalton
On 11/21/2010 8:03 AM, Stephan Elliot Perez wrote:
 Greetings,
 When I have multiple \score in a \book , I receive multiple .pdf
 files as output, as if I had processed each of them separately.  How can
 I process them into one file?
 

I use PDFTKBuilder a lot.

http://angusj.com/pdftkb/

Aaron


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


Re: \book output

2010-11-21 Thread Phil Holmes
Do you have multiple \layout blocks?

--
Phil Holmes


  - Original Message - 
  From: Stephan Elliot Perez 
  To: lilypond-user@gnu.org 
  Sent: Sunday, November 21, 2010 3:03 PM
  Subject: \book output


  Greetings,
  When I have multiple \score in a \book , I receive multiple .pdf 
files as output, as if I had processed each of them separately.  How can I 
process them into one file?

  Many thanks,
  Stephan




--


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


Re: What setup for a Pedagogy Book?

2010-11-21 Thread Damian leGassick
Hi Julien

lilypond-book is in my path

I see no convertors for lilypond or lilypond-book in preferences/file 
handling/convertors

maybe this is my problem?

Damian


On 19 Nov 2010, at 17:14, Julien Rioux wrote:

 On 19/11/2010 5:26 AM, Damian leGassick wrote:
 lyx is also telling me (modules) that i can't enable lilypond-book because 
 some packages are unavailable - which packages are those?
 
 Sorry I just realised that my previous message wasn't useful in understanding 
 the error.
 
 Is lilypond-book in your PATH? It must be found by LyX at configure time. 
 Could you please make sure it is in your PATH, reconfigure LyX (Tools  
 reconfigure), restart LyX and try again?
 
 To specify your PATH either modify the environment variable or the PATH 
 prefix in LyX Tools  Preferences  Paths
 
 Let us know how this goes!
 
 Thanks,
 Regards,
 Julien
 
 
 ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 http://lists.gnu.org/mailman/listinfo/lilypond-user


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


Fwd: \book output

2010-11-21 Thread Stephan Elliot Perez
Ah no, I did not.  Now it is working.  Is there a way to simple way to force
the creation of a new page after each score?


On Sun, Nov 21, 2010 at 4:13 PM, Phil Holmes m...@philholmes.net wrote:

  Do you have multiple \layout blocks?

 --
 Phil Holmes



 - Original Message -
  *From:* Stephan Elliot Perez dreamoftheshoreofanotherwo...@gmail.com
 *To:* lilypond-user@gnu.org
 *Sent:* Sunday, November 21, 2010 3:03 PM
 *Subject:* \book output

 Greetings,
 When I have multiple \score in a \book , I receive multiple .pdf
 files as output, as if I had processed each of them separately.  How can I
 process them into one file?

 Many thanks,
 Stephan

  --

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


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


Re: What setup for a Pedagogy Book?

2010-11-21 Thread Julien Rioux

On 21/11/2010 11:45 AM, Damian leGassick wrote:

Hi Julien

lilypond-book is in my path

I see no convertors for lilypond or lilypond-book in preferences/file 
handling/convertors

maybe this is my problem?

Damian


On 19 Nov 2010, at 17:14, Julien Rioux wrote:


On 19/11/2010 5:26 AM, Damian leGassick wrote:

lyx is also telling me (modules) that i can't enable lilypond-book because some 
packages are unavailable - which packages are those?


Sorry I just realised that my previous message wasn't useful in understanding 
the error.

Is lilypond-book in your PATH? It must be found by LyX at configure time. Could 
you please make sure it is in your PATH, reconfigure LyX (Tools  reconfigure), restart 
LyX and try again?

To specify your PATH either modify the environment variable or the PATH prefix in LyX 
Tools  Preferences  Paths

Let us know how this goes!

Thanks,
Regards,
Julien


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


What's the output of:
lilypond-book --version

Also, did you restart LyX after running reconfigure?

--
Julien


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


Re: \book output

2010-11-21 Thread Patrick Schmidt

Put each score in a \bookpart{} or use \pagebreak after each score.

HTH
patrick
Am 21.11.2010 um 17:56 schrieb Stephan Elliot Perez:

Ah no, I did not.  Now it is working.  Is there a way to simple way  
to force the creation of a new page after each score?



On Sun, Nov 21, 2010 at 4:13 PM, Phil Holmes m...@philholmes.net  
wrote:

Do you have multiple \layout blocks?

--
Phil Holmes


- Original Message -
From: Stephan Elliot Perez
To: lilypond-user@gnu.org
Sent: Sunday, November 21, 2010 3:03 PM
Subject: \book output

Greetings,
When I have multiple \score in a \book , I receive  
multiple .pdf files as output, as if I had processed each of them  
separately.  How can I process them into one file?


Many thanks,
Stephan



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


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


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


Re: What setup for a Pedagogy Book?

2010-11-21 Thread Damian leGassick
2.13.39

yes, I restarted LyX but I still can't view it in any format except LyXHTML

should I enter the lilypond-book converters manually?

Damian


On 21 Nov 2010, at 17:11, Julien Rioux wrote:

 On 21/11/2010 11:45 AM, Damian leGassick wrote:
 Hi Julien
 
 lilypond-book is in my path
 
 I see no convertors for lilypond or lilypond-book in preferences/file 
 handling/convertors
 
 maybe this is my problem?
 
 Damian
 
 
 On 19 Nov 2010, at 17:14, Julien Rioux wrote:
 
 On 19/11/2010 5:26 AM, Damian leGassick wrote:
 lyx is also telling me (modules) that i can't enable lilypond-book because 
 some packages are unavailable - which packages are those?
 
 Sorry I just realised that my previous message wasn't useful in 
 understanding the error.
 
 Is lilypond-book in your PATH? It must be found by LyX at configure time. 
 Could you please make sure it is in your PATH, reconfigure LyX (Tools  
 reconfigure), restart LyX and try again?
 
 To specify your PATH either modify the environment variable or the PATH 
 prefix in LyX Tools  Preferences  Paths
 
 Let us know how this goes!
 
 Thanks,
 Regards,
 Julien
 
 
 ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 http://lists.gnu.org/mailman/listinfo/lilypond-user
 
 What's the output of:
 lilypond-book --version
 
 Also, did you restart LyX after running reconfigure?
 
 -- 
 Julien
 
 
 ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 http://lists.gnu.org/mailman/listinfo/lilypond-user


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


Re: What setup for a Pedagogy Book?

2010-11-21 Thread Julien Rioux

On 21/11/2010 12:19 PM, Damian leGassick wrote:

2.13.39

yes, I restarted LyX but I still can't view it in any format except LyXHTML

should I enter the lilypond-book converters manually?

Damian


Hi Damian,

So, it sounds like LyX is not detecting your lilypond installation. This 
is a bug. Can you please let me know your system and which installer did 
you use for LyX?


Also very useful would be if you can capture the output of the LyX's 
configuration step. To do this you would start lyx from a terminal, 
click the Tools  reconfigure menu, then copypaste what you get in 
the terminal window. Howver, I don't know how to do this on a MS Windows OS.


To set up the converters manually:
In Tools  Preferences  File Handling

In File Formats
Click New, then fill the following:
Format: Lilypond book (LaTeX)
Document format: yes
Vector graphics format: no
Short Name: lilypond-book
Extension: lytex


In Converters
Select these:
From format: Lilypond book (LaTeX)
To format: LaTeX (plain)
Converter: lilypond-book --safe --lily-output-dir=ly-eps $$i
Click Add

Then select these:
From format: Lilypond book (LaTeX)
To format: LaTeX (pdflatex)
Converter: lilypond-book --safe --pdf --latex-program=pdflatex 
--lily-output-dir=ly-pdf $$i

(all on one line; line-wrappings appear due to email client)
Click Add

--
Julien


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


Re: question on \transpose

2010-11-21 Thread MING TSANG
Yes, (1) \transpose f des {music} works.  I use english.ly so (2) \transpose f 
dflat {music} also works.  I was told D-flat is equivalent to B-flat minor; but 
in term of key signature print D-flat has 5 flats while B-flat minor has 5 
sharps.   On score sheet D-flat show 5 flats.  How can I produce lilypond score 
sheet with 5 sharps for B-flat minor?




From: James Lowe james.l...@datacore.com
To: MING TSANG tsan...@rogers.com; lilypond-user@gnu.org
Sent: Sat, November 20, 2010 5:42:05 PM
Subject: RE: question on \transpose

Hello

-Original Message-
From: lilypond-user-bounces+james.lowe=datacore@gnu.org on behalf of MING 
TSANG
Sent: Sat 11/20/2010 20:33
To: lilypond-user@gnu.org
Subject: question on \transpose

How can I specifiy key minor or key major in transpose?
Is it possible \transpose from f major to b flat minor?  How to code in 
\transpose?

I put \transpose f bflat minor and I get syntax error.

---

I'm not sure (and maybe this is just how I think about transposing) but isn't 
the idea of transposing just to move it up or down to the transposing key from 
its original key (or in the case of moving parts for different instruments just 
moving the pitch difference)?

So can't you just use the relative/enharmonic?

i.e \transpose f des { music }?

or \transpose d bes { music }

Does that still work?

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


Re: Fwd: \book output

2010-11-21 Thread Nick Payne

On 22/11/10 03:56, Stephan Elliot Perez wrote:
Ah no, I did not.  Now it is working.  Is there a way to simple way to 
force the creation of a new page after each score?


Here's the template I use:

%=
\version 2.13.39

\paper {
#(define (print-positive-page-number layout props arg)
(if ( (chain-assoc-get 'page:page-number props -1) 0)
(create-page-number-stencil layout props arg)
empty-stencil))

first-page-number = 0
print-first-page-number = ##f
oddHeaderMarkup = \markup \fill-line {   }
evenHeaderMarkup = \markup \fill-line {   }
oddFooterMarkup = \markup { \fill-line {
\on-the-fly #not-first-page \fromproperty #'header:instrument
\on-the-fly #print-positive-page-number \fromproperty 
#'page:page-number-string

 
} }
evenFooterMarkup = \markup { \fill-line {
\on-the-fly #not-first-page \fromproperty #'header:instrument
\on-the-fly #print-positive-page-number \fromproperty 
#'page:page-number-string

} }
ragged-right = ##t
ragged-bottom = ##t
ragged-last-bottom = ##t
}

\header {
title = Overall Title
subtitle = \markup {
\left-align \center-column {
Overall Subtitle
\lower #2   % to space ToC away from title/subtitle
}
}
tagline = ##f
}

\markuplines \table-of-contents

\markup \null

\bookpart { \header {
subtitle = Piece One
composer = Person One
}
\tocItem \markup { 1. Piece One }
\relative c' { c1 }
}

\bookpart {
\header {
subtitle = Piece Two
composer = Person Two
}
\tocItem \markup { 1. Piece Two }
\relative c' { c1 }
}

\bookpart {\header {
subtitle = Piece Three
composer = Person Three
}
\tocItem \markup { 3. Piece Three }
\relative c' { c1 }
}
%=

Nick

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


Re: What setup for a Pedagogy Book?

2010-11-21 Thread Damian leGassick
So...

I just ran Onyx 2.2 and now everything works fine (mac OSX 10.6.5)

weird

anyway... i'll give it a good road test over the next few weeks

Damian


On 21 Nov 2010, at 18:58, Julien Rioux wrote:

 On 21/11/2010 12:19 PM, Damian leGassick wrote:
 2.13.39
 
 yes, I restarted LyX but I still can't view it in any format except LyXHTML
 
 should I enter the lilypond-book converters manually?
 
 Damian
 
 Hi Damian,
 
 So, it sounds like LyX is not detecting your lilypond installation. This is a 
 bug. Can you please let me know your system and which installer did you use 
 for LyX?
 
 Also very useful would be if you can capture the output of the LyX's 
 configuration step. To do this you would start lyx from a terminal, click the 
 Tools  reconfigure menu, then copypaste what you get in the terminal 
 window. Howver, I don't know how to do this on a MS Windows OS.
 
 To set up the converters manually:
 In Tools  Preferences  File Handling
 
 In File Formats
 Click New, then fill the following:
 Format: Lilypond book (LaTeX)
 Document format: yes
 Vector graphics format: no
 Short Name: lilypond-book
 Extension: lytex
 
 
 In Converters
 Select these:
 From format: Lilypond book (LaTeX)
 To format: LaTeX (plain)
 Converter: lilypond-book --safe --lily-output-dir=ly-eps $$i
 Click Add
 
 Then select these:
 From format: Lilypond book (LaTeX)
 To format: LaTeX (pdflatex)
 Converter: lilypond-book --safe --pdf --latex-program=pdflatex 
 --lily-output-dir=ly-pdf $$i
 (all on one line; line-wrappings appear due to email client)
 Click Add
 
 -- 
 Julien
 
 
 ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 http://lists.gnu.org/mailman/listinfo/lilypond-user


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


Re: showing counterpoint in solo music

2010-11-21 Thread Gilles THIBAULT

 
   { f16  d' b g e c  | d b' g e c a' }
   \\

   { f16[ s  s s e s] | d[ s s s c s] }

 
that means the score has to be typed twice.


Well, if you really want to repeat this construct a lot of time, changing
only notes, you can use the snippet shortly described here :
http://lsr.dsi.unimi.it/LSR/Item?id=654
You can download the changePitch.ly file (and perhaps,too the help pdf 
file

if you need it) here :
http://gillesth.free.fr/Lilypond/changePitch/

The only difficult work is to find the good pattern, but after that,
it is very very quick ...

%%%
\include changePitch.ly

pattern = {
 
   \samePitch {  
   {c16 s s s s s}
   \\
   {c16[ s s s s] s}
   
   }
   \context Voice = 1 {s16 c c c s s}
   \samePitch { 
   {s16 s s s c s} \\
   {s16 s s s c s}
   
   }
   \context Voice = 1 {s16 s s s s c}
 
   |
}


\new Staff  \relative c' {
 \time 3/8
 \changePitch \pattern  {
   f d' b g e c
   d b' g e c a'
   % add other notes here ...
 }
}
%%%

Gilles






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


Re: soprano staff did not transpose

2010-11-21 Thread Peter Chubb
If you want to transpose the whole song, it's easiest to put the
\transpose in the score block instead of doing each staff separately.

It's almost never worth transposing individual voices unless you're
entering from different sources (for example, I once had the clarinet
part from one edition, and the flute part from a different edition,
and the piano and vocals from yet another edition, all in different
keys, and was trying to get something playable...)

\score {
   \transpose c bes \context GrandStaff 
  ...
   
   \layout{
  ...
   }
}
--
Dr Peter Chubb  peter DOT chubb AT nicta.com.au
http://www.ertos.nicta.com.au   ERTOS within National ICT Australia
All things shall perish from under the sky/Music alone shall live, never to die

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


Re: question on \transpose

2010-11-21 Thread Tim McNamara


On Nov 21, 2010, at 12:41 PM, MING TSANG wrote:

Yes, (1) \transpose f des {music} works.  I use english.ly so (2)  
\transpose f dflat {music} also works.  I was told D-flat is  
equivalent to B-flat minor; but in term of key signature print D- 
flat has 5 flats while B-flat minor has 5 sharps.   On score sheet  
D-flat show 5 flats.  How can I produce lilypond score sheet with 5  
sharps for B-flat minor?


Bb minor would have 5 flats; it is the relative minor of Db.  Five  
sharps would be B major or G# minor.  If you want to transpose your  
score to five sharps, then your \transpose command would be  
accordingly different:


 \transpose f b {music}


Relative minor keys are as follows:

C = A minor = no sharps
G = E minor  = #
D = B minor  = ##
A = F# minor = ###
E = C# minor = 
B = G# minor = #
F# = D# minor = ##
C# = A# minor = ###

C = A minor  = no flats
F = D minor = b
Bb = G minor = bb
Eb = C minor = bbb
Ab = F minor = 
Db = Bb minor = b
Gb = Eb minor = bb
Cb = Ab minor = bbb

A nice graphical representation:

http://allenibmusic.org/?p=366

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


Re: What setup for a Pedagogy Book?

2010-11-21 Thread Marc Mouries

were you able to see the preview image of the lilypond score in Lyx?
For me on Mac as well when i open the lyx file i get an error message saying 
that I am missing a latex package.

On Nov 21, 2010, at 4:24 PM, Damian leGassick wrote:

 So...
 
 I just ran Onyx 2.2 and now everything works fine (mac OSX 10.6.5)
 
 weird
 
 anyway... i'll give it a good road test over the next few weeks
 
 Damian
 
 
 On 21 Nov 2010, at 18:58, Julien Rioux wrote:
 
 On 21/11/2010 12:19 PM, Damian leGassick wrote:
 2.13.39
 
 yes, I restarted LyX but I still can't view it in any format except LyXHTML
 
 should I enter the lilypond-book converters manually?
 
 Damian
 
 Hi Damian,
 
 So, it sounds like LyX is not detecting your lilypond installation. This is 
 a bug. Can you please let me know your system and which installer did you 
 use for LyX?
 
 Also very useful would be if you can capture the output of the LyX's 
 configuration step. To do this you would start lyx from a terminal, click 
 the Tools  reconfigure menu, then copypaste what you get in the terminal 
 window. Howver, I don't know how to do this on a MS Windows OS.
 
 To set up the converters manually:
 In Tools  Preferences  File Handling
 
 In File Formats
 Click New, then fill the following:
 Format: Lilypond book (LaTeX)
 Document format: yes
 Vector graphics format: no
 Short Name: lilypond-book
 Extension: lytex
 
 
 In Converters
 Select these:
 From format: Lilypond book (LaTeX)
 To format: LaTeX (plain)
 Converter: lilypond-book --safe --lily-output-dir=ly-eps $$i
 Click Add
 
 Then select these:
 From format: Lilypond book (LaTeX)
 To format: LaTeX (pdflatex)
 Converter: lilypond-book --safe --pdf --latex-program=pdflatex 
 --lily-output-dir=ly-pdf $$i
 (all on one line; line-wrappings appear due to email client)
 Click Add
 
 -- 
 Julien
 
 
 ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 http://lists.gnu.org/mailman/listinfo/lilypond-user
 
 
 ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 http://lists.gnu.org/mailman/listinfo/lilypond-user


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


Re: paper block for little snippets for webpublishing

2010-11-21 Thread Music Teacher
Hi all,

I have now the same question, for a paper input file (in html,
paperblock is not accepted).
This is for making snippets for worships programs. Output is
meaningless (gif, jpg or png) but resolution should be at least 300
dpi. With Bill's answer ok, but the question is to get directly the
pict without having to cut it with gimp.
Thanks in advance
Francois

2010/11/19, Bill Mooney mooney...@aim.com:
 Hi,
 you might try :-

 lilypond -f png -dresolution=600 filename
 where the 600 is an example - whatever you find is appropriate

 Hope this helps
 Regards
 Bill

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


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


Can LilyPond do incipits?

2010-11-21 Thread Patrick Karl
I'm trying to duplicate in LilyPond a very ugly photocopied piece of 
music, which was handed out in an Early Music workshop, which includes 
incipits.  Does LilyPond do incipits?  The only thing I find in the 
v2.12 NR is:


Incipits
TBC

See also

which doesn't seem very promising.  There is no entry in the index for 
incipit.


I looked at the v2.13 NR, and it doesn't include an entry in the index 
for incipit.


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


Re: Can LilyPond do incipits?

2010-11-21 Thread Nick Payne

On 22/11/10 14:11, Patrick Karl wrote:
I'm trying to duplicate in LilyPond a very ugly photocopied piece of 
music, which was handed out in an Early Music workshop, which includes 
incipits.  Does LilyPond do incipits?  The only thing I find in the 
v2.12 NR is:


Incipits
TBC

See also

which doesn't seem very promising.  There is no entry in the index for 
incipit.


I looked at the v2.13 NR, and it doesn't include an entry in the index 
for incipit.


See section A.6 of the learning manual: Ancient notation templates. And 
if you search the snippet repository for incipit there are a couple of 
examples: http://lsr.dsi.unimi.it/LSR/Search?q=incipit


Nick

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


Re: Can LilyPond do incipits?

2010-11-21 Thread Aaron Dalton
On 11/21/2010 8:11 PM, Patrick Karl wrote:
 I'm trying to duplicate in LilyPond a very ugly photocopied piece of
 music, which was handed out in an Early Music workshop, which includes
 incipits.  Does LilyPond do incipits?  The only thing I find in the
 v2.12 NR is:

Yes, it can do beautiful incipits. I place the following code at the top
of the file (retrieved from the snippets repository):

incipit =
#(define-music-function (parser location incipit-music) (ly:music?)
  #{
\once \override Staff.InstrumentName #'self-alignment-X = #RIGHT
\once \override Staff.InstrumentName #'self-alignment-Y = #UP
\once \override Staff.InstrumentName #'Y-offset = #4
\once \override Staff.InstrumentName #'padding = #0.3
\once \override Staff.InstrumentName #'stencil =
#(lambda (grob)
   (let* ((instrument-name (ly:grob-property grob 'long-text))
  (layout (ly:output-def-clone (ly:grob-layout grob)))
  (music (make-music 'SequentialMusic
  'elements (list (make-music 'ContextSpeccedMusic
'context-type 'MensuralStaff
'element (make-music 'PropertySet
   'symbol 'instrumentName
   'value instrument-name))
  $incipit-music)))
  (score (ly:make-score music))
  (mm (ly:output-def-lookup layout 'mm))
  (indent (ly:output-def-lookup layout 'indent))
  (width (ly:output-def-lookup layout 'incipit-width))
  (incipit-width (if (number? width)
 (* width mm)
 (* indent 0.5
 (ly:output-def-set-variable! layout 'indent (- indent
incipit-width))
 (ly:output-def-set-variable! layout 'line-width indent)
 (ly:output-def-set-variable! layout 'ragged-right #f)
 (ly:output-def-set-variable! layout 'ragged-last #f)
 (ly:output-def-set-variable! layout 'system-count 1)
 (ly:score-add-output-def! score layout)
 (set! (ly:grob-property grob 'long-text)
   (markup #:score score))
 (ly:system-start-text::print grob)))
  #})

Then something like the following:

cantusIncipit = 
  \new MensuralVoice = cantusIncipit 
\repeat unfold 9 { s1 \noBreak }
{
  \override Rest #'style = #'neomensural
  \clef neomensural-c1
  \key c \major
  \time 2/2
  r2 a'2
}
  

Then finally in the \score:

\new Voice = cantus 
\incipit \cantusIncipit
\cantusMusic

\new Lyrics \lyricsto cantus \cantusLyrics

Aaron

P.S. I tried to send a PDF of a single page, but it was apparently too
big. You can see the incipits in a modern edition I did at
http://hdl.handle.net/1880/47815






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


Re: Can LilyPond do incipits?

2010-11-21 Thread David Kastrup
Aaron Dalton aa...@daltons.ca writes:

 On 11/21/2010 8:11 PM, Patrick Karl wrote:
 I'm trying to duplicate in LilyPond a very ugly photocopied piece of
 music, which was handed out in an Early Music workshop, which includes
 incipits.  Does LilyPond do incipits?  The only thing I find in the
 v2.12 NR is:

 Yes, it can do beautiful incipits. I place the following code at the top
 of the file (retrieved from the snippets repository):

 incipit =
 #(define-music-function (parser location incipit-music) (ly:music?)
   #{
 \once \override Staff.InstrumentName #'self-alignment-X = #RIGHT
 \once \override Staff.InstrumentName #'self-alignment-Y = #UP

[...]

Can your child write?  Yes, it can write beautifully, provided that I
lead its hand.

Looks like a nice candidate for something a bit more integrated.  Since
apparently working code has already been demonstrated, frog calibre?

-- 
David Kastrup


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