Re: long \mark with whole rest

2007-07-17 Thread Gilles THIBAULT


  Can anyone explain the behavior of the following snippet to me?  The long 
\mark \markup for some reason pushes the dimensions of the measure to match the 
length of the markup when a whole rest is present in the bar.

  Any fix?
I think it's a bug with multirest.
In this exemple \musicOne works but \musicTwo doesn't :

%
\version 2.10.25

musicOne = {\repeat unfold 40 {c''4}}
musicTwo = {R1*10}

\new Staff {
 \override Score.RehearsalMark #'self-alignment-X = #left
 \mark \markup {this is a really really really long markup}
\musicOne 
   %  \musicTwo
}


More surprising :
the command
\override Score.RehearsalMark #'no-spacing-rods = ##t or ##f
has no effect in both cases !


So, i didn't find a fix for that.
Sorry !

Gilles

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


Re: BRICK WALL

2007-07-17 Thread Valentin Villenave

2007/7/16, Mischa Falkenburg [EMAIL PROTECTED]:


OK Valentin, I tried it (first) totally as you wrote...this did NOT
generate a .pdf file for me(or anyone else) to see :-( .


You must have forgotten some brace when copying/pasting.


But, using some of what you've shown me...but keeping my { }'s  [ ]'s
;-) , I plugged my code so it was like this:


the point is: braces delimit LilyPond's expressions, for example
\repeat only affects one expression:

\repeat unfold 3 {a b c d} === a b c d a b c d a b c d

whereas

\repeat unfold 3 {a b} {c d} === a b a b a b c d


Just to clear-up any confusion, the IDEA behind this piece is that each
phrase/Voice is repeated UNTIL the next vertical chord would be
identical to the first vertical chord. In other words, the last chord
for this piece is the same as the first...g b d r c g. Pretty cerebral, eh?


I love repetitive music too. But as you can see with the attached
file, you might want to adjust your \repeat numbers, because for now
the voices don't end together...

Besides, maybe you'd better put them in a StaffGroup rather than a
GrandStaff; see the .ly file

Valentin
\version 2.10.0

timeAndKey =  { \time 4/4 \key g \major}

voiceA = \relative c'' { \timeAndKey
\repeat unfold 4 { g'4 fis4 d8 e b c d4 fis4 d4 b4 a8 b \times 2/3 {c
d c}d8 g fis
d c4 a2 g4}
}
voiceB = \relative c { \timeAndKey
\repeat unfold 8 { d'8 e fis4 g8 a c4 e4 c8 b a4 g8 fis }
}
voiceC = \relative c {\timeAndKey
\repeat unfold 3 {b'4 a4 b4 e4 g4 a4 fis4 e4~ e4 c4 c8 d r4}
}
voiceD = \relative c' {\timeAndKey
\repeat unfold 7 {r1 r1 g'4 fis4 d8 e b c e4 c8 b a4 g8 fis a8 b
	\times 2/3 {c8 d c} d8 g fis d e4 c8 b a4 g8 fis r1}
}
voiceE = \relative c' {\timeAndKey
	\repeat unfold 5 { c'2 b8 d c b a4 b4 g2~ g2 b8 d c b c4 fis4 
	\times	2/3 {e8 d e} d4~ d4 a2 r4}
}
voiceF = \relative c' {\timeAndKey
	\repeat unfold 8 {g'2( e2 c2) r2 e2(c2 c2) r2 fis'2( d2 b2) r2 d2(
	b2 g1) }
}


\score {
\new StaffGroup {
\new Staff  \voiceA
\new Staff  \voiceB
\new Staff  \voiceC
\new Staff  \voiceD
\new Staff  \voiceE
\new Staff  \voiceF
 
}}
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


lilypond to midi

2007-07-17 Thread Tim
Hi!

Your FAQ describes a number of ways to use midi as an input method.  I wonder 
if one can go the other way and generate a midi file from a lilypond document?

Thanks

Tim





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


Re: lilypond to midi

2007-07-17 Thread Valentin Villenave

2007/7/17, Tim [EMAIL PROTECTED]:


Your FAQ describes a number of ways to use midi as an input method.  I wonder
if one can go the other way and generate a midi file from a lilypond document?


