Embedded preview in output EPS files

2007-05-07 Thread Clifford W. Racz

I read the manual.
I searched the source code.

To use an EPS file in a word processing document (such as MS Word), I am 
using a command like this:


  lilypond -b eps --png --pdf foobar.ly

The EPS prints fine, but there is no embedded preview in the file.  That 
is completely understood.  The documentation shows no option for adding 
a bitmapped preview to the EPS so that it will show up in the word 
processing document.


I can create one with commands like:

  epstool -t6p foobar.eps fooNew.eps
  epstool -w foobar.eps fooW.eps

Is there a way that this can be done directly with LilyPond?
I think that if the PNG could be embedded as a preview for the *.eps 
files, that would be exactly what I am looking for.


I am not very familiar with Scheme, so while I can tell in those *.scm 
instructions, there are relating lines of code, but I don't know what 
they mean.


Please do not confuse my question with the preview functionality:

  lilypond --preview foobar.ly

This is a preview of the music, not an embedded bitmap of the EPS file.

System information:
I am using v2.10.23 on the Windows platform
I would like to include about 100 snippets into a music book that I am 
assisting a committee with.  So, they will not understand the concept 
that music can print but not show up on the screen.  They are Windows 
users, and expect that this source document will be available in MS Word 
for them.



%foobar.ly source
#(set! toplevel-score-handler print-score-with-defaults)
#(set! toplevel-music-handler
(lambda (p m)
 (if (not (eq? (ly:music-property m 'void) #t))
  (print-score-with-defaults
   p (scorify-music m p)

#(ly:set-option (quote no-point-and-click))
#(define inside-lilypond-book #t)
#(define version-seen #t)

\paper {
#(define dump-extents #t)
indent = 0\mm
line-width = 160\mm - 2.0 * 0.4\in
ragged-right = ##t
force-assignment = #""
line-width = #(- line-width (* mm  3.00))
}

\layout {
\context {
\Staff
\remove Time_signature_engraver
}
}

\relative c'
{
\sourcefileline 42
c d e f g a b c d e f g a b c d e f g'
}





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


Re: weird seg-fault involving lyrics; take two

2007-05-07 Thread David Bobroff
Yup, updating to 2.10.23 made the problem go away.

Thanks!

-David

John Mandereau wrote:
> Le lundi 07 mai 2007 à 17:50 +, David Bobroff a écrit :
>   
>> I sent a problem to the list the other day.  I have not gotten any
>> response.  Perhaps my example file was too big.  Here is the problem
>> again with a smaller input file:
>>
>> I'm having a problem involving lyrics.  In the following file, if I
>> comment out the line with \addlyrics LilyPond will process it.  If I
>> leave that line in, I get a segmentation fault *unless* I comment out
>> the other set of cues.
>>
>> In short; I can get all the cues but no lyrics, or lyrics and no other
>> cues except for the ones with the lyrics.  Is this a software or wetware
>> problem?
>> 
>
> Can't reproduce: your snippet compiles fine on my GNU/Linux box with
> both 2.10.23 and 2.11.23, even if "\que" is uncommented.  I recommend
> you to upgrade to 2.10.23.
>
> Cheers
> John
>
>   
>> -David
>>
>> \version "2.10.10"
>>
>> cue = {\set fontSize = #-3.5 }
>>
>> euc = {\unset fontSize }
>>
>>
>> main = \relative c' {
>>   s1
>>   c1
>>   s1
>>   R1
>> }
>>
>> que = \relative c'' {
>>   s1*2
>> %% Commenting out the block below allows lyrics in the first bar
>> %%
>>   <<
>> {
>>   \cue
>>   c8 d e f g a b c
>> }
>> \\
>> {
>>   R1
>> }
>>   >>
>> %% Commenting out the block above allows lyrics in the first bar
>> }
>>
>> barOne = \relative c'' {
>>   <<
>> {
>>   <<
>> \context Voice = "vox" {
>>   \cue
>>   c'4 b a g
>>   \euc
>> }
>> %% Commenting out the lyrics allows the later cue to work
>> \addlyrics  { vo- cal cue notes }
>>   >>
>> }
>> \\
>> {
>>   R1
>> }
>>   >>
>> }
>>
>> \score {
>>   \context Staff <<
>> \barOne
>>  %   \que
>> \main
>>   >>
>> }
>>
>> 
>
>
>
>   



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


Re: weird seg-fault involving lyrics; take two

2007-05-07 Thread John Mandereau
Le lundi 07 mai 2007 à 17:50 +, David Bobroff a écrit :
> I sent a problem to the list the other day.  I have not gotten any
> response.  Perhaps my example file was too big.  Here is the problem
> again with a smaller input file:
> 
> I'm having a problem involving lyrics.  In the following file, if I
> comment out the line with \addlyrics LilyPond will process it.  If I
> leave that line in, I get a segmentation fault *unless* I comment out
> the other set of cues.
> 
> In short; I can get all the cues but no lyrics, or lyrics and no other
> cues except for the ones with the lyrics.  Is this a software or wetware
> problem?

Can't reproduce: your snippet compiles fine on my GNU/Linux box with
both 2.10.23 and 2.11.23, even if "\que" is uncommented.  I recommend
you to upgrade to 2.10.23.

Cheers
John

> -David
> 
> \version "2.10.10"
> 
> cue = {\set fontSize = #-3.5 }
> 
> euc = {\unset fontSize }
> 
> 
> main = \relative c' {
>   s1
>   c1
>   s1
>   R1
> }
> 
> que = \relative c'' {
>   s1*2
> %% Commenting out the block below allows lyrics in the first bar
> %%
>   <<
> {
>   \cue
>   c8 d e f g a b c
> }
> \\
> {
>   R1
> }
>   >>
> %% Commenting out the block above allows lyrics in the first bar
> }
> 
> barOne = \relative c'' {
>   <<
> {
>   <<
> \context Voice = "vox" {
>   \cue
>   c'4 b a g
>   \euc
> }
> %% Commenting out the lyrics allows the later cue to work
> \addlyrics  { vo- cal cue notes }
>   >>
> }
> \\
> {
>   R1
> }
>   >>
> }
> 
> \score {
>   \context Staff <<
> \barOne
>  %   \que
> \main
>   >>
> }
> 




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


weird seg-fault involving lyrics; take two

2007-05-07 Thread David Bobroff
I sent a problem to the list the other day.  I have not gotten any
response.  Perhaps my example file was too big.  Here is the problem
again with a smaller input file:

I'm having a problem involving lyrics.  In the following file, if I
comment out the line with \addlyrics LilyPond will process it.  If I
leave that line in, I get a segmentation fault *unless* I comment out
the other set of cues.

In short; I can get all the cues but no lyrics, or lyrics and no other
cues except for the ones with the lyrics.  Is this a software or wetware
problem?

-David

\version "2.10.10"

cue = {\set fontSize = #-3.5 }

euc = {\unset fontSize }


main = \relative c' {
  s1
  c1
  s1
  R1
}

que = \relative c'' {
  s1*2
%% Commenting out the block below allows lyrics in the first bar
%%
  <<
{
  \cue
  c8 d e f g a b c
}
\\
{
  R1
}
  >>
%% Commenting out the block above allows lyrics in the first bar
}

barOne = \relative c'' {
  <<
{
  <<
\context Voice = "vox" {
  \cue
  c'4 b a g
  \euc
}
%% Commenting out the lyrics allows the later cue to work
\addlyrics  { vo- cal cue notes }
  >>
}
\\
{
  R1
}
  >>
}

\score {
  \context Staff <<
\barOne
 %   \que
\main
  >>
}


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


Re: jazz chords superscript

2007-05-07 Thread Eyolf Oestrem

On 07.05.2007 (12:51), steve berthiaume wrote:

note:  i'm still trying to decode the regression test- what's the 
"ignatzek"

thing all about?  is that something someone added to lilypond, and the
program will know what to do with it?


"Ignatzek" is an unfunctional set of chord designations which nobody
uses :-)

Eyolf

--
I'm personally quite happy with one stable release every two years, and
am of the opinion that trying to release more will mean we'll have to
rename the distro from "stable" to "wobbly".
-- Scott James Remnant on debian-devel


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


re: jazz chords superscript

2007-05-07 Thread steve berthiaume

mats advice helped; i'll post the code as reference for anyone else.

note:  i'm still trying to decode the regression test- what's the "ignatzek"
thing all about?  is that something someone added to lilypond, and the
program will know what to do with it?

here's the code:

\version "2.10.20"


sl = {
  \override NoteHead #'style = #'slash
  \override Stem #'transparent = ##t
}

\score

{\relative c'



   {  \sl
   b'4^\markup {"G#mi" \super "9"} b b b
   }

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


Re: ottava

2007-05-07 Thread David Raleigh Arnold
Mats Bengtsson wrote:

> How does the musician know which of the voices the ottava bracket
> should apply to?

It's always the top voice.  daveA

-- 
Free download of technical exercises worth a lifetime of practice:
http://www.openguitar.com/dynamic.html  You can play the cards
you're dealt, or improve your hand with DGT.  Very easy guitar
solos, duets, exercises. http://www.openguitar.com/contact.html



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


Re: Feature request: discretionary lyrics

2007-05-07 Thread Mats Bengtsson
I forward this feature request to the developers list. However, since 
LilyPond
is freeware, the best way to get such a feature implemented is to 
implement it

yourself or make someone else sufficiently interested in the idea to do the
implementation.

  /Mats

Zoltán Selyem wrote:

Hello all,


Briefly, if you now TeX, I'd like something for Lilypond lyrics which
works like \discretionary{}{}{} in TeX.

Explanation from The TeXbook:
"A discretionary break consists of three sequences of characters
called the pre-break, post-break, and no-break texts. The idea is that
if a line break occurs here, the pre-break text will appear at the end
of the current line and the post-break text will occur at the
beginning of the next line; but if no break occurs, the no-break text
will appear in the current line."

---

Some Hungarian words change their spelling when they are hyphenated.
(I think this happens with other languages too. Maybe with German?)

An example: the word "asszony" (= woman) will be "asz -- szony" when
hyphenated. But if I write "asz -- szony" in the lyrics and the two
syllables are close to each other I get "aszszony", which is wrong.

(In TeX, I could write this:a\discretionary{sz-}{sz}{ssz}ony  )

It would be nice if I could tell Lilypond to write "asz -- szony" if
there is enough space for the hyphen; and write "asszony" if the
hyphen is removed.


Thank you,

Zoltán



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


--
=
Mats Bengtsson
Signal Processing
Signals, Sensors and Systems
Royal Institute of Technology
SE-100 44  STOCKHOLM
Sweden
Phone: (+46) 8 790 8463 
   Fax:   (+46) 8 790 7260
Email: [EMAIL PROTECTED]
WWW: http://www.s3.kth.se/~mabe
=



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


Re: How do I typeset this!?

2007-05-07 Thread Matthias Berndt
Urgh, sorry, I just forgot the \\ between the two Voices :)
thanks!


signature.asc
Description: This is a digitally signed message part.
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Feature request: discretionary lyrics

2007-05-07 Thread Zoltán Selyem

Hello all,


Briefly, if you now TeX, I'd like something for Lilypond lyrics which
works like \discretionary{}{}{} in TeX.

Explanation from The TeXbook:
"A discretionary break consists of three sequences of characters
called the pre-break, post-break, and no-break texts. The idea is that
if a line break occurs here, the pre-break text will appear at the end
of the current line and the post-break text will occur at the
beginning of the next line; but if no break occurs, the no-break text
will appear in the current line."

---

Some Hungarian words change their spelling when they are hyphenated.
(I think this happens with other languages too. Maybe with German?)

An example: the word "asszony" (= woman) will be "asz -- szony" when
hyphenated. But if I write "asz -- szony" in the lyrics and the two
syllables are close to each other I get "aszszony", which is wrong.

(In TeX, I could write this:a\discretionary{sz-}{sz}{ssz}ony  )

It would be nice if I could tell Lilypond to write "asz -- szony" if
there is enough space for the hyphen; and write "asszony" if the
hyphen is removed.


Thank you,

Zoltán



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


Re: can't open .ly file

2007-05-07 Thread Mats Bengtsson



Themis Matsoukas wrote:
Well..., no, I forgot about convert-ly. However, I cannot find it on 
the menu and when I invoke it the terminal, I receive tcsh: 
convert-ly: Command not found. This confuses me because I thought that 
convert-ly is installed along with lilypond. Am I missing something?
I've never used LilyPond on a Mac myself, but as far as I can 
understand, there
is an option "Update syntax" in the compile menu for LilyPond, see the 
section

"Updating with convert-ly" in the manual.
If you want to run convert-ly or any other of the utility programs from 
the command

line, please first read the section "Notes for the MacOS X app".

   /Mats


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


Re: jazz chords superscript

2007-05-07 Thread Mats Bengtsson

What LilyPond version do you use? Please always try to include a complete
(but short) example of LilyPond code, that can be run directly through 
LilyPond,
which shows what you have tried, when sending a question to the mailing 
list.


I suspect that the problem is not the \super command, which is a valid
markup command, but hash mark "#" in G#mi, since hash marks are used
to tell LilyPond that "Here comes some embedded code in the Scheme
programming language". Try adding double quotes around the "G#mi"
and see if it works better.

  /Mats

steve berthiaume wrote:

hello,

i'm trying to define a set of custom chords for use in jazz charts, 
and i would like to be able to have the numbers (7, 9, 11, 13, etc) 
raised above the chord name.  I use Brandt-Roemer standardized chord 
notation, so my chords look like Cmi7, Cma9, Cdim, Cmi7b5 etc.


I've checked out the regression test, 
 
and it says to add a superscript, the number has to be preceded by 
\super.  i've tried this in the following example, and i get an 
'unknown escaped string "\super"' error:



b4^\markup {G#mi \super "9"}

what am i doing wrong?

thanks,

-steve


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


--
=
Mats Bengtsson
Signal Processing
Signals, Sensors and Systems
Royal Institute of Technology
SE-100 44  STOCKHOLM
Sweden
Phone: (+46) 8 790 8463 
   Fax:   (+46) 8 790 7260
Email: [EMAIL PROTECTED]
WWW: http://www.s3.kth.se/~mabe
=



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


Re: How do I typeset this!?

2007-05-07 Thread Mats Bengtsson

I would rather use

\new Voice << { 1~2 } \\ { e''2. c''4} >>

see the section on Basic polyphony in the manual.

  /Mats

Rune Zedeler wrote:

Citat Matthias Berndt <[EMAIL PROTECTED]>:

  

consider the following bit of markup:
\new Voice << { 1~2 } { e''2. c''4} >>



I am not sure I understand what you are trying to achieve.
To me it seems like you are trying to put two voices into one voice. You create
one voice (the \new Voice statement) and asks it to playi two whole notes at
the same time as a dotted half note.
I don't have lily here, but doesn't it give the desired result if you replace
"Voice" with "Staff", or, alternatively,  removes the "\new Voice" altogether?

-Rune



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


--
=
Mats Bengtsson
Signal Processing
Signals, Sensors and Systems
Royal Institute of Technology
SE-100 44  STOCKHOLM
Sweden
Phone: (+46) 8 790 8463 
   Fax:   (+46) 8 790 7260
Email: [EMAIL PROTECTED]
WWW: http://www.s3.kth.se/~mabe
=



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


Re: hiding empty staves

2007-05-07 Thread Mats Bengtsson

Quoting fiëé visuëlle <[EMAIL PROTECTED]>:


Ahoi!

In LP 2.6 I could hide empty staves (also in the first system) with
\layout { \context { \RemoveEmptyStaffContext } }

Can't remember if I also needed
\set Score . skipBars = ##t

In LP 2.10 an empty stave in the first system is only hidden with
\override Score . VerticalAxisGroup #'remove-first = ##t

But that can't go into the \layout block.


Why not? Just use
\layout{
 ...
 \context{
   \Score
   \override VerticalAxisGroup #'remove-first = ##t
 }
}


  /Mats




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