Re: Setting arbitrary filename for .midi

2011-08-17 Thread Javier Ruiz-Alma
Not quite what I was hoping for.
 
I have a book with a collection of scores.  The book is divided into bookparts 
(i.e. chapters) where I want to force a pagebreak to divide the content.
The pdf output of this book is, as desired, consolidated into a single .pdf 
file.
 
However, the .midi files for each score are separately created using sequential 
numerators with the same filename derived from the collection filename.
 
What I'd like to do is something like:
 
collection.ly:
\book{
\bookpart{  %chapt1
\score{   
  \midi{ /with midifilenameprefix = collection-nocturne7}
}
\score{   
}
    \bookpart{  %chapt2
 \score{  \midi{ /with midifilenameprefix = 
collection-concerto9}
}
    }
}

And get files:
collection.pdf
collection-nocturne7.midi
collection-sonata22.midi
collection-concerto9.midi

Rgds, Javier

From: Marek Klein ma...@gregoriana.sk
To: Javier Ruiz-Alma jav...@ruiz-alma.com
Cc: LilyPond User Group lilypond-user@gnu.org
Sent: Monday, August 15, 2011 12:45 AM
Subject: Re: Setting arbitrary filename for .midi


Hello


2011/8/15 Javier Ruiz-Alma jav...@ruiz-alma.com

I'm working with a multi-score lilypond file.
I'd like to be able to set arbitrary filenames for each midi, instead of 
having lilypond derive the midi filenames from the .ly filename.

http://lilypond.org/doc/v2.14/Documentation/notation/output-file-names

HTH

Marek Klein
http://gregoriana.sk





  \midi{ /with midifilenameprefix = collection-sonata22}
}___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Misleading autobeaming in 3/4

2011-08-17 Thread Urs Liska

Am 17.08.2011 07:15, schrieb Vaughan McAlley:

Bertrand Bordage wrote:

Ok, I'll keep LilyPond's default beaming since it's the usual notation.
Thanks!
Bertrand

No! Beam it how _you_ like. Otherwise it’s like using Times font just
because it’s the Microsoft Word default :-) Just say you’re following
Debussy...

I ran into a similar problem recently with my first real-world use of
Lilypond. The music is from Mozart’s La Clemenza di Tito, and I needed
to follow Mozart’s beaming:

\relative c' {
 \key f \major
 \time 3/8
 \clef bass
 c8^Default beaming (correct) (e16 c g e) | c'8 [(\grace { d16[
c16 b c]} e16 c g e )] |
 d'8\staccato c\staccato b\staccato c r r |

 \autoBeamOff
 \times 2/3  { d,16^Manual beaming [f a] }
 \repeat unfold 2 { \times 2/3  { d,16 [f a] } }
 \scaleDurations #'(2 . 3) {
 g [ bes c] g [ bes c ] f, [ a c ] |
 e, [ g c ] f, [ a c ] bes, [ d g ] |
 c, [ e g ] c [ g e ] c [ bes g ] |
 f [ a c ] f, [ a c ] f, [ a c ] |
 f, [ bes d ] f [ d bes ] a [ c f ] |
 c [ f a ] c, [ f a ] c, [ e g ] |
 }
 r32 f, [ a c ] f [ a c a ] f [ c a f ] |
 r c [ e g ] c [ e g bes ] g [ e c bes ] |
 r f [ a c ] f [ a c a ] f [ c a f ] |
 r g [ b d ] g [ b d b ] g [ f d b ] |
 r c, [ e g ] c [ e g e ] c [ g e c ] |
 \autoBeamOn

 \set Timing.beatStructure = #'(1 1 1)
 \times 2/3 { d'16^\set Timing.beatStructure doesn’t work f a }
 \times 2/3 { d,16 f a }
 \times 2/3 { d,16 f a }
}

I now suspect \set Timing.beatStructure = #'(1 1 1) didn’t work
because Lilypond considers the beat to be a dotted quarter.
No, you have to add  \set Timing.beamExceptions = #'() to clear the 
default rules for the 3/8 time signature.
If you add this at the beginning you don't have to beam manually at all 
in your example:


Try out:

\relative c' {
\key f \major
\time 3/8
\clef bass
c8^Default beaming (correct) (e16 c g e) | c'8  (\grace { d16
c16 b c } e16 c g e )  |
d'8\staccato c\staccato b\staccato c r r |