This can be achieved very easily:
http://lilypond.org/doc/v2.10/Documentation/user/lilypond/Creating-MIDI-files#Creating-MIDI-files

Regards,
Valentin


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


Two bars - 3 voices.

2007-07-17 Thread Peter Terpstra

Dear readers,

Tried already many things from the documantation from this, every time i run
stuck. Then i start al over and try again.

I want to have two bars for guitar 1 and guitar 2, each guitar has 3 voices.
It must also produce an good simultanius midi.

What is the best setup for this?

Kind regards,

P.


-- 
mailto:[EMAIL PROTECTED]



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


Re: Two bars - 3 voices.

2007-07-17 Thread Valentin Villenave

2007/7/17, Peter Terpstra [EMAIL PROTECTED]:


Tried already many things from the documantation from this, every time i run
stuck. Then i start al over and try again.


Where's the problem precisely?


I want to have two bars for guitar 1 and guitar 2, each guitar has 3 voices.
It must also produce an good simultanius midi.


I don't exactly know what you need, but here's my advice: install the
jEdit editor on your computer, open it, go to plugin manager and
install the LilyPondTool plugin. Once you've installed it, create a
new (empty) .ly file, save it, and the LilyPondTool toolbar will
appear. Click on the icon at the left (Document Wizard), and this way
it'll become much, much easier to create your score, add instruments,
etc.

Here's the template I get in 5 seconds:

% Created on Tue Jul 17 11:40:46 CEST 2007
\version 2.11.0

\header {
title = Cool piece
subtitle = for two guitars
composer = Peter Terpstra 
tagline = LilyPond rules!
}



staffClassicalGuitar = \new Staff  {
\time 4/4
\set Staff.instrumentName=Classical Guitar
\set Staff.midiInstrument=acoustic guitar (nylon)
\transposition c,
\key c \major
\clef treble
\relative c' {  
% Type notes here; if you need three voices, here's the template:
%%   a b c d
%% \\c d e f
%% \\f g a b
  
\bar |.
}

}
staffClassicalGuitarII = \new Staff  {
\set Staff.instrumentName=Classical Guitar
\set Staff.midiInstrument=acoustic guitar (nylon)
\transposition c,
\key c \major
\clef treble
\relative c' {  
% Type notes here

\bar |.
}

}


\score {

\staffClassicalGuitar
\staffClassicalGuitarII


\midi {
}

\layout  {
}
}

\paper {
}


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


Re: tuplets, tremolo and cross staff

2007-07-17 Thread Philippe Raynaud
To Neil Puttock

Hello Neil,
thank you for your help. But it did not work.
Nevertheless, your remark about the fact that a note should not be surrounded
 by brace  has put me on the way to the solution.
 This solution is strange, and certainly incorrect,
 but the midi output doesn't make any difference...
Instead of
 \times 2/3 { \repeat tremolo 3 { \tupCross fa8 } }
I have to write
 \times 2/3 { \tupCross \repeat tremolo 3 { fa16 s16 } }
So there are two notes inside the brace...

Once more thank you for your help:
 I have been fighting with this matter for 5 days.
... just a little help from my friends

Anyway, if this solution can be agreed, it could be a good repository...
Best regards
Phil





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


Re: Tremolo won't produce desired output

2007-07-17 Thread Wilbert Berendsen
Op maandag 16 juli 2007, schreef Neil Puttock:
 Hello,

 I'm trying to typeset a whole-bar tremolo in 3/8 time, but it's producing
 incorrect output.

 \version 2.10.25
 \paper { ragged-right = ##t }
 \relative c' {
 \time 3/8
 \repeat tremolo 6 { c32 e32 }
 }

This looks like a bug, still present in 2.11.27. 
When I change it to 

\paper { ragged-right = ##t }
\relative c' {
\time 2/8
\repeat tremolo 4 { c32 e32 }
}

i.e. just make it a 2/8 instead of a 3/8 the output is correct. So there is 
some calculation mistake regarding the dots/beams somewhere.

Met vriendelijke groet,
Wilbert Berendsen

-- 
http://www.wilbertberendsen.nl/
You must be the change you wish to see in the world.
-- Mahatma Gandi


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


Fwd: long \mark with whole rest

2007-07-17 Thread Neil Thornock

Thought I'd forward Kieren's response to the list, as I couldn't find her
fix for the problem anywhere else.

