Re: Cropped output

2023-07-23 Thread Henrik Frisk
Den fre 21 juli 2023 kl 13:43 skrev Hans Aikema :

>
>
> On 21 Jul 2023, at 13:36, Henrik Frisk  wrote:
>
> 
>
>
> Den tors 20 juli 2023 kl 18:10 skrev Jean Abou Samra :
>
>> Le jeudi 20 juillet 2023 à 17:52 +0200, Henrik Frisk a écrit :
>>
>> None at all, but maybe I'm misunderstanding the command. Here's what I do:
>>
>> $ lilypond --pdf -dcrop='#t' test6.ly
>> GNU LilyPond 2.24.1 (running Guile 3.0)
>> Processing `test6.ly'
>> Parsing...
>> Interpreting music...
>> Preprocessing graphical objects...
>> Calculating line breaks...
>> Drawing systems...
>> Converting to `test6.pdf'...
>> Success: compilation successfully completed
>>
>> Test6.pdf is a regular pdf.
>>
>>
>>
>>
>> You should also find a separate file Test6.cropped.pdf with cropped
>> output.
>>
>> If you don't: do you have any ly:set-option calls or such in the file?
>>
>> No, I didn't, but I identified the problem. I also had
>
> \include "lilypond-book-preamble.ly"
>
> as this was the old way of getting a cropped output.
>
> Which essentially would also count as a 'yes' to Jean's question as that (
> https://github.com/lilypond/lilypond/blob/master/ly/lilypond-book-preamble.ly)
> is including a few ly:set-option entries into your file
>
> Yes, my reply was strange. My "no" was to whether there was a .cropped.pdf
file created and the solution was obviously thanks to Jeans suggestion.
Sorry for the unclarity


Re: Cropped output

2023-07-21 Thread Henrik Frisk
Den tors 20 juli 2023 kl 18:10 skrev Jean Abou Samra :

> Le jeudi 20 juillet 2023 à 17:52 +0200, Henrik Frisk a écrit :
>
> None at all, but maybe I'm misunderstanding the command. Here's what I do:
>
> $ lilypond --pdf -dcrop='#t' test6.ly
> GNU LilyPond 2.24.1 (running Guile 3.0)
> Processing `test6.ly'
> Parsing...
> Interpreting music...
> Preprocessing graphical objects...
> Calculating line breaks...
> Drawing systems...
> Converting to `test6.pdf'...
> Success: compilation successfully completed
>
> Test6.pdf is a regular pdf.
>
>
>
>
> You should also find a separate file Test6.cropped.pdf with cropped output.
>
> If you don't: do you have any ly:set-option calls or such in the file?
>
> No, I didn't, but I identified the problem. I also had

\include "lilypond-book-preamble.ly"

as this was the old way of getting a cropped output. This apparently
interfered with -dcrop='#t'. No it works both from as a cli argument and as
set in the file: #(ly:set-option 'crop #t)
Thank for the help and sorry for the confusion.

/Henrik


Re: Cropped output

2023-07-20 Thread Henrik Frisk
> Hi,
>
> I know that this is an old question but I'm seeing some strange behavior.
> On Mac OS none of the suggested alternatives appear to work though it did
> on Linux. The only way I can seem to get a cropped output is to output an
> EPS file.
>
> What tools does the cli option -dcrop='#t' use. Maybe I'm missing
> something on my system.
>
>
>
> -dcrop='#t' does not use any extra tools.
>

None at all, but maybe I'm misunderstanding the command. Here's what I do:

$ lilypond --pdf -dcrop='#t' test6.ly
GNU LilyPond 2.24.1 (running Guile 3.0)
Processing `test6.ly'
Parsing...
Interpreting music...
Preprocessing graphical objects...
Calculating line breaks...
Drawing systems...
Converting to `test6.pdf'...
Success: compilation successfully completed

Test6.pdf is a regular pdf.

/h


Cropped output

2023-07-20 Thread Henrik Frisk
Hi,

I know that this is an old question but I'm seeing some strange behavior.
On Mac OS none of the suggested alternatives appear to work though it did
on Linux. The only way I can seem to get a cropped output is to output an
EPS file.

What tools does the cli option -dcrop='#t' use. Maybe I'm missing something
on my system.

This is on the latest version.

Thanks för any input!


Re: Generate music with scheme