\set Timing.beamExceptions = #'()
\set Timing.beatStructure = #'(1 1 1)
\times 2/3  { d,16^Changed beaming  f a  }
\repeat unfold 2 { \times 2/3  { d,16  f a  } }
\scaleDurations #'(2 . 3) {
g   bes c  g   bes c   f,   a c   |
e,   g c   f,   a c   bes,   d g   |
c,   e g   c   g e   c   bes g   |
f   a c   f,   a c   f,   a c   |
f,   bes d   f   d bes   a   c f   |
c   f a   c,   f a   c,   e g   |
}
r32 f,   a c   f   a c a   f   c a f   |
r c   e g   c   e g bes   g   e c bes   |
r f   a c   f   a c a   f   c a f   |
r g   b d   g   b d b   g   f d b   |
r c,   e g   c   e g e   c   g e c   |

\times 2/3 { d'16^\set Timing.beatStructure _does_ work f a }
\times 2/3 { d,16 f a }
\times 2/3 { d,16 f a }
}

I admit I also find this chapter of the NR (1.2.4 Beams) somewhat 
confusing: If you're not already into the topic - and that's usually the 
state when starting ;-) - you don't really see what you're missing.
I encourage you to delve into it, try to understand it piece by piece 
while experimenting with small examples. I think it's definitely worth 
the labour.


Two more hints to make your life easier:

1)
You don't have to write out  the \times construct for every group.
Just surround the whole section by \times { } (as you did with the 
\scaleDurations section).

Before this you add
\set tupletSpannerDuration = #'(ly:make-moment 1 8)
to tell Lilypond to print the brackets and numbers every 1/8th note.

2)
I'd suggest you don't use \scaleDurations here but rather triplets.
Because that's what you have here: triplets without numbers and 
brackets, not a scaled duration.
While it is perfectly valid what you wrote I'd suggest to keep it 
structurally simpler, which makes your code easier to understand (for 
example if you return to it next year). I'd use \scaleDuration only in 
more complex cases such as different tempos (e.g. 3/8 vs 4/8 in 
different staves).

With 1) you have come around the need to write out \times more than once.
But you will also want to add
\override TupletBracket #'bracket-visibility = ##f
\override TupletNumber #'stencil = ##f
While this is effectively slightly more text to type, it makes your code 
clearer in terms of structure, because you write what it actually means.


HTH
Urs

Beam
exceptions look quite Schemish and involving triplets would be beyond
me. For the time signature engraver there is no difference between a
scherzo 3/4 or 3/8 or one in three, but for musicians there is a
difference and maybe it should be easy to specify at the beginning,
something like:

\time 3/8
\setBeat 8 % ...or \setBeat 4.

Well, this is \set Timing.baseMoment, isn't it?

Also nice would be something that parses manual beaming into beam exceptions:

\specialBeaming { r32 f, [ a c ] f [ a c a ] f [ c a f ] | }
r c [ e g ] c [ e g bes ] g [ e c bes ] 

How does html editor talk to LilyPond ?

2011-08-17 Thread Christopher Berg
Hi, I'm hoping this is a basic question with an easy answer:

I'd like to make some web pages with simple musical examples. I've studied the 
relevant manual pages, but there seems to be some basic information taken for 
granted in the explanations. 

I put the example code from the manual into an html page in my text editor 
(BBEdit),

lilypond fragment relative=2
\key c \minor c4 es g2
/lilypond

but, of course, no music showed up when I previewed the page. What needs to 
happen to get the music the show up? Is there some way I must link the editor 
to LilyPond? Do I have to run a terminal command on the file (if so, what and 
how)?

I have been successful in producing some nice LaTeX documents with 
lilypond-book in TexShop, but that happens fairly seamlessly due to Nicola 
Vitacolonna's engines. 

I'm fairly new to html and can do a little in the terminal, but I'd like to 
figure this out. What am I missing?

Thank you for any help. I'm using LilyPond 2.14.2 on a MacBook Pro running 
10.6.8.

Christopher Berg
christopherberg.com
Christopher Berg's myspace page
Rossignol Duo








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


Re: How does html editor talk to LilyPond ?

2011-08-17 Thread Mike Solomon
On Aug 17, 2011, at 1:13 PM, Christopher Berg wrote:

 Hi, I'm hoping this is a basic question with an easy answer:
 
 I'd like to make some web pages with simple musical examples. I've studied 
 the relevant manual pages, but there seems to be some basic information taken 
 for granted in the explanations. 
 
 I put the example code from the manual into an html page in my text editor 
 (BBEdit),
 
 lilypond fragment relative=2
 \key c \minor c4 es g2
 /lilypond
 
 