-- Forwarded message --
From: Kieren MacMillan [EMAIL PROTECTED]
Date: Jul 16, 2007 4:23 PM
Subject: Re: long \mark with whole rest
To: Neil Thornock [EMAIL PROTECTED]

Hi Neil,


Can anyone explain the behavior of the following snippet to me?


The markup belongs to the (entire) measure, so Lilypond stretches
the measure to encompass the complete markup.


Any fix?


\once \override Score.RehearsalMark #'X-extent = #'(0 . 0)

Hope this helps!
Kieren.
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Tremolo won't produce desired output

2007-07-17 Thread Mats Bengtsson
This is a known bug in LilyPond, see 
http://lists.gnu.org/archive/html/bug-lilypond/2007-06/msg00112.html


However, as you can see in that email, it's easy to get the desired 
output, just use

\repeat tremolo 4 { c32. e32. }

  /Mats

Quoting Wilbert Berendsen [EMAIL PROTECTED]:


Op maandag 16 juli 2007, schreef Neil Puttock:

Hello,

I'm trying to typeset a whole-bar tremolo in 3/8 time, but it's producing
incorrect output.

\version 2.10.25
\paper { ragged-right = ##t }
\relative c' {
\time 3/8
\repeat tremolo 6 { c32 e32 }
}


This looks like a bug, still present in 2.11.27.
When I change it to

\paper { ragged-right = ##t }
\relative c' {
   \time 2/8
   \repeat tremolo 4 { c32 e32 }
}

i.e. just make it a 2/8 instead of a 3/8 the output is correct. So there is
some calculation mistake regarding the dots/beams somewhere.

Met vriendelijke groet,
Wilbert Berendsen

--
http://www.wilbertberendsen.nl/
You must be the change you wish to see in the world.
   -- Mahatma Gandi


___
lilypond-devel mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/lilypond-devel







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


Re: Fonts in SVG output

2007-07-17 Thread Stuart Pullinger
Hi,

I thought I ought to follow up what Nick has said with a little
explanation of what I have done. (This is probably more appropriate to
the lilypond-devel list but, since the discussion was started on
*-user, I am following up here). I should also point out that I am not
a C/Guile/Scheme expert so there may be a much easier way to do the
following.

I have a database with music and performance data in it. I need to
create a score and display performance data above each note in the
score. I have written a Python script which creates a *.ly file from a
query to the database. Each line in the file contains just 1 note with
a comment at the end which contains the note ID number (which is unique
to each note in the database). The file is processed by a slightly
hacked version of lilypond to produce an *.svg file.

I changed the interpret_stencil_expression function, in
the ./lily/stencil-interpret.cc C file, after the

head == ly_symbol2scm (grob-cause)

line. (If I understand correctly, the grob-cause function is called
once to create the links to source file lines in the pdf output). It
now calls grob-cause with an extra begin parameter, followed by
calling itself, followed by grob-cause with an end parameter.

I changed the grob-cause function in the ./scm/output-svg.scm scheme
file to create a link to the originating line in the *.ly file on each
notehead. It creates an opening tag the first time it is called and a
closing tag the second time.

I then process the *.svg file to follow each link to the *.ly file and
read the originating note ID number from the comment at the end of the
line. I can then use the ID to access relevant data in the database and
display it above the notehead.

There are several problems with this approach:
The hacks break support for any other output other than SVG.
- Solution: I keep the hacked version in its own source tree and link
to it using the --relocate option.

The output could be made more informative by adding more/different data
to the svg output. For example, so that an SVG line says I am a ledger
line or I am a note stem. I hope to implement this in the not too
distant future. I'll keep the list posted.

No SVG viewers that I am aware of support multiple pages.
- Solution: An XSL transform or simple Python script could extract the
pages from the SVG output. I just haven't got around to this yet.

No SVG viewers that I am aware of actually use the font descriptions in
the lilypond SVG output - they rely on the correct font being available
in the system font directory.

Inkscape and rsvg-view (part of librsvg on most GNU-Linux distros) seem
to be the most reliable for displaying lilypond SVG output. I have had
some problems with SVGs and fonts. It seems to work OK if I use the
same version of lilypond for hacking and normal use and have copies of
the fonts in my ~/.fonts directory (GNU-Linux).