2022-04-11 Thread Henrik Frisk
>
> You could also use append-map which will concatenate the lists without
> the inner call to make-sequential-music:
>
> 
> {
>   $(make-sequential-music
>(append-map
> (lambda (x) (list
>  #{ $(ly:make-pitch 0 x) 4 #}
>  #{ \mark \markup \override #'(font-size . -3) 10 #} ))
> (iota 4 1)))
> }
> 
>
> In fact, using list-splicing, you can eliminate the outer call to
> make-sequential-music as well:
>
> 
> {
>   $@(append-map
>(lambda (x) (list
> #{ $(ly:make-pitch 0 x) 4 #}
> #{ \mark \markup \override #'(font-size . -3) 10 #} ))
>(iota 4 1))
> }
> 
>
> Thanks Aaron, that is indeed very neat.


> Also note the above use of #{ #} to escape music syntax within scheme,
> which can often be more abbreviated.
>

Yes, another thing I had forgotten about!

Best,
/h


Re: Generate music with scheme

2022-04-11 Thread Henrik Frisk
Den mån 11 apr. 2022 kl 12:30 skrev Jean Abou Samra :

>
>
> Le 11/04/2022 à 11:50, Henrik Frisk a écrit :
> > Hi,
> >
> > I have not worked with scheme and lilypond for some years. I realize
> > that this is more of a scheme question than Lilypond, but perhaps
> > someone knows how to do this. I can generate four notes with the
> > following:
> >
> >   \version "2.18.0"
> >   \score {
> > {
> >   $ (make-sequential-music
> >(map (lambda (x)
> >   (make-music 'NoteEvent
> >   'pitch
> >   (ly:make-pitch 0 x)
> >   'duration
> >   (ly:make-duration 2)))
> > (list 1 2 3 4)))
> > }
> >   }
> >
> > However, if I would like to add a markup to each note to each note I
> > fail. I would have guessed something like this would do it but it
> > generates an (almost) empty staff:
> >
> > \version "2.18.0"
> >   \score {
> > {
> >$(make-sequential-music
> >(map (lambda (x)
> >(make-music 'NoteEvent
> >'pitch
> >(ly:make-pitch 0 x)
> >'duration
> >(ly:make-duration 2))
> >(make-music 'MarkEvent
> >'label
> >(markup
> > #:line
> > (#:override (cons (quote font-size) -3) "10"
> > (list 1)))
> > }
> >   }
>
>
>
> A Scheme lambda returns the value of the last expression
> inside. If there are other expressions before, they are
> evaluated for their side effects, but the result is thrown
> away. You want to combine both music events in a single
> music expressions.
>
> \version "2.22.2"
>
> {
>$(make-sequential-music
>  (map (lambda (x)
> (make-sequential-music
>  (list
>   (make-music 'NoteEvent
>   'pitch
>   (ly:make-pitch 0 x)
>   'duration
>   (ly:make-duration 2))
>   (make-music 'MarkEvent
>   'label
>   (markup
>#:line
>(#:override (cons (quote font-size) -3)
> "10"))
>   (list 1 2 3 4)))
> }
>
Thanks Jean,

It was the (make-sequential-music) after the lambda expression that I had
missed, without it it doesn't help to combine the two music events in one
list.

Very helpful!
/h


Re: Generate music with scheme

2022-04-11 Thread Henrik Frisk
Hi Leo!

Den mån 11 apr. 2022 kl 12:49 skrev Leo Correia de Verdier <
leo.correia.de.verd...@gmail.com>:

> An addition:
>
> MarkEvent is not added to the note, but to the staff (it’s often used for
> things like rehearsal marks), if you want the markup added to the actual
> note you can write it like this:
>
> %
>
> \version "2.18.0"
> \score {
>   {
> $ (make-sequential-music
>(map (lambda (x)
>   (make-music 'NoteEvent
>   'pitch
>   (ly:make-pitch 0 x)
>   'duration
>   (ly:make-duration 2)
>   'articulations
>   (list (make-music 'TextScriptEvent
> 'text
> (markup #:line (#:fontsize -3
> "10"))
> (list 1 2 3 4)))
>   }
> }
>
> %%%
>
 Thanks, this is actually much better. It's been a while I haven't worked
with Lilypond so it's good to be reminded!

>
> 2.18 is some years old, by the way.
>

It was actually erroneously copied from an old file. But it's interesting
that apt in Ubuntu Studio has 2.20.0-1 as its latest version.

/H


Generate music with scheme

2022-04-11 Thread Henrik Frisk
Hi,

I have not worked with scheme and lilypond for some years. I realize that
this is more of a scheme question than Lilypond, but perhaps someone knows
how to do this. I can generate four notes with the following:

  \version "2.18.0"
  \score {
{
  $ (make-sequential-music
   (map (lambda (x)
  (make-music 'NoteEvent
  'pitch
  (ly:make-pitch 0 x)
  'duration
  (ly:make-duration 2)))
(list 1 2 3 4)))
}
  }

However, if I would like to add a markup to each note to each note I fail.
I would have guessed something like this would do it but it generates an
(almost) empty staff:

\version "2.18.0"
  \score {
{
   $(make-sequential-music
   (map (lambda (x)
   (make-music 'NoteEvent
   'pitch
   (ly:make-pitch 0 x)
   'duration
   (ly:make-duration 2))
   (make-music 'MarkEvent
   'label
   (markup
#:line
(#:override (cons (quote font-size) -3) "10"
(list 1)))
}
  }

/h


RE: org babel and lilypond

2017-12-25 Thread Henrik Frisk
Hi John

Org babel for lilypond would not be a replacement for lilypond mode. It
would rather be a complement to lilypond-book. My main interest however,
would first and foremost be to use it to organise my lilypond snippets.
Whether or not it's good at that I don't know because I can't get it to
work :/

Den 25 dec. 2017 18:43 skrev "John Schlomann" <jschlom...@wideopenwest.com>:

> I’m just curious, what would be the advantages of Org Babel over the
> LilyPond mode that comes with LilyPond?
>
>
>
> John
>
>
>
> *From:* lilypond-user [mailto:lilypond-user-bounces+jschlomann=
> wideopenwest@gnu.org] *On Behalf Of *Henrik Frisk
> *Sent:* Sunday, December 24, 2017 12:57 PM
> *To:* lilypond-user@gnu.org
> *Subject:* org babel and lilypond
>
>
>
> Hi,
>
> Today I tried to get ob-lilypond (Org Babel) to work on my OSX system and
> a recent versin of emacs. Anmyone using it here? I would love to get it to
> work.
>
> Best,
>
> Henrik
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


org babel and lilypond

2017-12-24 Thread Henrik Frisk
Hi,

Today I tried to get ob-lilypond (Org Babel) to work on my OSX system and a
recent versin of emacs. Anmyone using it here? I would love to get it to
work.

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


Re: lyqi on FC13

2011-08-09 Thread Henrik Frisk
 I would really like to get lyqi working, so any hints are welcome.

 Thanks,

 /Henrik

 I think your best bet, Henrik, would be to get in touch with Nicolas Sceaux,
 the author of lyqui.  His email, from his home page, is
 nicolas.sce...@free.fr

Thanks Colin. I will do that!

/Henrik

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


lyqi on FC13

2011-08-08 Thread Henrik Frisk
Hi,

I used to use lyqi in past but haven't recently. I decided to revisit
it and downloaded it from github (https://github.com/nsceaux/lyqi). i
did get a few compilation errors, primarily variants of:

In lyqi:insert-opening-delimiter:
lyqi.el:3050:18:Warning: `last-command-char' is an obsolete variable (as of
Emacs at least 19.34); use `last-command-event' instead.

and an expected:

In end of data:
lyqi.el:6078:1:Warning: the function `do-applescript' is not known to be
defined.

The library appears to load in emacs however but none of the keys
correspond to what it is supposed to. Key 'd' gives an 'f' in the
input and the notes appear to be scattered all over the keyboard. I'm
on a MacBook Pro 5,2 and was using the builting keyboard and I'm
running Fedora 13 and Emacs 23.2.1

I would really like to get lyqi working, so any hints are welcome.

Thanks,

/Henrik

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


Guile interpreter

2011-02-14 Thread Henrik Frisk
Hi,

When I'm starting up the Guile interpreter by inserting

#(module-define! (resolve-module '(guile-user))
'lilypond-module (current-module))
#(top-repl)

in my .ly file, I don't have readline support (command history, etc).
How can I make sure the ice-9 and readline modules are loaded when the
interpreter is started via the lilypond command? I'm on Fedora 13 BTW
and I have command history if I start guile by itself and I have a
.guile file that contains

(use-modules (ice-8 readline))
(activate-readline)

Thanks for any hints,

/Henrik

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


Re: Get the pitch as number

2011-02-14 Thread Henrik Frisk
On Fri, Feb 11, 2011 at 3:10 PM, Gilles THIBAULT
gilles.thiba...@free.fr wrote:

 It appears to me that I'm getting a list rather than an integer, but if I
 run (get-text texts (ly:pitch-semitones (ly:make-pitch 0 1 0)))

 So get-pitch was probably the culprit ...


 NB
 You use : ly:pitch-semitones. You'll get first only a number from a note
 above the middle C, then your texts list will be very extensive. Are you
 sure you
 don't want ly:pitch-notename instead ?

Thanks Gilles,

I see now what the problem was. however, I'm not quite sure yet how to
avoid doing similar mistakes in the future, but maybe I'll get used to
it (For example, how do I know that I should start looking for
EventChord rather than NoteEvents?)

I'm not sure I understand your comment about using ly:pitch-notename
instead, but the method for getting the pitch is not necessarily
important. What I want to do is to map a 43-tone scale (octave divided
in 43-tones) to the first 43 tones of the chromatic scale so it is
important that I can tell middle C from C in the first octave.
ly:pitch-semitones seemed to be an appropriate method.

best,

/Henrik

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


Get the pitch as number

2011-02-09 Thread Henrik Frisk
Hi all,

I'm trying to write a couple of functions that will attach a given
text script to a note depending on the pitch. In the example below I
get the first item in the list, as expected if I run (get-text 1). If
I run (get-pitch msc) I get ((0)) and if I try to compile the file or
run (add-text-script) I get

transformer.ly:23:44: In procedure - in expression (- n 1):
transformer.ly:23:44: Wrong type argument in position 1: (0)

I'm a beginner in Scheme so I'm probably doing something stupid here.
It appears to me that I'm getting a list rather than an integer, but
if I run (get-text texts (ly:pitch-semitones (ly:make-pitch 0 1 0))) I
get the expected output. Why am I not getting an integer in my example
and/or how can I access the integer value in my call to
(ly:pitch-semitones)?

Thanks for any input!

/Henrik

\version 2.12.3

#(define (make-text-script x)
(make-music 'TextScriptEvent
'direction DOWN
'text (get-text texts x)))

#(define (add-text-script m)
(if (equal? (ly:music-property m 'name) 'EventChord)
(set! (ly:music-property m 'elements)
  (cons (make-text-script (get-pitch m))
(ly:music-property m 'elements)))
(let ((es (ly:music-property m 'elements))
  (e (ly:music-property m 'element)))
  (map (lambda (y) (add-text-script y)) es)
  (if (ly:music? e)
  (add-text-script e
m)

#(define get-text (lambda (ls n)
(if (eq? n 1)
(car ls)
(get-text (cdr ls) (- n 1)

#(define (get-pitch music)

   (let ((es (ly:music-property music 'elements))
 (e (ly:music-property music 'element))
 (p (ly:music-property music 'pitch)))
   (cond
   ((ly:pitch? p)
(ly:pitch-semitones p))
   ((pair? es)
   (map (lambda (x) (get-pitch x)) es))
   ((ly:music? e)
   (get-pitch e)

#(define texts '(one two three four))

#(define msc (make-music
  'SequentialMusic
  'elements
  (list (make-music
  'EventChord
  'elements
  (list (make-music
  'NoteEvent
  'duration
  (ly:make-duration 2 0 1 1)
  'pitch
  (ly:make-pitch 0 0 0)))

addText = #(define-music-function
 (parser location m)
 (ly:music?) (add-text-script m))

music = \relative c' { d }

\score {
\new Staff  {
\addText { \music }
} 
}

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


Transform score file before rendering

2011-01-31 Thread Henrik Frisk
Hi,

For a microtonal piece I'm working on, using a 43-tone scale, I would
like to enter the music diatonically, so to  speak, and tranform it to
microtonal notation at a later stage. In other words, if I enter c I
get the first note of the 43-tone scale, cis the second note, and if I
enter c' I get the 13th note, and so forth. This may seem like an odd
way of doing things, but I want to be able to quckly write down what I
play using the microtonal scale, which I have layed out in this manner
on a keyboard.

The notation I will use ultimately is the pitch with its deviation in
cents (possibly also indicating the fraction) like this:

g'^\markup { \column { \center-align { {(+2)} {3/2} } } }

Do anyone have a suggestion of a good way to do this? Would it be
possible to do the mapping using a custom scheme function (sorry if
this is a stupid question but it's been a while since I tried out
Lilyponds scheme interface)? Or would I be better off doing the
transform using perl or some other 'external' scripting language

Thanks also to all the developers and contributers for a great piece
of software!

best,

/Henrik

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


Fwd: Text fonts

2010-11-25 Thread Henrik Frisk
Sorry, forgot to CC the list...

-- Forwarded message --
From: Henrik Frisk fris...@gmail.com
Date: Thu, Nov 25, 2010 at 9:55 AM
Subject: Re: Text fonts
To: Werner LEMBERG w...@gnu.org


 but I'm guessing /usr/share/fonts is just as good

 Well, yes, but I consider it a bad thing to install local stuff into
 the /usr tree.  A better place is /usr/local/share/fonts.  However,
 you should check /etc/fonts/conf.d whether this directory is scanned
 by fontconfig by default.  Alas, there isn't a GUI for fontconfig yet,
 as far as I know, which would greatly simplify the manipulation of
 such issues.

I can live without the GUI now that I know what to look for and where
to find it. But, yes, I guess it would be nice.

 (since that's where the lilypond fonts live)?

 This is the wrong reason.  LilyPond fonts could be installed at any
 place since it explicitly tells fontconfig to scan its own font
 directory.

As I said, I know very little about fonts... How and when does
Lilypond/fontconfig scan for new fonts?

/Henrik

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


Text fonts

2010-11-23 Thread Henrik Frisk
Hi all,

I'm using a font all the time in LaTeX (Adobe's Frutiger) that I
select in my LaTeX documents with

\renewcommand{\rmdefault}{pfr}

Can I make this font selectable in Lilypond, and if so, how would I do
it? It doesn't show up in when I run:

$ lilypond -dshow-available-fonts x

I have to admit I know very little about fonts so please excuse me if
this is covered by the manual or is plain impossible. I'm running
Fedora13.

Thanks for any help,

/Henrik

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


Make a \draw-line a dotted-line?

2009-05-27 Thread Henrik Frisk
Hi,

Is it possible to make something like

relative c' {
   c4 ^\markup { \draw-line #'(0 . 3) }
}

and have the resulting line be dotted or dashed?

I can read here
http://lilypond.org/doc/v2.12/Documentation/user/lilypond/Graphic that the
\draw-line has a #'thickness property but I'm not sure if it is the *only*
settable property. If it is not, where in the documentation can I find its
properties?

Thanks for any hints!

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


TextScript, \column and line height

2009-05-25 Thread Henrik Frisk
Hi,

I have been away from the list for a while (but it feels good to be back!)
and I'm sorry if this question has been up recently.

In a score I'm working on I have to do a fair amount of text mark ups like:

\markup {
\column {
Rear Right
Front Right
}
  }

With the font I'm using the distance between the lines is too big. Is there
a way to tweak this globally? What I'm doing right now is using \raise on
the second line.

Thanks for any hints and thanks for all the great work with Lilypond!

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


Re: TextScript, \column and line height

2009-05-25 Thread Henrik Frisk
Hi Kieren,

[snip]


 Globally, you can use

 \layout {
  \context {
\Score
\override TextScript #'baseline-skip = #1.2
  }
 }

 Hope this helps!


It sure does. It was exactly what I was looking for. Now that I see it I
wonder why I couldn't figure it out myself...

Thanks,

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


Re: Arrow arpeggio

2007-06-15 Thread Henrik Frisk

 Is there any easy solution to make an arrow (up or down) out of an arpeggio?
 Somenthing like \arpeggioUp or \arpeggioDown but instead of getting a zigzag
 line, get a straight arrowed line.
 
I'd be interested in this too. From property-init.ly you can see that
the stencil for the arpeggion object can be changed. Here's how it's set
for the bracket:

 \override Arpeggio #'stencil = #ly:arpeggio::brew-chord-bracket

Anybody knows if, and in that case how, to pass this object another
stencil that draws a line? In safe-lily.scm only two values are listed
for the ly:arpeggio: 'print' and 'brew-chord-bracket'

/henrik


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


Re: master file in emacs lilypond mode

2007-06-08 Thread Henrik Frisk
[EMAIL PROTECTED] wrote:

  I'm working on a piece where what I'm editing is the include files,
  but what I want to run lilypond on is a master file.  I've been
  enjoying just saying C-c C-l to run lilypond, but I can't figure out
  how to tell lilypond what the master file is.  

 But why don't you use a Makefile instead?

Hi Laura,

Here's an example Makefile that I use. Feel free to do what you want
with it! Basically, you put all your include .ly files in the SOURCES
variable and your main file in the MAIN_LY variable. Then, in emacs, run
M-x compile and run 'make [optional args] prepare'. Also you may change
the location of your binaries depending on your system. Let me know of
any questions you may have.

HOME = ./
OUT_DIR = $(HOME)out/
LILY = /usr/bin/lilypond
LILYARGS = -dno-point-and-click
LILYBOOK = /sw/bin/lilypond-book
TEX = /usr/bin/latex
DVIPS = /usr/bin/dvips
VIEWER = /usr/bin/gv --watch
PS2PDF = /usr/bin/ps2pdf
DVIPS_ARGS =  -o -Ppdf -h 
LILYBOOK_ARGS =  --output=$(OUT_DIR) --psfonts
PRINTER = -PMHM-X200 -o PageSize=A4,Duplex=DuplexNoTumble
MAIN_LY = score.ly
SOURCES = sixstrings.chords.guit1.ly \
sixstrings.chords.guit2.ly \
sixstrings.chords.guit1-2.ly \
sixstrings.chords.guit2-2.ly \
$(MAIN_LY)

nomenclatura : $(HOME)nomenclatura.tex
$(LILYBOOK) $(LILYBOOK_ARGS) $
cd $(OUT_DIR); \
$(TEX) $@
cd $(OUT_DIR); \
$(DVIPS) $(DVIPS_ARGS)[EMAIL PROTECTED] $@
cd $(OUT_DIR); \
$(PS2PDF) [EMAIL PROTECTED]

score : repetition.music.ly $(MAIN_LY)
$(LILY) $@
$(VIEWER) [EMAIL PROTECTED]

print : prepare
lpr $(PRINTER) score.pdf

view : prepare
$(VIEWER) $(OUT_DIR)nomenclatura.ps

prepare : $(SOURCES)
$(LILY) $(LILYARGS) $(MAIN_LY)

prepareEPS : $(SOURCES)
$(LILY) $(LILYARGS) --backend=eps $(MAIN_LY)

preparePS : $(SOURCES)
$(LILY) $(LILYARGS) --backend=ps $(MAIN_LY)

preview : 
$(LILY) $(LILYARGS) --preview $(MAIN_LY)

prepareSVG: $(SOURCES)
$(LILY) $(LILYARGS) --backend=svg $(MAIN_LY)___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Making tails of 1/8-notes invisible?

2007-05-05 Thread Henrik Frisk
Is there a way to make the tails of un-beamed 1/8-notes invisible 
in Lilypond?  

You can always change the space a note occupies by multiplying its 
duration with some value. E.g.

c4*0.5

would make a quarter note that takes up the space of an 1/8th 
note, i.e. an 1/8th note without a flag.

Not sure if this is what you're asking about though...

My colleague has discovered how to get Lilypond to make note-
heads white no matter what the note-length is,

If you only change the way a notehead *looks* you're not changing 
its duration so it sounds like you're on the right track. Again, I'm 
not sure I understand the issue.

/Henrik



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


Re: dotted vertical lines between notes

2007-05-02 Thread Henrik Frisk
Hi,

 Here's a cleaner, jazzier version; and it only took me four months.
 
Sorry I missed this thread...

I've used dotted lines between notes for some scores. 

For rhytmically unison notes I use GridLines. In the score I set 

gridInterval = #(ly:make-moment 1 16)

and I make the it the default behaviour for the GridLine to be
transparent. Then, each time I want a GridLine I do:

  \override Score.GridLine #'transparent = ##f

Now, for adjacent notes that are not rhythmically unison, or if I want a
vertical line between only two out of three or more staves, I use 'empty'
TextSpanners with the #'rotation property. It's tricky and requires a
lot of tweaking but here's an example (adding only one line to the
example suplied by fairchild):

%

\version 2.10.17

ViolinI = \new Staff {
  \relative c' {
\override TextSpanner #'edge-text = #'( . )
\override TextSpanner #'dash-fraction = #0.2
\override TextSpanner #'dash-period = #1
\override TextSpanner #'thickness = #1
\override TextSpanner #'Y-offset = #-4
\override TextSpanner #'rotation = #'(-64 -1 0)
\override TextSpanner #'extra-offset = #'(0.6 . -0.5)
g a\startTextSpan
d, e\stopTextSpan
f g
a b
c d
e } }
ViolinII = \new Staff {
\relative c' { e f g a } }
Viola = \new Staff {
\clef alto \relative c' { e f g a b d, e f g a b c d } }

\score {  \ViolinI \ViolinII \Viola  }

%

I started out using the postscript version, but somehow I feel the
Textspanner is easier. 

At one point I asked the list about how to make GridLines dashed or
dotted for this matter:

http://lists.gnu.org/archive/html/lilypond-user/2006-08/msg00503.html

but, despite my efforts I haven't succeeded. The work-around is to make
it of a lighter shade of grey and as thin as possible. In a BW print
out the GridLines are as good as dotted.

  \override Score.GridLine #'thickness = #0.1
  \override Score.GridLine #'color = #grey

If someone knows how to make them dotted (for real) please let me know!

/Henrik Frisk


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


Re: Sponsorhip offer: slash on beamed grace notes

2007-04-19 Thread Henrik Frisk
Hi Jamie,

 This is a feature request relating to the following thread:
 http://lists.gnu.org/archive/html/lilypond-user/2006-12/msg00253.html
 
 I would be happy to use this solution, but the slash is too short.
 Perhaps I could invent some other hack by inserting postscript directly
 into the score, but I would rather sponsor a new a feature and see it
 integrated into Lilypond properly.
 
 The only example I could find is in the Common Music Notation manual:
 http://ccrma.stanford.edu/software/cmn/cmn/png/grace.png
 
 Any takers?

I'd be in to this. Though I would like the slash to be more slanted and
be more to the center of the beam than what it is in the last two groups
of beamed grace notes in the cmn example above. I think I have a couple of nice
looking examples of this in printed (published) scores at home. I'll
check tonite and see if I can make a scan.

/henrik


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


Re: collision between rest of one voice and the notes of the other voice

2006-10-05 Thread Henrik Frisk
 \relative c' {  {c c c c} \\ {R1}  }
 
 In the output there is a collision between the rest of the second voice and 
 the notes of the first voice.
 
 The right solution would be to put the rest on a ledger line and to lower it 
 until no collision occures.
 
 Is there a reason why lilypond doesn't to that?
 Is it possible to force lilypond to put the rest on a ledger line? Or at 
 least 
 to correct the output somehow manually?

You can always put the rest at the position of a note e.g. d'1\rest

Best
/Henrik


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


Re: collision between rest of one voice and the notes of the other voice

2006-10-05 Thread Henrik Frisk
Mats Bengtsson [EMAIL PROTECTED] wrote:

 
 
 Henrik Frisk wrote:
  \relative c' {  {c c c c} \\ {R1}  }
 
  In the output there is a collision between the rest of the second
  voice and the notes of the first voice.
 
  The right solution would be to put the rest on a ledger line and to
  lower it until no collision occures.
 
  Is there a reason why lilypond doesn't to that?
  Is it possible to force lilypond to put the rest on a ledger line?
  Or at least to correct the output somehow manually?
  
 
  You can always put the rest at the position of a note e.g. d'1\rest

 That's not a good idea, considering the difference between r1 and R1
 (the former
 should never be used in 4/4 music, according to typesetting practice).
 
Right... but it is an option

/Henrik


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


Re:warning: Ignoring grob for slur. avoid-slur not set?

2006-10-05 Thread Henrik Frisk
 {c'( d'^\flageolet)}

 gives the warning:

 Ignoring grob for slur. avoid-slur not set?
 
 Michael: you can't get rid of this warning right now.  Maybe in a 
future 
 version.
 
 
 Devel: could we set avoid-slur to something by default?  If 
there isn't 
 a specific value in scm/script.scm, use (avoid-slur . around)  ?

 perhaps we should just remove the warning.

Please do. I get tons of them at the moment and it makes it really 
difficult to see the important warnings.

/Henrik

___
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: lilypond-user Digest, Vol 46, Issue 59

2006-09-20 Thread Henrik Frisk
 Hi,
 
 Still working on edge-text adjustments ...
 
 In the snippet below, I've got exactly what I want -- thanks to much
 help from the list -- with the one exception that the padding of the
 two vertical spanners is off-center relative to each piece of edge
 text. Notice that the solid horizontal line runs into the (lefthand
 sides) of the b and c edge text (though the righthand sides are
 nicely cushioned by whitespace).
 
To get what I think you want, I use combinations of #'bound-padding and
#'extra-offset. In your example I would decrease the #'bound-padding
(which, btw can take float values and values greater/smaller than -1
to 1) and use #'extra-offset = (-1.0 . 0.) to move the entire spanner to
the left. It's tricky and time consuming but works. In your example it
would work for the first spanner, I'm not sure about the second.
 
 So the question is: Is there a way to control left- and
 right-bound-padding independently?. I'd like to say something like
 ...
 
   \override TextSpanner #'bound-padding-left = #1
   \override TextSpanner #'bound-padding-right = #2

I would love this!

/henrik


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


Re: lilypond-user Digest, Vol 46, Issue 59

2006-09-20 Thread Henrik Frisk
Sorry for not editing the Subject in my reply...
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii

Trevor Ba?a [EMAIL PROTECTED] wrote:

 On 9/20/06, Henrik Frisk [EMAIL PROTECTED] wrote:
   Hi,
  
   Still working on edge-text adjustments ...
  
   In the snippet below, I've got exactly what I want -- thanks to much
   help from the list -- with the one exception that the padding of the
   two vertical spanners is off-center relative to each piece of edge
   text. Notice that the solid horizontal line runs into the (lefthand
   sides) of the b and c edge text (though the righthand sides are
   nicely cushioned by whitespace).
  
  To get what I think you want, I use combinations of #'bound-padding and
  #'extra-offset. In your example I would decrease the #'bound-padding
  (which, btw can take float values and values greater/smaller than -1
  to 1) and use #'extra-offset = (-1.0 . 0.) to move the entire spanner to
  the left. It's tricky and time consuming but works. In your example it
  would work for the first spanner, I'm not sure about the second.
 
 Hi Henrik,
 
 Hm ... adding in #'extra-offset was my first instinct ... but while,
 say, #'(-1 . 0) moves the solid horizontal line to the left (which is
 good), it also moves the edge text to the left (which is bad, because
 it throws off the horizontal centering of the edge text underneath the
 notehead); see attached.
 
 Am I missing something? Is there some way to move the edge text a
 indepdently of the solid horizontal line?
 
 As another approach, Is there a way to shorten the X-extent of the
 spanner altogether?
 
Sorry, I replied too quickly. It's of course the #'enclose-bounds
property you should use in combination with #'extra-offset. So, in my
reply replace bound-padding with enclose-bounds... enclose-bounds makes
the line shorter AND moves the edge-text along with it. So after you've
made it shorter, you move the entire spanner. 

  
   So the question is: Is there a way to control left- and
   right-bound-padding independently?. I'd like to say something like
   ...
  
 \override TextSpanner #'bound-padding-left = #1
 \override TextSpanner #'bound-padding-right = #2
 
  I would love this!
 
 Maybe a possibility for sponsorship?
 
Sure!

/Henrik


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


Re: Rotated (instrument name) text

2006-09-05 Thread Henrik Frisk
Mark Pim [EMAIL PROTECTED] wrote:

 Version 2.8.6 under WinXP
 
 Is there any way to rotate a markup (specifically an instrument name) by 90 
 degrees?
  
See the snippet below.

\score {
  \relative c' {
  c4^\markup {\rotate #90.0 {hello}}
  c4^\markup {\column {h e l l o}}
  }
}

Best,

/Henrik


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


Re: Benefits of OS X binary vs. Fink version?

2006-08-29 Thread Henrik Frisk
Benjamin Esham [EMAIL PROTECTED] wrote:

 Hello all,
 
 I use Mac OS X, and have Lilypond installed with Fink.  Recently,  
 however, with the transition to Intel hardware, the latest version of  
 Lilypond available there is 2.6.3.  (2.8.2 is listed, but does not  
 compile for me.)  What are the advantages and disadvantages of  
 downloading the official pre-built version and running that from  
 the command line? Will that version recognize the relevant parts of  
 the Fink installation, or does it provide all of its own stuff?   
 Thanks for any guidance here.

I've noticed that the Fink version is lacking behind. Some time ago I
aproached the maintainer about this and, at the time, he said he thought
it wasn't usefule to maintain the Fink version of Lilypond as there was
a binary version available. I convinced him that there is a reason to
have keep the Fink version updated, but recently there hasn't been any
updates on the Fink version which has made me start using the
binaries. I would however personally prefer to use the Fink
version. However, from a user perspective there's no difference. The one
thing that gets to me is I don't (automatically) have access to the texinfo 
docs with
the binary version.

The Lilypond binary doesn't reference any external libraries but comes
with everything it needs.

Perhaps aproaching the maintainer again will make him keep Lilypond up
to date?

Best,

/henrik


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


Re: Benefits of OS X binary vs. Fink version?

2006-08-29 Thread Henrik Frisk
Mats Bengtsson [EMAIL PROTECTED] wrote:

 Quoting Henrik Frisk [EMAIL PROTECTED]:
 
  The one
  thing that gets to me is I don't (automatically) have access to the
  texinfo docs with
  the binary version.
 
 I hope you know that you can download all the documentation in the form
 of a zipped tar file from http://lilypond.org/web/install/.
 
Yes, I do. But, although this could theoretically all be automated, it
means that for every update of Lilypond also make sure to get the
docs. Keeping the Fink tree up to date is easily done on a regular
basis. I know, it doesn't sound like a big deal, but...

/henrik


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


Re: Adding a little horz. space between 2 bumping notes

2006-08-27 Thread Henrik Frisk
Rick Hansen (aka RickH) [EMAIL PROTECTED] wrote:

 Apparently there are numerous ways to insert horizontal whitespace.

I most frequently adjust the force-hshift property of the NoteColumn
object. However, in your example you would have to move both the top
voice (the C after the F) and the lower part of the same chord = more typing...

 (I left the invisible string indicator out so that my example would
 cause the issue.)

Ahh, sorry. I read your message too quickly.

/henrik


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


postscrip markup broken in 2.9

2006-08-27 Thread Henrik Frisk
Hi,

I just noticed that the \postscript markup command is broken in 2.9. I
first thought I was doing something wrong, but when I looked in the
documentation to check the syntax I noticed that in the 2.9 docs there's
no output of the PS commands in the Tips and Tricks section.

/henrik


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


dashed GridLine

2006-08-27 Thread Henrik Frisk
Hi,

Is there a way to make GridLines appear as dashed lines? Any hints appreciated!


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


Re: Adding a little horz. space between 2 bumping notes

2006-08-26 Thread Henrik Frisk
Rick Hansen (aka RickH) [EMAIL PROTECTED] wrote:

 To see the change just add or remove th \6 string indicator after
 the f,, note and you'll see what happens.

It's not there...

You can increase the f's #'X-extent to add space after it. For example,
 \override NoteColumn #'X-extent = #'(4. . 4.) will add an fair amount
 of space.

varVoiceInner = \relative c'' {
%% \once \override StringNumber #'transparent = ##t
\once \override NoteColumn #'X-extent = #'(4. . 4.) 
f,,2 s2
}

/henrik


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


Re: tweak of the crescendotext

2006-08-25 Thread Henrik Frisk
yota [EMAIL PROTECTED] wrote:

 is such a dynamic indication a TextScript or a DynamicText or something else
 ?... I tried some tweaks but everything failed.
 
At the bottom of this page:

http://lilypond.org/doc/v2.9/Documentation/user/lilypond/Dynamics.html#Dynamics

I found the answer to your question. It's the DynamicTextSpanner object
that has to be tweaked. Adding the override below moves your cresc
marking down and to the left (the firs number in the list (-5) moves it
to the left, and the second moves it down).

I personally like the extra-offset property since it allows me to move
an object in any way with only one command. I would assume that 'padding'
and 'center-align' properties would also work. The extra-offset property
is defined in the 'grob-interface' which is inherited by most
objects. The way to find out which preperties can be tweaked for a
particualr object is to look in the documentation (Dynamics in this
case) and check the name of the object. This name is hyperlinked to the
Program Reference in which the properties for this object are
listed. Further, the interfaces supported by that object are linked from
this page and those proerties can also be set through this object. All
that may or may not help you understand the documentation better ;-).

best,

/Henrik

\set crescendoText = \markup { \italic poco a poco cresc. }
\set crescendoSpanner = #'dashed-line
\override DynamicTextSpanner #'extra-offset = #'(-5.0 . -3.0)
r4  \times 2/3 { a8-( \accent \ bes a) \!} r4



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


Re: tweak of the crescendotext

2006-08-25 Thread Henrik Frisk
Mats Bengtsson [EMAIL PROTECTED] wrote:

 Quoting Henrik Frisk [EMAIL PROTECTED]:
  I personally like the extra-offset property since it allows me to move
  an object in any way with only one command. I would assume that 'padding'
  and 'center-align' properties would also work.
 
 I hope you know that there is an important difference between extra-offset
 and the other properties that can be used to move things around. If
 you for example increase the padding, then LilyPond will take that
 fact into
 account when it calculates the placement of the next stave, for
 example, to avoid collisions. However, if you set extra-offset, then
 only that
 specific object will move and everything else will stay
 fixed. Sometimes that's preferable, but sometimes not.
 
Thanks Mats, I should of course have mentioned that. It's precisely this
fact that makes extra-offset so useful to me. 

/henrik


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


Re: Prevent Collision of Tuplet Brackets ???

2006-08-23 Thread Henrik Frisk
Ben Hoefer [EMAIL PROTECTED] wrote:

 Hi,

   I have a PianoStaff and there is a triplet bracket at the top stave 
 overlapping a triplet bracket at the bottom stave  :-((

   What can I do to prevent any collision between the two brackets?

You will want to look at the #'direction, #'positions and #'padding
properties of TupletBracket. For example:

\override TupletBracket #'direction = #UP

For all the properties look at
http://lilypond.org/doc/v2.8/Documentation/user/lilypond-internals/TupletBracket.html#TupletBracket

/henrik


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


Re: Crossing of Voices in Polyphonic Music ?

2006-08-22 Thread Henrik Frisk
   Now I want to do more than just type these notes: I want to indicate
   the crossing of the two voices by means of a line (better: two
   lines) - a symbolism I've often seen in polyphonic scores.

Use \glissando - it prints a line between two adjacent notes.

There's the followVoice property (see Regression Tests in the
docuumentation section and search for followVoice) but I believe that's only if 
a
voice also changes staff.

/henrik


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


Re: Finally I found out about \myStaffSize 20

2006-08-17 Thread Henrik Frisk
Eyolf Ostrem [EMAIL PROTECTED] wrote:

 Seemingly a simple task: I want to change the global staff size of my score, 
 AND I want some other fonts than the defaults. 
 I've broken my head over this one, and I think I've got it now, but I also 
 think it shouldn't have taken such an effort.

Thanks for this Eyolf. I've never quite understood this until now.

/henrik


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


Re: Shortening ties

2006-08-17 Thread Henrik Frisk
Stewart Holmes [EMAIL PROTECTED] wrote:

 http://www.lilypond.org/doc/v2.9/Documentation/user/lilypond/Laissez-vibrer-ties.html
 
 Is that of any use? You can use LaissezVibrerTieColumn #'X-extent to
 lengthen them to your desired length.
 
Unfortunately that will not do it (as someone else pointed out in this
thread X-extent doesn't actually change the size of an object). If you
want detailed control over ties or LaissezVibrer ties you can use
the property #'control-points though it is kind of tricky and not very
well documented. It takes a list of four number pairs as its argument
#'((x . y) (x . y) (x . y) (x . y)

These coordinates are the control points of the tie (beginning, before
middle, after middle, end). With this you can actually draw some pretty
wild shapes!

%% begin snippet
\version 2.9.11
\score {
  
\new Staff \relative c' {
  c4 \laissezVibrer s4*3 |
  \once \override LaissezVibrerTie #'control-points = #'((0.75 . -4) (2 . 
-4.5) (4 . -4.5) (6 . -4))
  c4 \laissezVibrer s4*3 |
  s4*4 |
}
  
}

\paper {
  ragged-right = ##t
}
%% end snippet

/henrik


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


More on colliding tuplet brackets.

2006-08-11 Thread Henrik Frisk
Hi,

Here's another thing relating to tuplet brackets. Can someone please
help on how to uncollide these brackets of the nested tuplets. I've run
out of options, though I might be overlooking something...

Thanks!

/henrik

\version 2.9.14

\score { 
  
  \new Staff {

\relative c'' {
  \voiceOne
  
{
  \times 4/5 {
\times 2/3 {
  c8 c c
}
c4 c c c
  }
}
\new Voice=nather {
  \voiceTwo
  a4 a a a
}
  
}
  }

}


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


Re: More on colliding tuplet brackets.

2006-08-11 Thread Henrik Frisk
Markus Schneider [EMAIL PROTECTED] wrote:

 Hi Henrik,
 
 the problem is to move apart the two consecutive \time n/m {} statements,
 so that the overrides only affect one set of tuplets.
 
 See two examples below. The first one reports a warning: ignoring too many
 clashing note columns - but typesetting is optimal IMO, second one compiles
 without warning but adds space between the time-signature and the first note
 due to the added skip. Unfortunately s1*0 won't do the job!

Thanks Markus! I don't mind so much the extra space and the second
option is clearer to me. I added a

  \set Score.measureLength = #(ly:make-moment 129 128)

(for a 4/4 bar) so I wouldn't have to do the extra math at the end of
the bar to compensate.

To the developers: Is there a way that this could be worked out in a
more straight forward manner?

Best,

/Henrik


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


Re: Getting rid of redundant tuplet brackets in combined voices

2006-08-10 Thread Henrik Frisk
Markus Schneider [EMAIL PROTECTED] wrote:

 Hi Henrik,
 
  However, I would imagine you could put a
 
  \override Voice.TupletBracket  #'bracket-visibility = ##t
  \override Voice.TupletNumber #'transparent = ##t
 
 if I pass this to the first voice, all brackets and numbers vanish; passed
 to the second voice, nothing happens at all (ie still double
 brackets/numbers).
 
This is odd. Your file does exactly what I thought was what you
wanted. As a matter of fact, I can't even force it to show the tuplet
brackets of voice two unless I display it by itself. I don't get the
redundant brackets (OSX 2.9.14).

 The fine manual states in 8.3.1 Automatic part combining that the voice
 contexts inside \partcombine are referred to one and two. Is it possible
 to send these overrides to only one of these contexts?

That's what you do in your file below. You do the override within the
voice that you want to affect. That override will not have an effect in
the other Voice, which has its own context. 

In the modified file below Staff 1 and 3 produces the same output, staff
2 has no brackets.

%%% Begin snippet
\version 2.9.14

%%% if using 2.9.13 or earlier, modify the instrument/instrumentName variables
%%% below accordingly!

tupletsI = \relative c' {
  | \times 2/3 { c4 d e f g a }
}

tupletsII = \relative c'' {
  | \times 2/3 { b4  c d e f g }
}

% Top voice
VoiceI = {
  \tupletsI
  \tupletsII
}

% Bottom voice
VoiceII = {
  \tupletsI
  \tupletsI
}

\score { 
  \set Score.tupletSpannerDuration = #(ly:make-moment 1 2)

  \new Staff {
\set Staff.instrumentName =
  \markup \column { combined voices print
redundant tuplet brackets }

\partcombine
  { \VoiceI  }
  { \VoiceII }

  }

  \new Staff {
\set Staff.instrumentName =
  \markup \column { voice I only; tuplet brackets
removed using \override }

\override Staff.TupletBracket #'bracket-visibility = ##f
\override Staff.TupletNumber  #'transparent = ##t
\VoiceI
  }

  \new Staff {

\set Staff.instrumentName =
  \markup \column { overrides sent to voice I using
specific voice \one\ context
\italic - does work :-) }
\partcombine
  
\context Voice = one {
  \VoiceI
}
  
{ 
  \override Voice.TupletBracket #'bracket-visibility = ##t
  \override Voice.TupletNumber  #'transparent = ##f
  \VoiceII }

  } 
 
 \layout {
   indent = 5\cm
   ragged-right = ##t
  }
}
%%% End Snippet


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


Re: Getting rid of redundant tuplet brackets in combined voices

2006-08-09 Thread Henrik Frisk
Hi,

Unfortunately I couldn't compile your file (LilyPond exits with
segmentation fault or bus error) - this is in Lily 2.9.13.

However, I would imagine you could put a 

\override Voice.TupletBracket  #'bracket-visibility = ##t
\override Voice.TupletNumber #'transparent = ##t

before your \times statement in your \tupletsII voice. I would also imagine you 
could put that
before your \tupletII include in the VoiceII.

But, I haven't tried it...

best,

Henrik
 Hello all,
 
 I'm trying to get rid of redundant tuplet brackets in combined voices using
 \partcombine.
 First I explored a way using the \tag-feature, but this leads to excessive
 changes in the original music, so I discarded this.
 
 A different approach is to create a quoted voice, where time-scaled-music
 is removed from Staff.quotedEventTypes, which works well in itself. But when
 passing this new, time-scaled-music-free voice/variable into \partcombine,
 it won't show up, regardless if as first or second music expression. See
 attachment and code below for 2.8.4.
 
 I'm happy for any input whatsoever!
 
 Thanks in advance!
 Markus
 
 %%% Begin Snippet
 \version 2.8.4
 
 tupletsI = \relative c' {
   | \times 2/3 { c4 d e f g a }
 }
 
 tupletsII = \relative c'' {
   | \times 2/3 { b4  c d e f g }
 }
 
 % Top voice
 VoiceI = {
   \tupletsI
   \tupletsII
 }
 
 % Bottom voice
 VoiceII = {
   \tupletsI
   \tupletsI
 }
 
 % Create quotation for removing time-scaled-music later
 \addquote musicAIforPartCombine \VoiceI
 
 VoiceIForCombine = {
   % Remove time-scaled-music
   \set Staff.quotedEventTypes = #'(note-event rest-event tie-event
 beam-event)
   s1*0 % without this, junking event messages will pop up
   \quoteDuring #musicAIforPartCombine { #(ly:export (skip-of-length
 VoiceI)) }
 }
 
 \score { {
   
 \set Score.tupletSpannerDuration = #(ly:make-moment 1 2)
 
 \new Staff {
   \set Staff.instrument = \markup \column { combined voices print
 redundant tuplet brackets }
   \partcombine
 { \VoiceI }
 { \VoiceII }
 }
 \new Staff {
   \set Staff.instrument = \markup \column { voice I only; tuplet
 brackets removed using \quoteDuring }
   \VoiceIForCombine
 }
 \new Staff {
   \set Staff.instrument = \markup \column { quoted music doesn't show
 in combined music }
   \partcombine
 { \VoiceIForCombine  }
 { \VoiceII }
 }
   
   }
 
   \layout {
 indent = 5\cm
 ragged-right = ##t
   }
 }
 %%% End Snippet
 
 


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


BendAfter issues

2006-08-08 Thread Henrik Frisk
Hi,

I just found the very handy BendAfter object. However, as can be seen in
the example below the bend collides with the dot. This only happens on
notes in the spaces, i.e. not the ones on the lines.

It also throws a warning:

warning: programming error: bounds of this piece aren't breakable. 

To fix the collission use

\override BendAfter #'extra-offset = #'(1.0 . -.0)

to move the symbol away from the dot.

\version 2.9.11
\score {
  
\new Staff \relative c' {
  \time 4/4
  g''4.-\bendAfter #+1
}
  
}

\paper {
  ragged-right = ##t
}


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


Re: beaming and tuplets

2006-08-07 Thread Henrik Frisk
  The tuplet bracket in the example below has to be manually adjusted when
  I beam the 16th note triplet with the rests. It has a slant in the wrong
  direction and collides with the beam.
 
  
  \version 2.9.11
 
  \new Staff \relative c' {
\times 2/3 { d16 [
e r16
  } r8 ]
  }
  
 
  /Henrik

 Any progress on this?  I also reported it several weeks ago.
 
 Thanks,
 
 Paul Scott

I didn't hear anything from the list, no. I just adjust it manually for
the time being.

best,

/henrik


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


Re: Double time signatures

2006-08-07 Thread Henrik Frisk
OK, I had a feeling I had seen something about it. What throws me off
here is that it's the redundant \time command in the second staff that
makes the difference.

Mats Bengtsson [EMAIL PROTECTED] wrote:

 Please read the section on grace notes in the manual.
 
/Mats
 
 Henrik Frisk wrote:
 
 Hi,
 
 Just noticed an odd thing with time signatures. The following prints
 double time signatures at the beginning of a bar:
 
 \version 2.9.11
 \score {
   
 \new Staff \relative c' {
   \time 8/8
   \acciaccatura c16
   c4 d4 r4 r4
 }
\new Staff \relative c' {
   \time 8/8
   s4 s4 r4 r4
 }
   
 }
 
 Remove the \time 8/8 in the second staff and everythings back to
 normal. It only happens when there's a grace note at the beginning of
 the bar which leads me to believe that this is a bug???


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


Double time signatures

2006-08-04 Thread Henrik Frisk
Hi,

Just noticed an odd thing with time signatures. The following prints
double time signatures at the beginning of a bar:

\version 2.9.11
\score {
  
\new Staff \relative c' {
  \time 8/8
  \acciaccatura c16
  c4 d4 r4 r4
}

\new Staff \relative c' {
  \time 8/8
  s4 s4 r4 r4
}
  
}

Remove the \time 8/8 in the second staff and everythings back to
normal. It only happens when there's a grace note at the beginning of
the bar which leads me to believe that this is a bug???

/henrik


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


convert-ly error (Was: avoid-slur not set)

2006-07-25 Thread Henrik Frisk
The subject on this message was wrong. Sorry about that. Dunno what
happend...

---BeginMessage---
Hello,

I've been away from the list for some time. Noticed
that convert-ly erroneously (?) changed my \epsfile markups in a file
version 2.7.15 to \\epsfile when updating it to 2.9.13. This is on the
OSX version.


\version 2.7.15

\new Staff \relative c' {
c4^\markup {\epsfile #nss.eps}
}



results in 


\version 2.9.11

\new Staff \relative c' {
c4^\markup {\\epsfile #X #10 #nss.eps}
}


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


avoid-slur not set

2006-07-24 Thread Henrik Frisk
Hello,

I've been away from the list for some time. Noticed
that convert-ly erroneously (?) changed my \epsfile markups in a file
version 2.7.15 to \\epsfile when updating it to 2.9.13. This is on the
OSX version.


\version 2.7.15

\new Staff \relative c' {
c4^\markup {\epsfile #nss.eps}
}



results in 


\version 2.9.11

\new Staff \relative c' {
c4^\markup {\\epsfile #X #10 #nss.eps}
}


/henrik


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


beaming and tuplets

2006-07-24 Thread Henrik Frisk
Hello again,

The tuplet bracket in the example below has to be manually adjusted when
I beam the 16th note triplet with the rests. It has a slant in the wrong
direction and collides with the beam.


\version 2.9.11

\new Staff \relative c' {
  \times 2/3 { 
d16 [
  e r16
} r8 ]
}


/Henrik


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


Re: lilypond and inkscape (again)

2006-03-04 Thread Henrik Frisk
 I would really appreciate it if the fonts where included in the 
 output. As I have not been successful in getting the fonts to 
 
 load in 
 
 They are. The problem is that most SVG renderers (including 
 Inkscape and 
 Firefox) don't handle the font tag, which means that they 
don't 
 understand our embedded fonts.
 
  
  OK. Out of curiousity; why does the method of importing an 
eps, 
  exporting it to svg in Scribus work? (this whole thing is a bit 
 of a 
  mystery to me...)
 
 Because then, each character is expanded into penstrokes
 
That's what I thought. Now, relating to the discussion earlier in this 
thread: I did some more testing and for those that are interested in 
editing a svg in Inkscape, you have to create the eps through the 
convert utility of imagemagick and not use the lilypond --
backend=eps for it to work properly. Unless, of course, you 
manage to get the fonts to work in Inkscape in which case you can 
just use the svg backend in lilypond...

/henrik



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


Re: lilypond and inkscape (again)

2006-03-04 Thread Henrik Frisk
  [lilypond svg] 
  I would really appreciate it if the fonts where included in the 
  output. As I have not been successful in getting the fonts to 
 load in 
 
 They are. The problem is that most SVG renderers (including 
 Inkscape and 
 Firefox) don't handle the font tag, which means that they don't 
 understand our embedded fonts.
 
OK. Out of curiousity; why does the method of importing an eps, 
exporting it to svg in Scribus work? (this whole thing is a bit of a 
mystery to me...)



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


Re: lilypond and inkscape (again)

2006-02-24 Thread Henrik Frisk
 
  Take the PS output from lilypond and run it through the 
convert
  utility from the imagemagick package to create an EPS (convert
  output.ps output.eps) import the EPS into Scribus and save as
  SVG. This SVG opens in Scribus (obviously :)), Inkscape and 
Adobe
  Illustrator as it is. This is obviously kind of a lengthy 
 process. The
  PS to EPS conversion is because Scribus seems to handle EPS 
better
  than PS.
 
 well, it works :-)
 
 but, why not use lilypond to generate the eps?

I don't remember, but I think, at the time I worked this out, Scribus 
had issues with the Lilypond EPS file but not the imagemagick. Or, 
it was just ignorance from my side to acknowledge that Lily 
actually did export EPS...



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


Re: lilypond and inkscape (again)

2006-02-24 Thread Henrik Frisk
 Han-Wen Nienhuys writes:
 
  unlikely, as we're not putting the SVG fonts inside the svg 
output anyway.
 
 We are not?  Why is that, I'm sure we did before.  SVG files 
without
 fonts will be useless for use on the web, as we cannot hope that 
all
 clients have feta installed?
 
I would really appreciate it if the fonts where included in the 
output. As I have not been successful in getting the fonts to load in 
Inkscape I have worked out a workaround. Take the PS output from 
lilypond and run it through the convert utility from the 
imagemagick package to create an EPS (convert output.ps 
output.eps) import the EPS into Scribus and save as SVG. This SVG 
opens in Scribus (obviously :)), Inkscape and Adobe Illustrator as it 
is. This is obviously kind of a lengthy process. The PS to EPS 
conversion is because Scribus seems to handle EPS better than PS.

/Henrik



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


Re: Invisible notes, Scheme contexts

2005-12-15 Thread Henrik Frisk
Nicolas Sceaux [EMAIL PROTECTED] wrote:

 Han-Wen Nienhuys [EMAIL PROTECTED] writes:
 
  I wonder whether this should be changed too. This would mean that
 
 \clef alto
 \clef alto
 
  becomes
 
 \clef #alto
 
  or
 
 \clef #'alto
 
  This will simplify the syntax a bit, at the expense ease of entry.
 
  What do you think?
 
 I see some cases where this would be clearly a win. Few weeks ago, a
 singer asked me to change all alto clefs to treble clefs in a
 voice+piano reduction score. Just redefining the \clef music function
 would have made that really easy and quick.
 
 The more music functions there are, and the less hardcoded syntax is,
 the more extensible and flexible LilyPond is. Ideally, even \include
 should be some kind of (not only-)music function, so that users could
 define their own \include version (for including different files
 depending on some parameters for instance, or adding a path).
 
I agree, it sounds like a good idea.

/Henrik


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


Re: Scribus - alternative to lilybook?

2005-11-03 Thread Henrik Frisk
Han-Wen Nienhuys [EMAIL PROTECTED] wrote:

 Henrik Frisk wrote:
 
 That would actually be pretty neat...
 
 Sponsored feature, anyone?
 
  This sounds interesting, although I'm not quite sure what you
  mean. Once
  I've imported a pdf into Scribus your suggestion would allow me to edit
  the .ly file and then have the plugin render the new pdf and replace it
  with the old one?
 
 Yes, but then the .ly would be editable from within Scribus, so you
 only have to import a .ly , or enter it from scratch.
 
  If that's possible I'm up for a share of the cost.
 
 That would be cool. It would be significant amount of work, since I'd
 have to get familiar with Scribus and its plugin interface.  I'd guess
 that this would be 1000 eur or 2000 eur, in order of magnitude.
 
Let's see if we can create an interest in this. I think this would be a
valuable addition to LilyPond. Anybody willing to co-sponsor?

/henrik


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


Re: Scribus - alternative to lilybook?

2005-11-02 Thread Henrik Frisk
Han-Wen Nienhuys [EMAIL PROTECTED] wrote:

 Arthur Dyck wrote:
  I haven't seen anything on this list about Scribus, a linux-based
  desktop publishing program.  I have been playing with it and it has
  some interesting features.  Basically, you define your page size
  with borders and then create text or image boxes for your input.
  You can import lilypond pdf images directly into your image box.
  You can then put transparent text boxes on top of your image
  allowing you to do anykind of markup anywhere.  I wouldn't recommend
  it for a an ordinary sheet of music, but I think it adds some
  interesting possibilites.  I am trying to learn how to use it and
  how to use Lilypond at the same time as I'm working on a liturgy, so
  it's making for some long -- but fun -- days.
 
 I think Scribus has a python interface, so you could write a little
 plugin that takes .ly code,  runs it through lily, and pasts back the
 resulting PDF files.
 
 That would actually be pretty neat...
 
 Sponsored feature, anyone?
 
This sounds interesting, although I'm not quite sure what you mean. Once
I've imported a pdf into Scribus your suggestion would allow me to edit
the .ly file and then have the plugin render the new pdf and replace it
with the old one? If that's possible I'm up for a share of the cost.

/Henrik


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


Re: Including artwork

2005-10-26 Thread Henrik Frisk
Han-Wen Nienhuys [EMAIL PROTECTED] wrote:

 Thomas Scharkowski wrote:
  Hi Mats,
  FYI: I have downloaded box.eps from your site and it worked.
  I will respect your warning - I had tried different eps-files from
  different sources and none of them worked - except box.eps you
  provided.
  Thomas
 
 my limited experiments indicated that it was related to the size of
 the EPS file. However, the \eps-file was a cute hack, and I left after
 I couldn't get it to work directly; maybe I should just remove it.
 
 I can put it back on the agenda as a sponsored feature/bugfix, though.
 
 -- 
   Han-Wen Nienhuys - [EMAIL PROTECTED] - http://www.xs4all.nl/~hanwen

I haven't been following this thread but I rely on the \epsfile for many
things and it has been working fine for me. If you are actually
considering removing it add me to the list of possible sponsors. I would
in that case also request the option to resize the EPS (as we discussed
at some point).


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


Re: Fink's Lilypond 2.6.3 and tex backend

2005-10-17 Thread Henrik Frisk
Christian Ebert [EMAIL PROTECTED] wrote:

 * Julien Salort on Sunday, October 09, 2005:
  I'm using lilypond on Mac OS X 10.4.2 installed by fink (Package manager
  version: 0.24.10, Distribution version: 0.8.0.rsync).
  It works great to output Postscript.
  
  However, I can't use the tex backend to get a DVI file.
  I get :
 % lilypond -b tex Exo.ly
  GNU LilyPond 2.6.3
  can't open the file with dlopen: libkpathsea.so: dlopen(libkpathsea.so,
  1): image not found
  install the package: libkpathsea3 (teTeX 2.x) or libkpathsea4 (teTeX
  3.x)
  
  It seems to me that libkpathsea4 *is* installed :
 % fink list kpathsea
  Information about 5031 packages read in 1 seconds.
  i   libkpathsea4 3.0-2Complete distribution of the TeX
  typesett...
  i   libkpathsea4...  3.0-2Shared libraries for a teTeX
  installation
  
  However, I don't have any libkpathsea.so on my computer.
  I only have :
  /sw/lib/libkpathsea.4.0.0.dylib
  /sw/lib/libkpathsea.4.dylib
  /sw/lib/libkpathsea.a
  /sw/lib/libkpathsea.dylib
  /sw/lib/libkpathsea.la
 
 The same holds true for a self compiled teTeX and lilypond on
 MacOS 10.3.9 and libkpathsea in /usr/local/teTeX/lib.
 
 I wanted to try the fink package (which would have meant to get
 another teTeX less customized for my needs) but apparently it has
 the same issue.
 
 When lilypond was at 1.+ using lilypond-book worked just fine.
 And this is what I need because I want to use lilypond note
 engraving /inside/ LaTeX-documents mainly and also use the fonts
 that are set up in my teTeX for e.g song lyrics.
 
 I also tried the installation via disk image but it is useless
 for that purpose too.
 
  Is there a way to solve this problem ?
 
 Is there?
 
I thought I had the tex backend working on my system (OSX + Fink) but it
must have been with lilypond-book - I get the same error. I have
forwarded this to the Fink package maintainer (maybe you have already
done that).


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


Re: Command line interface for Mac OS X

2005-10-13 Thread Henrik Frisk
Graham Percival [EMAIL PROTECTED] wrote:

 
 On 12-Oct-05, at 5:36 PM, E M wrote:
 
  It would be helpful if there was a way to batch
  process files, especially without the gui. Is there a
  command line version that will work on the mac?
 
 Absolutely!  Read the README that comes with the OSX package.
 
 Graham

Furthermore, if you are into using Lilypond in CL I can recommend the
Fink 'version' - http://fink.sourceforge.net. The maintainer keeps it up
to date with the stable as well as unstable releases.

/Henrik


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


Re: change staff within chord?

2005-09-15 Thread Henrik Frisk
[EMAIL PROTECTED] wrote:

 hello list,
 how would i change the staff within a chord (it is important that the
 necks keep connected across the staves? the \change Staff command
 doesn't work within the chord  ... .

You can remove the stem from the upper staff notes, and extend the stem
from the lower staff notes.

stemRemove = \once \override Stem #'length =1
noFlag = \once \override Stem #'flag-style = #'no-flag
stemExtend = \once \override Stem #'length = #10

Of course you need to adjust the length of the stem until it looks
good...

If you want the chords to be beamed it gets a little more complicated. I
don't quite remember how I did it but the above should work in your
example.

/henrik


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


Re: Fw: PDF Viewing / Updating a score

2005-09-13 Thread Henrik Frisk
Trent Johnston [EMAIL PROTECTED] wrote:

 Hello everyone,
 
 Firstly the required out the way:
 
 Platform: Windows XP
 Lilypond Version: 2.7.8
 
 
 
 I have been using the new version(s) of Lilypond for a while and I find the 
 us of PDF file a little annoying especially when fine tuning a score. You 
 have to remember to close out of the current document before you run lilypond 
 as the current scheme is to delete the old pdf and make the new one. So if 
 you fail to close the score your viewing in the PDF viewer before you compile 
 you receive an error message which means going through the sequence again 
 remembering this time to close the document in the pdf viewer.
 
 While this is only a minor quible it becomes more noticeable when editing a 
 large score i.e. across many pages. To make a simple adjustment say the 
 padding of slur or dynamic this becomes frustrating as you need to close down 
 the pdf file, make the adjustment and then manually load newly generated pdf 
 back into the pdf viewer and then try and find the page and staff to where 
 you made the adjustment. This can be very annoying and slow down the work 
 rate especially when you are making guesses to padding / layout / making 
 lyric corrections etc.
 
 I know in the older versions of lilypond a dvi viewer could be used as a fast 
 an easy way to make changes. Since the newer versions only produce a .ps file 
 and .pdf file this it out of the question. I tried using 'gsview' with the 
 .ps file but gsview complains that there too many errors and won't display 
 the music. I use gsview all the time especially when entering music with 
 PMX/Musixtex and can have the .ps loaded all the time and when I update the 
 score it refreshes the screen with the changes made while retaining the same 
 view of the same page I was working on. This makes fine tuning scores much 
 simplier and time efficient.

You can still generate dvi output by using the tex backend. I believe
the command is lilypond --backend=tex --dvi but check the manual.

 Is there a way to use the .ps file with gsview I know I won't be able to use 
 point and click but since I usually number all the bars in a score I don't 
 see this as problem and if things get a little tricky I can always go back to 
 the pdf score to find the offending line. I don't use point and click as it 
 is but simply use the pointer to give me the line number to go back to file 
 to find.
 
I don't use Windows so I can't tell why you're having problems with the
ps output, but I use gv 3.6.1 which works fine with both the ps and pdf
output of LilyPond.


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


Re: putting number on top of each other

2005-09-12 Thread Henrik Frisk
  hi list,
  back again with some problems: is there a way to put numbers on top
  of each other. i need this for the funktionssbezeichnung (sorry, i
  just know the german word). right now i'm using a mixture of \super
  and \override TextScript #'extra-offset tweaking (picture attached),
  which is quite a pain - maybe there is an easier way?
  thanks,
  stephen
 
 
  Perhaps you could explain what Funktionsbezeichnung is, and where
  it is used? I've never seen something like this.
 
 
  There's the \column command:
 
  \markup {\column {1 2}}
 
  /henrik
 
 sorry, i wasn't really exact: i just realize my english is seriously
 lacking some basic music- specific expressions. maybe this picture
 makes cleare what I'm trying to do (this has been done with the
 \column command):
 
 the \column is close to what I'm looking for, but i would be great if
 i could i change the spacing between the numbers so it is more narrow
 (is there a override command for that?). \figuremode would work
 (narrow spacing...), but i need the flexibility of the \lyricmode.
 what would be the best way to go?

I'm not sure what the best way to go is but you can change the vertical
spacing of the \column by doing:

\markup{ \override #'(baseline-skip . 2) \column  {1 2} }

/henrik


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


Re: putting number on top of each other

2005-09-11 Thread Henrik Frisk
 hi list,
 back again with some problems: is there a way to put numbers on top  
 of each other. i need this for the funktionssbezeichnung (sorry, i  
 just know the german word). right now i'm using a mixture of \super  
 and \override TextScript #'extra-offset tweaking (picture attached),  
 which is quite a pain - maybe there is an easier way?
 thanks,
 stephen

There's the \column command:

\markup {\column {1 2}}

/henrik


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


Re: pagebreak problem

2005-09-11 Thread Henrik Frisk
Aaron Mehl [EMAIL PROTECTED] wrote:

 Hi all, 
 I have a document where one line falls on a second
 page.
 
 I tried the following:
  I reduced the #(set-global-staff-size 20 ) to
 #(set-global-staff-size 18)
 but that didn't help.
 
 I tried a noPageBreak before that line but when I
 looked at the pdf an additional line ran to the next
 page.
 
 There is enough room between staves however to steal
 room to fit that line in, but I am not sure how to
 sanely do this.

You can set the distance between the staffs by setting (I think)
Staff.minimumVerticalExtent. If you make this smaller, I would suppose you can
make the two systems fit on the same page. It's documented in section
10.1.6 in the manual 
(http://www.lilypond.org/doc/v2.7/Documentation/user/out-www/lilypond/Vertical-spacing.html).

\henrik


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


Re: New slur/tie behaviour

2005-09-09 Thread Henrik Frisk
I agree with you, but it seems to me that the terms you use,
'functionality' and 'looks' got mixed up in this thread. With the latest
revision of 2.7.9 I think the functionality aspect is pretty close to
'good' as far as I can tell. 

/henrik

Bec and John Silva [EMAIL PROTECTED] wrote:

 Hi Henrik,
 
 It does seem that maybe trying to accommodate everyone's preference is a lost 
 cause. Customisability should definitely be present.
 
 However, ties/slurs should function first and look beautiful second! :) 
 With 2.7.7 I've been forced to not avoid some problems because they are too 
 serious (not in the
 screenshots I sent previously). For instance, where a tie is in the same 
 space in the staff as the note but slurs on adjacent notes are (very 
 attractively) going over the
 notes - this creates a visually unbalanced look, and worse the tie is likely 
 to go unnoticed.
 
 I think the things I've noticed, and the screenshots you posted, definitely 
 expose things that need to be fixed.
 
 - John
 
 I have been following this discussion with interest and I have a few
 thoughts. I don't think it is possible to accomodate all styles and
 personal preferences when it comes to ties which I think this thread is
 proof of. I am sure the sponsored rewrite included in 2.7.7 led to a
 better situation for some (maybe all) users, but in the score I'm
 currently working on it lead to more collisions and less
 consistency (see the attached .png's). 

 Now, I'm _not_ complaining, I'm
 OK with it. In the music that I'm working with I'm used to having to
 spend much time figuring out, sometimes unorthodox ways of notating
 things. So, the only thing I need is a good way of manually altering the
 defaults and this is what the tie-configuration property does. Another
 suggestion could be to allow for altering the defaults
 globally and thus make it possible for users to accomodate the tie
 behaviour to the set of rules that works for them.
 


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


2.7.9 tie-dot collission

2005-09-07 Thread Henrik Frisk
Many of the issues regarding ties brought up in the examples in a previous post
(http://lists.gnu.org/archive/html/lilypond-user/2005-09/msg00141.html)
are resolved in 2.7.9. However, there is still a collission between ties
and dots on notes on ledger lines with ties down (notes in spaces are
fine).

% BEGIN SNIPPET %

\version 2.7.9

\layout {
  raggedright = ##t
}

\score {
   \new PianoStaff 
 \new Staff 
   \relative c'' {
 \time 9/8
 \set Score.measureLength = #(ly:make-moment 10 8)
 es, fes4. d fes2. \hideNotes d8 \unHideNotes |
   }
 
 \new Staff 
   \clef bass
   \relative c {
 
   {
 s4. s4. s4   \hideNotes b'8 \unHideNotes b!8~
   } \\
   {
 \set fontSize = #0
 r4. r8. es,,8.~ es4.~ \hideNotes es8 \unHideNotes
   }
 
   }
 
   
}

%% END SNIPPET %


tiedot-collission.png
Description: image/png
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: New slur/tie behaviour

2005-09-06 Thread Henrik Frisk
Werner LEMBERG [EMAIL PROTECTED] wrote:

  Well, AFAIK engraving conventions are:
  
 * outer ties point outward
 * double directions for seconds
 * direction otherwise determined by vertical position.
 
 This is correct, but doesn't work in cluster-like chords.
 
 Here are my rules again for reference:
 
   sequentially from top to bottom:
 
 + The topmost tie is always `up'.
 
 + If there is a vertical gap to the last note above larger
   than or equal to a fifth (or sixth?), the tie is `up',
   otherwise it is `down'.
 
 + The bottommost tie is always `down'.

I have been following this discussion with interest and I have a few
thoughts. I don't think it is possible to accomodate all styles and
personal preferences when it comes to ties which I think this thread is
proof of. I am sure the sponsored rewrite included in 2.7.7 led to a
better situation for some (maybe all) users, but in the score I'm
currently working on it lead to more collisions and less
consistency (see the attached .png's). 

Now, I'm _not_ complaining, I'm
OK with it. In the music that I'm working with I'm used to having to
spend much time figuring out, sometimes unorthodox ways of notating
things. So, the only thing I need is a good way of manually altering the
defaults and this is what the tie-configuration property does. Another
suggestion could be to allow for altering the defaults
globally and thus make it possible for users to accomodate the tie
behaviour to the set of rules that works for them.



263.png
Description: image/png


277.png
Description: image/png


263-2.png
Description: image/png


277-2.png
Description: image/png
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: tie-configuration question

2005-09-05 Thread Henrik Frisk
Han-Wen Nienhuys [EMAIL PROTECTED] wrote:

cis, d2.~   \override TieColumn #'tie-configuration =
#'((0 . -1)  (2 . 1))
 
 I don't understand the problem: if I change the 2 to 4, the tie moves
 up (2.7.8 cvs).
 
Well it doesn't in 2.7.7, and since I can't use 2.7.8 because of the
errors described in an earlier post I guess I'm stuck for the moment. At
least now I know it will work.

/henrik


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


tie-configuration question

2005-09-04 Thread Henrik Frisk
In a post a few weeks back I asked about the tie-configuration in
mulitiple voices. Nobody responded, so either it ws a really dumb
question - in which case I don't mind being told - or nobody understood
what I meant... In either case, here's a snippet that doesn't change the
tie behaviour. I've tried a number of different ways of coding the same
music, but as long as there is more than one voice, I can't get
tie-configuration to make a difference.

I think the recent discussions on LilyPond's new tie
behaviour has shown one thing: To a large degree it is up to musical style and
personal preference - which makes the tie-configuration command so
important (to me anyways).

% BEGIN SNIPPET %

\version 2.7.7

\score {
   \new Staff 
 \relative c'' {
\time 6/8
   
{
  s4. ais' bis'4.~ 
  \set Score.measureLength = #(ly:make-moment 9 8)
  ais bis'4.~ \hideNotes ais bis'4. \unHideNotes
} \\
{
  cis, d2.~ 
  \override TieColumn #'tie-configuration =
  #'((0 . -1)  (2 . 1))
  cis d4.~ \hideNotes cis d4. \unHideNotes
}
  
  \stopStaff
  s4. \bar ||
}

}
%% END SNIPPET %


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


Re: 2.7.8 binary OSX encounters errors

2005-09-01 Thread Henrik Frisk
Graham Percival [EMAIL PROTECTED] wrote:
 
 On 31-Aug-05, at 12:21 PM, Han-Wen Nienhuys wrote:
 
  Henrik Frisk wrote:
  
  The same file compiles on 2.7.7
 
  I'll have a look at this problem once I become clairvoyant.
 
 In other words, please post a small example file which produces
 this behavior in 2.7.8 but compiles cleanly on 2.7.7.

I intended to do exactly that, but I guess the mail got sent without me 
attaching anything... I'll do some more checking tonite and see if I can 
pinpoint the error (the original file is kind of lengthy and complex...).


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


Re: Compound time signatures

2005-09-01 Thread Henrik Frisk
Pedro Kröger [EMAIL PROTECTED] wrote:

 Han-Wen Nienhuys [EMAIL PROTECTED] writes:
 
  I think it would also be better if the code just used numbers, and does 
   a (format ~a NUMBER) or (number-string NUMBER) in  the end.
 
 Here it is. I also made Graham's suggestion of switching the numbers,
 like (compound-time grob 3 16 5 8). This is a very cool example (thanks
 Henrik!). I think the ultimate would be to merge the 2 functions and or
 detect the behavior automatically or have it passed as a keyword (like
 compound-time :equal-div)
 
All these suggestions make a lot of sense, and thanks Pedro for implementing it 
and thanks for clarifying let* as compared to define. The code looks better! I 
will take a look at the autobeaming suggested by Graham. I also thought about 
merging the two functions. Rather than using a keyword, if the function is 
called with divtwo==0 use equal divisor. In other words: (compound-time grob 3 
8 5 8) would result in 3/8+5/8 and (compound-time grob 3 8 5 0) would give 
3+5/8 (as I believe it's a matter of taste what way you want to notate it). 
Does that make sense? Maybe a keyword makes it simpler to understand?


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


Re: Possible tie bug?

2005-08-31 Thread Henrik Frisk
 I know that improved ties are part of the 2.7 release, and I'm sure  
 they are great. If they're not bugs, perhaps someone could help me  
 understand these things I've brought up. Thanks!

I have noticed the same thing. Don't know what to do about it except for 
adjusting it manually using \override TieColumn #'tie-configuration. (See an 
earlier post on this list).

/Henrik


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


2.7.8 binary OSX encounters errors

2005-08-31 Thread Henrik Frisk
Processing a lilypond file with 2.7.8 on OSX results in the following (verbose) 
output:

Layout output to 
`firstMotif27.ps'...[/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/fonts/type1/PFAaybabtu.pfa][/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/fonts/type1//c059016l.pfb][/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/fonts/type1//c059033l.pfb][/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/fonts/type1//c059013l.pfb][/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/fonts/type1/PFAemmentaler-11.pfa][/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/fonts/type1/PFAemmentaler-13.pfa][/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/fonts/type1/PFAemmentaler-14.pfa][/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/fonts/type1/PFAemmentaler-16.pfa][/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/fonts/type1//feta-alphabet11.pfa][/Applications/LilyPond.app//Contents/Resour
 
ces/share/lilypond/current/fonts/type1//feta-alphabet16.pfa][/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/fonts/type1//feta-alphabet18.pfa][/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/ps/music-drawing-routines.ps][/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/ps/lilyponddefs.ps]
programming error: infinity or NaN encountered while converting Real number
continuing, cross fingers
programming error: infinity or NaN encountered while converting Real number
continuing, cross fingers


The same file compiles on 2.7.7

/Henrik


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


Laissez vibrer and TieColumn (Was: Making a quarter note...)

2005-08-30 Thread Henrik Frisk
Han-Wen Nienhuys [EMAIL PROTECTED] wrote:

 Henrik Frisk wrote:
   In any event I was about to put up a feature request for an
implementation for l.v.
   a while ago but never got around to it.
 
 Would you like me to send you a quote for that?

Yes, sure, I'd be interested. Kilian?
 
  It could easily be done by 
   adding glyphs to the feta font with noteheads with short ties
attached to
   them (that method has some drawbacks though...).
 
 I would use the new implementation of TieColumn, because then I can
 reuse all that formatting code.
 
Speaking of TieColumn, how do I use it in a polyphonic context (multiple 
voices)? 
In the following example it doesn't do anything (It does if I remove the upper 
voice).

% BEGIN SNIPPET %

\version 2.7.7

\score {
   \new Staff 
 \relative c'' {
\time 6/8
   
{
  s4. ais' bis'4.~ 
  \set Score.measureLength = #(ly:make-moment 9 8)
  ais bis'4.~ \hideNotes ais bis'4. \unHideNotes
} \\
{
  cis, d2.~ 
  \override Voice.TieColumn #'tie-configuration =
  #'((0 . -1)  (2 . 1))
  cis d4.~ \hideNotes cis d4. \unHideNotes
} \\ 
  
  \stopStaff
  s4. \bar ||
}

}
%% END SNIPPET %

/henrik


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


Re: lilypond-user Digest, Vol 33, Issue 88

2005-08-29 Thread Henrik Frisk
[EMAIL PROTECTED] wrote:

  Hello world,
  
  I need to create a tie that stops in the middle of a bar (the final
  note of a piece should carry a tie to nowhere to indicate `laissez
  vibrer').
 
 I'd be very glad to add proper support for l.v. ties as a sponsored 
 feature.  The syntax would be something like
 
c e g b2\lv
Mats's suggestion about scaling the durations is one way to achieve what you 
want. I'm doing it by changing the length of the measure with a  \set 
Score.measureLength = #(ly:make-moment 5 4 ) and put ties to invisible notes. 
In any event I was about to put up a feature request for an implementation for 
l.v. a while ago but never got around to it. It could easily be done by adding 
glyphs to the feta font with noteheads with short ties attached to them (that 
method has some drawbacks though...). 

/Henrik


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


Compound time signatures

2005-08-25 Thread Henrik Frisk
Here's an expanded version of the compound-time.ly example in the Tips and 
Tricks section. It allows for different combinations of divisions such as 3/16 
+ 3/8 (provided that smaller divisions than 16ths are not used) and adjusts the 
spacing accordingly. A second version of the macro allows for compound time 
signatures such as 3+5/8.

Here's an example and a PS:

% BEGIN SNIPPET %

\version 2.7.7

#(define (compound-time grob one two divone divtwo)
  (define hmoveDivOne
   (if (equal? divone 16)
0.6
0.0))
  (define hmoveDivTwo
   (if (equal? divtwo 16)
0.6
0.0))
  (define hmoveLastCol
   (if (equal? divtwo 16)
-0.6
-0.3))
  (interpret-markup
   (ly:grob-layout grob)
   '(((baseline-skip . 2)
  (word-space . 1.5)
  (font-family . number)))
   (markup
#:line ( #:column ((#:translate (cons hmoveDivOne 0) one) divone)
 #:lower 1 (#:translate (cons hmoveDivOne 0) +) 
 (#:translate (cons hmoveLastCol 0) #:column ((#:translate (cons 
hmoveDivTwo 0) two) divtwo))

#(define (compound-time-equal-div grob one two divone)
  (define hmoveDiv
   (if (equal? divone 16)
-0.8
-0.1))
  (interpret-markup
   (ly:grob-layout grob)
   '(((baseline-skip . 2)
  (word-space . 1.4)
  (font-family . number)))
   (markup
( #:line (one (#:column ( + (#:translate (cons hmoveDiv 0.) divone))) 
(#:translate (cons -0.2 0) two))


\score {
   \new Staff 
 {
  \time 13/16
  \override Staff.TimeSignature #'print-function
  = #(lambda (grob) (compound-time grob 3 5 16 8))
  s16*13 |
  \time 13/16
  \override Staff.TimeSignature #'print-function
  = #(lambda (grob) (compound-time grob 5 8 8 16))
  s16*13 |
  \time 13/16
  \override Staff.TimeSignature #'print-function
  = #(lambda (grob) (compound-time grob 5 8 16 16))
  s16*13 |
  \time 13/16
  \override Staff.TimeSignature #'print-function
  = #(lambda (grob) (compound-time-equal-div grob 5 8 16))
  s16*13 |
  \time 13/8
  \override Staff.TimeSignature #'print-function
  = #(lambda (grob) (compound-time-equal-div grob 5 8 8))
  s8*13 |
  }
   
}

%% END SNIPPET %



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


Re: Compound time signatures

2005-08-25 Thread Henrik Frisk
Han-Wen Nienhuys [EMAIL PROTECTED] wrote:

 cool!  I would like this to be added to the tips  tricks.  Just a
 minor stylistic comment, for
 
(define hmoveDivOne
(define hmoveDivTwo
(define hmoveLastCol
 
 we usually use let* , ie
 
   (let*
 ((var1 val1)
  (var2 val2)
 )
 ..body.. )

Sure. I'm glad if it can be of any use.

/henrik


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


Re: epsfile include question

2005-08-25 Thread Henrik Frisk
[EMAIL PROTECTED] wrote:

 Henrik Frisk wrote:
 
  1. Is it not possible to move the eps
  graphic? I have tried \raise without success.
 
  . . . I have tried a number of commands
  apart from \raise . . .
 
\markup { \translate #(cons 2 5) \epsfile #eps/nss.eps }
 
 In the LilyPond 2.6.0 manual, section 8.1.7 says that \raise, \lower,
 and \translate cannot be used to displace entire scripts.  But then in
 section 11.2.3 (around the middle of that section), there is an
 explanation of a trick to get around that limitation:  writing
 
\markup {   \translate #'(2.0  .  5.0) foo bar }
 
 would place the empty string () where Lily wants it, but then the
 string foo bar would be placed 2 units to the right of, and 5 units
 above, that empty string, so that in effect foo bar would wind up
 being placed where you wanted it.  On that basis, it would be worth
 trying
 
   \markup {   \translate #'(2.0  .  5.0) \epsfile #eps/nss.eps }
 
 to see if that gives you the displacement you want.
 
 -- Tom

Well, after some fiddling around with this, this is how it works in the score I 
am currently working on with LilyPond 2.7.7 on OSX.

\markup {   \translate #'(2.0  .  5.0) foo bar } = no effect
\markup {\translate #'(2.0  .  5.0) foo bar } = displaced as intended

In both cases the single white space string can be replaced by \hspace #0.0 . 
Same goes for \raise 

This is what Mats pointed out in his reply, and I think that the example in 
11.2.3, that I used as reference, this should be changed. I assume the same is 
true if you define it as a scheme macro in which case this example from 11.2.3 
will not work as intended (haven't tried it...):

#(def-markup-command (character layout props name) (string?)
  Print the character name in small caps, translated to the left and
  top.  Syntax: \\character #\name\
  (interpret-markup layout props
   (markup  #:translate (cons -3 1) #:smallcaps name)))

Thank you all for the help.

/henrik


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


Re: epsfile include question

2005-08-24 Thread Henrik Frisk
Han-Wen Nienhuys [EMAIL PROTECTED] wrote:

 Henrik Frisk wrote:
  Two questions about the \epsfile statement that I can't find in the 
  documentation:
  1. Is it not possible to move the eps graphic? I have tried \raise
  without success.
 
 You can't move scripts wholesale with \raise. See
 
 http://www.lilypond.org/doc/v2.4/Documentation/user/out-www/lilypond/Text-markup.html
 
 Graham,
A few lines fell out of my first post. I have tried a number of commands apart 
from \raise which obviously doesn't work. As far as I understand, \translate 
would be one possible way to move the graphic and I can move it sideways but 
not up or down. IOW the following moves it to the right but not up:

\markup { \translate #(cons 2 5) \epsfile #eps/nss.eps }


 
 Where did this information go in the 2.6/2.7 manual?
 
  2. Is it possible to scale the size of the graphic? (It strikes me now that 
  it may be scaled with the global-staff-size - haven't checked that...)
  Thanks for any input.
 
 No, but I can add it as a sponsored feature, if you like.
 

Yeah, well, how much?

/henrik frisk


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


Re: epsfile include question

2005-08-24 Thread Henrik Frisk
Mats Bengtsson [EMAIL PROTECTED] wrote:

 
 
 Henrik Frisk wrote:
  Han-Wen Nienhuys [EMAIL PROTECTED] wrote:
  
 Henrik Frisk wrote:
 
 Two questions about the \epsfile statement that I can't find in the 
 documentation:
 1. Is it not possible to move the eps graphic? I have tried \raise
 without success.
 
 You can't move scripts wholesale with \raise. See
 
 http://www.lilypond.org/doc/v2.4/Documentation/user/out-www/lilypond/Text-markup.html
 
 Graham,
  A few lines fell out of my first post. I have tried a number of
  commands apart from \raise which obviously doesn't work. As far as I
  understand, \translate would be one possible way to move the graphic
  and I can move it sideways but not up or down. IOW the following
  moves it to the right but not up:
  \markup { \translate #(cons 2 5) \epsfile #eps/nss.eps }
 
 The example from the 2.4 manual doesn't work out of the box in 2.6.
 You have to replace the  with   or \hspace #1.0 to give \raise
 some object to raise relative to. Of course, a better alternative is
 probably to increase the padding:
 \once \override TextScript #'padding = #3.0
 c^\markup{...}
 
 /Mats
Well, here we go! That's something that works.
Thank you! 

/henrik


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


epsfile include question

2005-08-23 Thread Henrik Frisk
Two questions about the \epsfile statement that I can't find in the 
documentation:

1. Is it not possible to move the eps graphic? I have tried \raise without 
success.

2. Is it possible to scale the size of the graphic? (It strikes me now that it 
may be scaled with the global-staff-size - haven't checked that...)

Thanks for any input.

/henrik frisk


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


Re: Problem with update syntax in Mac OS X --- converts to 2.7.7 instead of 2.7.6

2005-08-22 Thread Henrik Frisk
I noticed the same thing. Just change the \version statement and you are good 
to go.

Henrik Frisk

 
 Looks like a silly packaging error. Just edit the converted .ly file
 and replace 2.7.7 with 2.7.6 in the \version statement.
 
 /Mats
 
 David Fedoruk wrote:
  Hello all:
  
  I downloaded the latest development version of lilypond for Mac OS X
  (2.7.6-1 (vBuild from 19-08-2005 22:05). When I run Update Syntax from
  the GUI in O S X, it converts to the wrong version.
  
  To test this I took the Welcome document which opens the application
  and contains a short test script renamed it test2.7.6 and ran Update
  syntax... this is its output:
  
  -- SNIP -
  
  convert-ly (GNU LilyPond) 2.7.6
  Processing `/Users/nicholas/Documents/Lilypond/test2.7.6.ly'... 
  Applying conversion: 2.7.0, 2.7.1, 2.7.2, 2.7.4, 2.7.6, 2.7.7
  
  --- end SNIP --
  
  
  Notice that it coverts to 2.7.7, one version higher that it really is.
  As soon as you run the compile for the script it dies because of the
  wrong version. It is really 2.7.6.
  
  david
  


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


Re: Output other than PDF

2005-08-22 Thread Henrik Frisk
If you have the OSX version installed, you can create a symlink to lilypond.sh 
in /usr/local/bin and use it just as the commandline tool would work on Linux 
or with the Fink version of LilyPond. Do

ln -s /usr/local/bin/lilypond.sh /usr/local/bin/lilypond

and open a new terminal window. 

/Henrik Frisk

 Rutgers, I see what you're trying to do. (and silly me for not seeing
 this before to!)
 
   You are trying to type the contents of lilypond.sh into the command
 line. You have failed because its meant to be run as a single command.
 $INSTALL in that script is a variable which is set to /Applications
 which is where Lilypond is. The rest of the script burrows into the
 application bundle and calls lilypond. I tested it like this:
 
 First I typed just 
 
 lilpond.sh
 
 
 -- terminal snip ---
 
   LilyPond produces beautiful music notation.
 For more information, see http://lilypond.org
 
 Options:
   -b, --backend=BACK   use backend BACK (gnome, ps [default],
  scm, svg, tex, texstr)
   -d, --define-default=SYM=VAL set a Scheme program option. Uses
 #t if VAL is not specified
  Try -dhelp for help.
   -e, --evaluate=EXPR  evaluate scheme code
   -f, --formats=FORMATsdump FORMAT,...  Also as separate options:
   --dvigenerate DVI (tex backend only)
   --pdfgenerate PDF (default)
   --pnggenerate PNG
   --ps generate PostScript
   --texgenerate TeX (tex backend only)
   -h, --help   print this help
   -H, --header=FIELD   dump a header field to file BASENAME.FIELD
   -I, --include=DIRadd DIR to search path
   -i, --init=FILE  use FILE as init file
   -o, --output=FILEwrite output to FILE (suffix will be added)
   -j, --jail=USER,GROUP,JAIL,DIR   chroot to JAIL, become USER:GROUP
  and cd into DIR
   --no-print   do not generate printed output
   -p, --previewgenerate a preview of the first system
   -s, --safe-mode  run in safe mode
   -v, --versionprint version number
   -V, --verbosebe verbose
   -w, --warranty   show warranty and copyright
 
 Report bugs to [EMAIL PROTECTED]
 
 --- end teminal snip --
 
 That told me the right flag to use to get lilypond to produce png
 files instead of pdf.
 
 I tested it on a Bach Invention i had just finished typsetting:
 
 lilypond.sh   -f png invention.ly
 
 After rendering I was left with this list of files:
 
 invention-page1.png
 invention-page2.png
 invention-page3.png
 invention.ly
 invention.midi
 invention.ps
 
 If you type this:
 
 lilypond.sh  -f png yourDocument.ly the output will be similar.
 There is yoru PNG and its way easier than I thouught
 
 The out put will be (assuming there are no errors) your typset music
 as  post script file, a midi file and you will find PNG files for each
 page of music manuscript you produced.
 
 
 I hope this makes things WAY easier! Let me know if there are any
 other questions.


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


Re: Extending beamed stems

2005-07-01 Thread Henrik Frisk
OK, that makes sense. Beginner question: Is this terminology 
consistent for all properties, that is, *-extent referring to 
spacing and *-offset to 'real' size?

/henrik

Mats Bengtsson [EMAIL PROTECTED] wrote:
 
 
 Henrik Frisk wrote:
  Your suggested solution seems to be the way to do it. I tried it quickly, 
  but the NoteColumn #'force-hshift didn't do anything. Now, that may be 
  because I am not using the 2.5 yet and i didn't start looking in the manual 
  for a way to achieve this in 2.4. I will upgrade and try again and in any 
  event, you have pointed me in the right direction, and I am sure i will be 
  able to find out. I am still curious to find out why the Voice.Beam 
  #'X-extent and Voice.Beam #'extra-offset doesn't have any effect. This was 
  what I tried at first. Anybody knows why me and Daniel are unsuccessful in 
  getting the desired effect?
 
 As far as I know, the Voice.Beam #'X-extent property is only used
 when LilyPond tries to determine the (horizontal) spacing between
 different objects. In other words, the property does not
 change the size of the object, it just tells the collision and
 spacing handling how large the object should be considered. Same
 goes for extra-X-extent. The extra-offset property, on the other
 should definitely work (and does so according to the email below).
 
/Mats
 
  Daniel Johnson [EMAIL PROTECTED] wrote:
  
 Hmm.  This is a real puzzler, because even though the Beam object
 implements the grob-interface, only certain grob properties have any
 effect.  Specifically, I tried the following on a small test file and
 they did nothing:
 
 \once \override Voice.Beam #'X-extent = #'(0 . 15)
 \once \override Voice.Beam #'extra-X-extent = #'(0 . 15)
 
 Oddly enough, the following DID have an effect:
 \once \override Voice.Beam #'extra-offset = #'(0 . 15)
 but of course I can't really imagine any use for this.
 
 Here's an idea:
 
 1. Just beam from the first three notes over to the high G-flat.
 2. On the D in the left hand, do a \once \override Voice.Stem
 #'flag-style = #'no-flag, and do a \stemUp.
 3. On the D in the left hand, do a \once \override NoteColumn
 #'force-hshift = #-1.  Adjust this value until the stem is aligned
 perfectly with the stem of the note in the right hand.
 4. On the D in the left hand, do a \once \override Voice.Stem #'length =
 #12 or however long it needs to be to meet up with the beam.
 
 I did my research out of the 2.5 manual, so your mileage may vary; but I
 don't think there's anything especially late-breaking about any of the
 features I used above.  The noteheads of the eighth-notes in the left 
 right hands won't be horizontally aligned, but their stems will meet the
 beam in the same place.  Is that acceptable?
 
 --Daniel
 
 Henrik Frisk wrote:
 
 
 I'm running lilypond 2.4.5 (fink installation) on OSX 10.3.9. Attached to 
 this mail is an example. Although this bar works OK the way it is, I would 
 have liked to beam it 1/4+1/8 rather than 1/8+1/8+1/8. Either by 
 connecting the lower beam of the first 1/8 note group to the stem of the 
 second eighth note (from a notation point of view this would be unorthodox 
 since one of the note heads would end up on the wrong side of the stem). 
 The other way would be to have the beam go below all notes on beat one and 
 two (counting eihgth notes).
 
 Here's the code for the bar:
 
  \time 3/8
  ges'''16~[ \revert Beam #'positions ges64 \change Staff=lower f,32. ] 
  \change Staff=upper \stemExtend \noFlag ges'8- \noBeam
  \acciaccatura { g32^\pedalc } \change Staff = lower b,,,32 [ \change 
  Staff = upper f''~ f16~ ] |
 
 And here are the \noFlag and \stemExtend:
 
 noFlag = \once \override Stem #'flag-style = #'no-flag
 stemExtend = \once \override Stem #'length = #32
 
 ...and attached is an image.
 
 This is the first piece I do in LilyPond, so I'm not very experienced yet. 
 Tahnks for any help.
 
 /henrik
 
  
 
 
 
 
  ___
  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: Extending beamed stems

2005-06-23 Thread Henrik Frisk
Your suggested solution seems to be the way to do it. I tried it quickly, but 
the NoteColumn #'force-hshift didn't do anything. Now, that may be because I am 
not using the 2.5 yet and i didn't start looking in the manual for a way to 
achieve this in 2.4. I will upgrade and try again and in any event, you have 
pointed me in the right direction, and I am sure i will be able to find out. I 
am still curious to find out why the Voice.Beam #'X-extent and Voice.Beam 
#'extra-offset doesn't have any effect. This was what I tried at first. Anybody 
knows why me and Daniel are unsuccessful in getting the desired effect?

Daniel Johnson [EMAIL PROTECTED] wrote:

 Hmm.  This is a real puzzler, because even though the Beam object
 implements the grob-interface, only certain grob properties have any
 effect.  Specifically, I tried the following on a small test file and
 they did nothing:
 
 \once \override Voice.Beam #'X-extent = #'(0 . 15)
 \once \override Voice.Beam #'extra-X-extent = #'(0 . 15)
 
 Oddly enough, the following DID have an effect:
 \once \override Voice.Beam #'extra-offset = #'(0 . 15)
 but of course I can't really imagine any use for this.
 
 Here's an idea:
 
 1. Just beam from the first three notes over to the high G-flat.
 2. On the D in the left hand, do a \once \override Voice.Stem
 #'flag-style = #'no-flag, and do a \stemUp.
 3. On the D in the left hand, do a \once \override NoteColumn
 #'force-hshift = #-1.  Adjust this value until the stem is aligned
 perfectly with the stem of the note in the right hand.
 4. On the D in the left hand, do a \once \override Voice.Stem #'length =
 #12 or however long it needs to be to meet up with the beam.
 
 I did my research out of the 2.5 manual, so your mileage may vary; but I
 don't think there's anything especially late-breaking about any of the
 features I used above.  The noteheads of the eighth-notes in the left 
 right hands won't be horizontally aligned, but their stems will meet the
 beam in the same place.  Is that acceptable?
 
 --Daniel
 
 Henrik Frisk wrote:
 
 I'm running lilypond 2.4.5 (fink installation) on OSX 10.3.9. Attached to 
 this mail is an example. Although this bar works OK the way it is, I would 
 have liked to beam it 1/4+1/8 rather than 1/8+1/8+1/8. Either by connecting 
 the lower beam of the first 1/8 note group to the stem of the second eighth 
 note (from a notation point of view this would be unorthodox since one of 
 the note heads would end up on the wrong side of the stem). The other way 
 would be to have the beam go below all notes on beat one and two (counting 
 eihgth notes).
 
 Here's the code for the bar:
 
   \time 3/8
   ges'''16~[ \revert Beam #'positions ges64 \change Staff=lower f,32. ] 
  \change Staff=upper \stemExtend \noFlag ges'8- \noBeam
   \acciaccatura { g32^\pedalc } \change Staff = lower b,,,32 [ \change Staff 
  = upper f''~ f16~ ] |
 
 And here are the \noFlag and \stemExtend:
 
 noFlag = \once \override Stem #'flag-style = #'no-flag
 stemExtend = \once \override Stem #'length = #32
 
 ...and attached is an image.
 
 This is the first piece I do in LilyPond, so I'm not very experienced yet. 
 Tahnks for any help.
 
 /henrik
 
   
 
 
  
 


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


Re: Extending beamed stems

2005-06-22 Thread Henrik Frisk
Daniel Johnson [EMAIL PROTECTED] wrote:

 henrikfr wrote:
 
 I posted a question a while ago but didn't get any feedback, probably 
 because nobody understood my question ;)... I'll give it another try:
 
 I want to extend a beamed stem so that it reaches beyond the beam, without 
 changeing the position or angle of the beam. I want to do it for cross staff 
 notes. I've figured out how to do it for unbeamed notes but can't seem to 
 get it to work for beamed notes.
 
 Thanx for any suggestions.
   
 
 Do you have any scanned examples of what it is you're trying to do? 
 Also, what version of Lilypond are you running, and on what platform?

I'm running lilypond 2.4.5 (fink installation) on OSX 10.3.9. Attached to this 
mail is an example. Although this bar works OK the way it is, I would have 
liked to beam it 1/4+1/8 rather than 1/8+1/8+1/8. Either by connecting the 
lower beam of the first 1/8 note group to the stem of the second eighth note 
(from a notation point of view this would be unorthodox since one of the note 
heads would end up on the wrong side of the stem). The other way would be to 
have the beam go below all notes on beat one and two (counting eihgth notes).

Here's the code for the bar:

  \time 3/8
  ges'''16~[ \revert Beam #'positions ges64 \change Staff=lower f,32. ] \change 
Staff=upper \stemExtend \noFlag ges'8- \noBeam
  \acciaccatura { g32^\pedalc } \change Staff = lower b,,,32 [ \change Staff = 
upper f''~ f16~ ] |

And here are the \noFlag and \stemExtend:

noFlag = \once \override Stem #'flag-style = #'no-flag
stemExtend = \once \override Stem #'length = #32

...and attached is an image.

This is the first piece I do in LilyPond, so I'm not very experienced yet. 
Tahnks for any help.

/henrik



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


Extend stems beyond beam?

2005-06-01 Thread Henrik Frisk
Having just started using lilypond I came across a problem I can't solve. I am 
writing for harp and I have a lot of cross staff notes. At a few places I wish 
to notate a chord with one note in the lower staff and one note in the upper 
staff. I have figured out how to do this as long as the chord is not beamed 
with a previous or following note. Simply put, what i want to work out is how 
to extend a single stem in a beamed group of notes beyond the beam in order to 
connect it to a note in the other staff.

This may sound like a silly thing to do and I don't necessarily need to do it. 
But I still want to figure out if, and then how this can be done.

Greatful for any suggestions,

Henrik Frisk


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