You have to run lilypond-book first on your document.

In the terminal:

lilypond-book foo.html

where foo.html is your document.

It will produce a new document in which the snippets appear correctly.

Cheers,
MS___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Problem with lyrics with repeat [lilypond 2.13.63]

2011-08-17 Thread Raphael Manfredi
Hello,

I'm having problems formatting lyrics on a repeat section.
I've extended the snippet from the documentation to add 2 voices
to the chorus, and the lyrics for the second stanza are moved
at the bottom of the group.

Vertically, I have:

Soprano staff
Lyrics for soprano #1

Alto staff
Lyrics for alto #1

Lyrics for soprano #2
Lyrics for alto #2

I'd thought it would come up as:

Soprano staff
Lyrics for soprano #1
Lyrics for soprano #2

Alto staff
Lyrics for alto #1
Lyrics for alto #2

in the repeated section.

Here's the modified snippet.  How should I change the example to
get the above layout?

\score {
\new ChoirStaff  
\new Staff {
  \new Voice = melody {
\relative c'' {
  a4 a a a
  \repeat volta 2 { b4 b b b }
}
  }
}
\new Lyrics \lyricsto melody {
  Not re -- peat -- ed.
  
{ The first time words. }
\new Lyrics {
  \set associatedVoice = melody
  Sec -- ond time words#one.
}
  
}
\new Staff {
  \new Voice = melody2 {
\relative c'' {
  a4 a a a
  \repeat volta 2 { b4 b b b }
}
  }
}
\new Lyrics \lyricsto melody2 {
  Not re -- peat -- ed.
  
{ The first time words. }
\new Lyrics {
  \set associatedVoice = melody2
  Sec -- ond time words#two.
}
  
}
  
}

Thanks,
Raphael

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


Re: Problem with lyrics with repeat [lilypond 2.13.63]

2011-08-17 Thread -Eluze


Raphael Manfredi wrote:
 
 Hello,
 
 I'm having problems formatting lyrics on a repeat section.
 I've extended the snippet from the documentation to add 2 voices
 to the chorus, and the lyrics for the second stanza are moved
 at the bottom of the group.
 
i can't see which version you're using but the the docs about repeated
voices are being rebuilt!

the trick that works is to define the lyrics' placement with a \new Lyrics =
… statement and to refer them later. you're sample score would then look
like:

\new ChoirStaff  
\new Staff {
  \new Voice = melody {
\relative c'' {
  a4 a a a
  \repeat volta 2 { b4 b b b }
}
  }
}
\new Lyrics = 11
\new Lyrics = 12 
\context Lyrics = 11 \lyricsto melody { 
  Not re -- peat -- ed. 
   
{ The first time words. } 
\context Lyrics = 12 { 
  \set associatedVoice = melody 
  Sec -- ond time words#one. 
} 
   
} 

the 2nd staff and its lyrics can be placed the same way, but since the
default is below the staff it does not really matter.

Eluze
-- 
View this message in context: 
http://old.nabble.com/Problem-with-lyrics-with-repeat--lilypond-2.13.63--tp32282120p32282597.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: Problem with lyrics with repeat [lilypond 2.13.63]

2011-08-17 Thread Raphael Manfredi
Quoting -Eluze elu...@gmail.com from ml.lilypond.users:
:i can't see which version you're using but the the docs about repeated
:voices are being rebuilt!

It was in the subject (2.13.63)...

:the trick that works is to define the lyrics' placement with a \new Lyrics =
:… statement and to refer them later. you're sample score would then look
:like:
:
:the 2nd staff and its lyrics can be placed the same way, but since the
:default is below the staff it does not really matter.

Great, it's now working as I wanted.  I was surprised because the old setup
(template) I had for vocal music, which was written for 2.10, stopped working
properly with 2.13.63 and the doc was obviously incomplete!

Thanks for the fast answer!

Raphael

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


Re: Problem with lyrics with repeat [lilypond 2.13.63]

2011-08-17 Thread -Eluze


Raphael Manfredi wrote:
 
 Quoting -Eluze elu...@gmail.com from ml.lilypond.users:
 :i can't see which version you're using but the the docs about repeated
 :voices are being rebuilt!
 
 It was in the subject (2.13.63)...
 
 
yes - obviously!
-- 
View this message in context: 
http://old.nabble.com/Problem-with-lyrics-with-repeat--lilypond-2.13.63--tp32282120p32283310.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