If anyone is interested in my hacks I would be happy to provide
code/patches.

Stuart


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


Re: long \mark with whole rest

2007-07-17 Thread Valentin Villenave

2007/7/17, Neil Thornock [EMAIL PROTECTED]:

Thought I'd forward Kieren's response to the list, as I couldn't find her
fix for the problem anywhere else.


Not only can you forward it to the list, but you should also consider
adding a snippet to the LSR in such a case...

http://lsr.dsi.unimi.it/LSR/Item?id=301

Regards,
Valentin


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


RE:ly to midi

2007-07-17 Thread Kieran Coulter
Hi Tim,

When you include a MIDI block in the Lilypond file, it automatically produces a 
MIDI file along with the pdf. 

Cheers,

Kieran Coulter


Message: 3
Date: Tue, 17 Jul 2007 08:42:22 + (UTC)
From: Tim [EMAIL PROTECTED]
Subject: lilypond to midi
To: lilypond-user@gnu.org
Message-ID: [EMAIL PROTECTED]
Content-Type: text/plain; charset=us-ascii

Hi!

Your FAQ describes a number of ways to use midi as an input method.  I wonder 
if one can go the other way and generate a midi file from a lilypond document?

Thanks

Tim










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


that Brick Wall...

2007-07-17 Thread Mischa Falkenburg

...is now DOWN.
Thanks to Neil  Valentin for their suggestions and help. I understand a 
LOT more than I did when I started this project.

I feel confident enough now to continue moving forward :-) .

Thanks again,
Mischa


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


Re: Tremolo won't produce desired output

2007-07-17 Thread Neil Puttock

Hi Mats,

On 7/17/07, Mats Bengtsson [EMAIL PROTECTED] wrote:


This is a known bug in LilyPond, see
http://lists.gnu.org/archive/html/bug-lilypond/2007-06/msg00112.html

However, as you can see in that email, it's easy to get the desired
output, just use
\repeat tremolo 4 { c32. e32. }




Unfortunately that's even worse - it produces output similar to what I
posted above, but with hemidemisemiquaver barring.

After a bit of experimenting, the best I can come up with is this,

\version 2.10.25
\paper { ragged-right = ##t }
\relative c'' {
   \time 3/8
   c4.*1/8
   \override Stem #'stencil = ##f
   \override NoteHead #'transparent = ##t
   e32 e f f
   \revert Stem #'stencil
   \revert NoteHead #'transparent
   e4.*1/8 s16 s32*3 |
}

which isn't very satisfactory.

Surely there's a simpler and more elegant solution?

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


Re: Tremolo won't produce desired output

2007-07-17 Thread Rune Zedeler

Neil Puttock skrev:

Unfortunately that's even worse - it produces output similar to what I 
posted above, but with hemidemisemiquaver barring.



Yikes.

For now you can use

  \once \override Beam #'gap-count = 3
  c32.*4[ e32.*4]

which is also an ugly kludge though :-/

-Rune


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


Re: Tremolo won't produce desired output

2007-07-17 Thread Neil Puttock

Hi Rune,

On 7/17/07, Rune Zedeler [EMAIL PROTECTED] wrote:



Yikes.

For now you can use

   \once \override Beam #'gap-count = 3
   c32.*4[ e32.*4]

which is also an ugly kludge though :-/

-Rune




That's great. It's much better than my rather byzantine hack, and produces
output indistinguishable from the real thing.

You've reminded me I must read the manual more carefully; I missed gap-count
in the program reference.

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


ooolilypond user

2007-07-17 Thread PabloZum
OooLilyPond seems to be EXACTLY what I was looking for to write a book on jazz 
improvisation.

I use Window XP and I can get it to insert simple scores in OpenOffice.org such 
as:

\key c \minor \relative c'' { c16 es, d es c es d es c' es, d es c es d es }

which is the test given in the sourceforge webpage.

However, other scores that are created in LilyPond without problems, such as 
this one given in the LilyPond tutorial:

 \version 2.10.10
 melody = \relative c' {
\clef treble
\key c \major
\time 4/4
 
a b c d
 }
 
 text = \lyricmode {
Aaa Bee Cee Dee
 }
 
 harmonies = \chordmode {
a2 c2
 }
 
 \score {

   \new ChordNames {
  \set chordChanges = ##t
  \harmonies
   }
\new Voice = one {
   \autoBeamOff
   \melody
}
\new Lyrics \lyricsto one \text

\layout { }
\midi { }
 }get quite a lot of syntax errors and unknown escaped strings and 
unexpected strings.

Does OooLilyPond have a shorter scope than LilyPond?

I've tried running both lilypond.exe and lilipon-window.exe as the 
executable on config, with the same results.

Thank you!

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


Re: ooolilypond user

2007-07-17 Thread Martial

just write this
---cut-
 
   \new ChordNames {
 \set chordChanges = ##t
 \chordmode {  a2 c2  }
 }

  \new Voice = one { \autoBeamOff
\relative c' { \clef treble  \key c \major  \time 4/4  a b c d }
}

  \new Lyrics \lyricsto one \lyricmode { Aaa Bee Cee Dee}
   
cut---

OooLilyPond seems to be EXACTLY what I was looking for to write a book 
on jazz improvisation.
 
I use Window XP and I can get it to insert simple scores in 
OpenOffice.org such as:
 
\key c \minor \relative c'' { c16 es, d es c es d es c' es, d es c es d es }
 
which is the test given in the sourceforge webpage.
 
However, other scores that are created in LilyPond without problems, 
such as this one given in the LilyPond tutorial:
 


 \version 2.10.10
 melody = \relative c' {
\clef treble
\key c \major
\time 4/4
 
a b c d

 }
 
 text = \lyricmode {

Aaa Bee Cee Dee
 }
 
 harmonies = \chordmode {

a2 c2
 }
 
 \score {


   \new ChordNames {
  \set chordChanges = ##t
  \harmonies
   }
\new Voice = one {
   \autoBeamOff
   \melody
}
\new Lyrics \lyricsto one \text

\layout { }
\midi { }
 }

get quite a lot of syntax errors and unknown escaped strings and 
unexpected strings.
 
Does OooLilyPond have a shorter scope than LilyPond?
 
I've tried running both lilypond.exe and lilipon-window.exe as the 
executable on config, with the same results.
 
Thank you!




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


Re: Latex symbol from a package

2007-07-17 Thread Mats Bengtsson

The short answer is that there is no simple generic answer to your
question. If you can figure out exactly what font file and what
symbol from that font is used, then you can probably use it if the font 
is available in a form that LilyPond can handle.


  /Mats

Quoting Mehmet Okonsar [EMAIL PROTECTED]:


How can I use a symbol named mysymbol which is in a package named
mypackage in a score?
--
 |\___/|
 | . . |
 ` =;= '___
8  .-.  /   _
8 / _ \/   .  . mehmet okonsar
 | / \| --   pianist-composer-conductor

Nothing astonishes men so much as common sense and plain dealing.
-- Ralph Waldo Emerson
If you live in a country run by committee, be on the committee.
-- Graham Summer
God is really only another artist.  He invented the giraffe, the
elephant
and the cat.  He has no real style, He just goes on trying other
things.
-- Pablo Picasso
*
My weight is perfect for my height -- which varies.
Finagle's Second Law:
No matter what the anticipated result, there will always be
someone eager to (a) misinterpret it, (b) fake it, or (c) believe it
happened according to his own pet theory.

You cannot kill time without injuring eternity.










___
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


file refuses to line or page break

2007-07-17 Thread Kieran Coulter
Hi everyone,This one really has me stumped! I've tried everything, and the file refuses to either a line or page break at the end of the 2nd last page of the included pdf. I'd really appreciate any help to figure out what I've done wrong!Thanks,Kieran Coulter

PP prelude almostdone.ly
Description: Binary data
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


file refuses to line or page break

2007-07-17 Thread Kieran Coulter
This is just a test email to see if the mailing list is rejecting my emails when I try to include attachments, like .ly and .pdf files. Does anyone know if there is an attachment limit for emails to the list?Thanks,Kieran Coulter___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


ugly output :(

2007-07-17 Thread Daniele Degano
hi, im new to the program and i was having some difficulty.  i switched time
signatures in my piece, and the program put a bar in the wrong place (ie, it
didnt count properly).  its a bit of a vague description, and i would not mind
submitting code if anyone were interested.  thanks!



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