footnotes without numbers?

2011-08-17 Thread padovani

Hi,

how do I tweak footnotes so that they are not identified by numbers 
(automatic created) but by custom markups? (like * or **)...


thanks
josé
--
http://zepadovani.info

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


Re: was \RemoveEmptyStaffContext (?) -- now How Force a Brace?

2011-08-17 Thread PMA

harm6 wrote:

at least some of the suggestions should work!!

Make sure the lines to hide are really empty. Or, if you're using some other
context/voice (Lyrics , Dynamics etc.), try to comment these to locate the
problem. Some time ago I had a similiar one: a wrong rhythm in \new Dynamics
disturbed hiding of staves.

Cheers,
   Harm


You're right -- there was an upbeat 16th at the end of that line.
(Maybe I've put off cataract surgery too long.)

Here's another quandry.  In a line of four 2/4 bars, I've got bars
2-3 appearing alone but still centered, by making bars 1 and 4
invisible and forcing a clef and key signature at bar 2.

Trouble is, of course, there is no *brace* at beginning of bar 2.
How can I force one there?   (I see no such force in the docs.)

Thanks,
Pete



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


Re: How does html editor talk to LilyPond ?

2011-08-17 Thread Christopher Berg
Thanks for your help, Mike.  

After experimenting a bit I realized I actually had to put 
/Applications/LilyPond.app/Contents/Resources/bin/lilypond-book in order for 
Terminal to find lilypond-book. (This is probably understood by most of you 
here, but I didn't realize it.) Is it common practice to move lilypond-book out 
of LilyPond's Resources/bin to a more convenient location, or does one always 
use this long path?

I did have a successful run, but the music examples were scattered about my 
home directory. Is there a way to specify an images folder into which 
lilypond-book could put the images?

Terminal gave me the message:

 *** Warning: GenericResourceDir doesn't point to a valid resource directory.
   the -sGenericResourceDir=... option can be used to set this.

but I really don't know what this means or what to do with the information. 

Finally, it took a long time to compile and seems as though it might actually 
be quicker to typeset the examples in lilypond, give the images a name that 
made sense when looking at the html, put them into an images folder for the web 
project, write my own alt tag in the html file, and end up with something like 
this:

src=damilano_1.png
alt=[fantasia theme]

as opposed to something like this:

src=a9/lily-f88e68a9.png
alt=[image of music]

Anyway, I am just wondering what the experiences of other html-to-lilypond-book 
users are. As I mentioned before, I've had success using lilypond-book in 
TexShop for LaTeX documents, but it seems that when using lilypond-book with an 
html file, I'd have to go back and change file names, move things into more 
convenient folders, and change some of the html code to end up with a 
convenient and understandable folder structure. 

On Aug 17, 2011, at 7:20 AM, Mike Solomon wrote:

 On Aug 17, 2011, at 1:13 PM, Christopher Berg wrote:
 
 Hi, I'm hoping this is a basic question with an easy answer:
 
 I'd like to make some web pages with simple musical examples. I've studied 
 the relevant manual pages, but there seems to be some basic information 
 taken for granted in the explanations. 
 
 I put the example code from the manual into an html page in my text editor 
 (BBEdit),
 
 lilypond fragment relative=2
 \key c \minor c4 es g2
 /lilypond
 
 
 
 You have to run lilypond-book first on your document.
 
 In the terminal:
 
 lilypond-book foo.html
 
 where foo.html is your document.
 
 It will produce a new document in which the snippets appear correctly.
 
 Cheers,
 MS

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


Re: How does html editor talk to LilyPond ?

2011-08-17 Thread flup2

Hello,

Here are a few indications you might find usefull.

1. Do not separate de lilypond-book binary from the LilyPond application

2. lilypond-book creates indeed a lot of little files. As you work with
TeXShop, it is possible to create an engine that uses the right command
(lilypond-book) and stores all these file in a temporary folder.

The following is adapted to pdf, but you could adapt it your html.

Philippe

%%

#!/bin/tcsh

set LILYPONDFOLDER = /Applications
set path = ($path $LILYPONDFOLDER/LilyPond.app/Contents/Resources/bin/)

rm -r dir
lilypond-book --output=dir --pdf $1
cd dir
pdflatex --shell-escape $1
mv $1:r.pdf ..

-- 
View this message in context: 
http://old.nabble.com/How-does-html-editor-%22talk%22-to-LilyPond---tp32278786p32284870.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