RE: Feat. request: autobehaviour of \unfoldRepeats

2009-04-11 Thread Piero Faustini

Thanks Valentin,

> It is now: http://code.google.com/p/lilypond/issues/detail?id=769


_
Quante ne sai? Scoprilo con CrossWire!
http://clk.atdmt.com/GBL/go/140630367/direct/01/___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Lilypond crash

2009-04-11 Thread M Watts

Nick Payne wrote:

I was attempting to shorten the entry required for indicating
strokefingering:

\version "2.12.2"

i = #(define-music-function (parser location) () #{
\rightHandFinger #2
#})

\relative c' {  }

This causes Lilypond to crash (2.12.2, Windows). The entry in the
application event log shows:

Faulting application name: lilypond.exe, version: 2.12.2.1, time stamp:
0x497bdfce
Faulting module name: libguile-17.dll, version: 0.0.0.0, time stamp:
0x497bdfcd
Exception code: 0xc005
Fault offset: 0x0002d4a7
Faulting process id: 0x15a0
Faulting application start time: 0x01c9ba2888d32f3b
Faulting application path: C:\Program Files\LilyPond\usr\bin\lilypond.exe
Faulting module path: C:\Program Files\LilyPond\usr\bin\libguile-17.dll
  


Also crashes 2.12.2 on Fedora 10.

GNU LilyPond 2.12.2
Processing `shorten_finger.ly'
Parsing...
Interpreting music... fish: Job 3, “lilypond shorten_finger.ly ” 
terminated by signal SIGSEGV (Address boundary error)




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


Re: Lilypond crash

2009-04-11 Thread Michael Käppler

Hi Nick,
I'm able to reproduce this on OpenSuse 11.0 with LilyPond 2.13, too.

I don't know if there's a more simple way, but try this instead:

i = #(define-music-function (parser location) ()
(apply make-music
 (append
  (list
   'StrokeFingerEvent
   'origin location)
  (list 'digit 2

Cheers,
Michael


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


Re: please help

2009-04-11 Thread Mark Polesky

 Um... I wouldn't reply to this if I were
you! How much more spammy can you get?

Real people post questions, not e-mail
address requests...

- Mark



- Original Message 
> From: Sky B. 
> To: lilypond-user@gnu.org
> Sent: Friday, April 10, 2009 7:20:07 PM
> Subject: please help
> 
> could u plz send me ur email address (send to: dooksucks4e...@gmail.com) i 
> gotta
> question.
> 
> 
> 
> 
> 
> ___
> 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: (de)cresendi syntax

2009-04-11 Thread MonAmiPierrot

...it's a dirty job but...

the italian term "crescendo" is not a noun, is a gerund (meaning "raising",
"growing"), so, when substantivated, in italian language, is indeclinable -
thus if I "amo il crescendo rossiniano", I still "amo tutti i crescendo
rossiniani" (if you find an italian who says "crescendi", you have the
license to kill him). In an english context, the plural is simple:
"crescendoes". 
If the english language respected italian (and french and spanish and
german...) language as it does with latin, I did not have to bother you!!!
But thanks for the try!
bye
Piero

-
Piero Faustini, PhD student
Dipartimento di Scienze Storiche
Sezione musicologia
Università di Ferrara 

Main Software used:

- LyX 1.6.1 on WinXP sp3; EndNote & JabRef
- MikTex
- LaTeX class: Koma book
- Lilypond 2.12 for example excerpts
- BibLaTeX for bibliographies 


-- 
View this message in context: 
http://www.nabble.com/%28de%29cresendi-syntax-tp22144542p22999061.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.



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


Re: (de)cresendi syntax

2009-04-11 Thread Werner LEMBERG

> In an english context, the plural is simple: "crescendoes".

Ouch.  I would use `crescendos'.


Werner


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


Re: hiding portions of slurs/ties around specific objects

2009-04-11 Thread Mark Polesky
Mark Polesky wrote:
> So the command 
>   \override Fingering #'avoid-slur = ##f
> will trigger the warning only if there's actually a
> fingering in the score following the command.
> 
> Does anyone know an easier way to find which grobs 
> trigger this warning? Then I can incorporate it into
> the macro and save a little frustration for future
> users.

I just realized that for the macro to work properly, 
'avoid-slur really should be set to #f for all slur-hiding
grobs. Better yet would be a value like 'ignore (which
doesn't exist yet). Although I proposed it on -devel:

http://lists.gnu.org/archive/html/lilypond-devel/2009-04/msg00129.html

Anyway, the mess that looks like this:

  \override $context . $top-grob
   #(if (or ;; append to this list if you get the warning:
;; "Ignoring grob for slur: . avoid-slur not set?"
(equal? $top-grob "Fingering")
(equal? $top-grob "Accidental")
)
'stencil
'avoid-slur) = ##f

...should really just be:

  \override $context . $top-grob #'avoid-slur = ##f

One compromise is to set 'avoid-slur to 'around:

  \override $context . $top-grob #'avoid-slur = #'around

This has the same effect of setting it to #f in many 
grobs, but not all, so it's not the ideal solution. The 
real problem then, is suppressing the warning messages
you get when setting 'avoid-slur to #f, which could easily
happen dozens of times during a single compile.

Off hand, I don't know how to do that, and if you do, you
may want to reply to the thread linked above. But the 
functionality of the macro comes first, so I'm attaching 
it, in what may be the final form for now, warning
messages and all.

Cheers.
- Mark



  \version "2.13.0"

#(define (parse-grob-sym grob-sym)
 (let* ((grob-str  (symbol->string grob-sym))
(dot-index (string-index grob-str #\.))
(context   (if dot-index
   (string-take grob-str dot-index)
   "Voice"))
(grob  (if dot-index
   (substring grob-str (+ dot-index 1))
   grob-str)))
   (cons context grob)))
   
hideCurvesFrom =
#(define-music-function
   (parser location grob-sym
x-padding
y-padding)
   (symbol? pair? pair?)
   (let* ((context  (car (parse-grob-sym grob-sym)))
  (top-grob (cdr (parse-grob-sym grob-sym
#{
  \override Tie #'layer = #-2
  \override Slur #'layer = #-2
  \override PhrasingSlur #'layer = #-2
  
  \override $context . $top-grob #'avoid-slur = ##f
  \override $context . $top-grob #'layer = #-1
  \override $context . $top-grob #'stencil =
#(lambda (grob)

   ;; get-stil-proc is a workaround because there may
   ;; be more than one 'stencil entry in basic-props
   (define (get-stil-proc alist)
 (let ((stil-proc (ly:assoc-get 'stencil alist)))
   (if (procedure-name stil-proc)
   stil-proc
   (begin (set! alist (assoc-remove! alist 'stencil))
  (get-stil-proc alist)
  
   (let* ((basic-props (ly:grob-basic-properties grob))
  (stil-proc (get-stil-proc basic-props))
  (this-stil (stil-proc grob))
  (stil-x-ext (ly:stencil-extent this-stil 0))
  (stil-y-ext (ly:stencil-extent this-stil 1))
  (box-x-ext (cons (- (car stil-x-ext) (car $x-padding))
   (+ (cdr stil-x-ext) (cdr $x-padding
  (box-y-ext (cons (- (car stil-y-ext) (car $y-padding))
   (+ (cdr stil-y-ext) (cdr $y-padding
  (box-w (- (cdr box-x-ext) (car box-x-ext)))
  (box-h (- (cdr box-y-ext) (car box-y-ext
  (ly:stencil-add
   (ly:make-stencil
(list 'embedded-ps
 (ly:format
  (string-append "gsave\n"
 "currentpoint translate\n"
 "1 setgray\n"
 "~a ~a ~a ~a rectfill\n"
 "grestore\n")
  (car box-x-ext)
  (car box-y-ext)
  box-w
  box-h))
stil-x-ext
stil-y-ext)
   this-stil)))
#}))

revertHideCurvesFrom =
#(define-music-function
   (parser location grob-sym)
   (symbol?)
   (let* ((context  (car (parse-grob-sym grob-sym)))
  (top-grob (cdr (parse-grob-sym grob-sym
#{
  \revert Tie #'layer
  \revert Slur #'layer
  \revert PhrasingSlur #'layer
  \revert $context . $top-grob #'avoid-slur
  \revert $context . $top-grob #'layer
  \revert $context . $top-grob #'stencil
#}))

%% EXAMPLE %%
% {
\version "2.13.0"

\pointAndClickOff

\relative {
  \repeat volta 2 {

%% syntax: \hideCurvesFrom [grob] [x-padding] [y-padding]

% always call \hideCurvesFrom before the curve starts:
\hideCurvesFrom #'Fingering   #'(0.3 . 0.3) #'(0 . 

trills

2009-04-11 Thread Berthold Gunreben
Hi,

I am quite new to lilypond and stumbled over a question regarding trills. I'd 
like to use pitched trills which works quite well with something like:

\pitchedTrill b2  \startTrillSpan cis b \stopTrillSpan

However when I want to do a pitched trill over just one single note, I always 
get errors:

test.ly:34:17: warning: programming error: bounds of this piece aren't 
breakable.
  \pitchedTrill b
 \startTrillSpan cis \stopTrillSpan

Also when doing a second similar trill afterwards, I get different warning:

test.ly:35:17: warning: already have a trill spanner
  \pitchedTrill c
 \startTrillSpan d \stopTrillSpan

but the trill is not correctly displayed. Obviously I do miss something there.

The version of lilypond I use is 2.10.29.
Any help is greatly appreciated.

Thanks

Berthold


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


Re: (de)cresendi syntax

2009-04-11 Thread Trevor Daniels


Werner LEMBERG wrote Saturday, April 11, 2009 9:35 AM





In an english context, the plural is simple: "crescendoes".


Ouch.  I would use `crescendos'.


To be pedantic, if "crescendo" is not a noun there is no
plural, even in English.  It should always be written as 
"crescendo markings" or "crescendo indications".  There is
a similar situation with the anglicised Latin "requiems", 
which is strictly incorrect. It should be "requiem masses".


Trevor



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


Re: guitar tab feature request

2009-04-11 Thread Marc Hohl

Grammostola Rosea schrieb:

Hi guys,

Some  progress on the tablature side of Lilypond? I'm looking forward 
to it ;)



David is collecting the desired features,
but I don't know how far he has come ...

David, if I can help you in any way, 
don't hesitate, just tell me what to do.



Have an nice weekend.


Thank you, happy easter!

Marc

\r


___
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: Real-world usage of Lilypond

2009-04-11 Thread Graham Percival
On Fri, Apr 10, 2009 at 03:57:03PM +0200, Christ van Willegen wrote:
> Graham, list,
> 
> On Thu, Apr 9, 2009 at 2:04 PM, Graham Percival
>  wrote:
> > Are you?  The best way to get this started is to join the Frogs,
> > our team of bugfixers.  After fixing a few bugs, you'll be able to
> > start extending lilypond in the direction(s) you desire.
> 
> Question: Can anyone help me setup a Q virtual machine that can build
> Lilypond from source?

This is a popular question.  A few months ago there was a long
discussion on -devel about this, but I think the person who was
trying to get it set up decided to get a cheap Linux computer
instead.

> It seems that (parts of) Lily is in C++, which I've been using since
> 1995. So, I can read and (probably) bugfix in it. I guess I'll have to
> learn other languages on the way as well, including .ly (since it's
> changed a lot sometimes!)

I would say that scheme is more important than C++.  Also note
that you can do bugfixes in scheme without recompiling lilypond --
this way you wouldn't need to mess around with any virtual
machines, C++ compilers, etc.


> So, you can probably add me to the list of Frogs. Is there a 'central
> place' for new people to 'gather and discuss'?

Yes, there's a Frog mailist, but I can't remember the address
offhand.  If Valentin had his website up, I could find the address
there.

Carl Sorensen is the FrogMeister, so when you have a patch, I
suggest sending it to him for comments first.

You should also read the Contributor's Guide:
http://www.kainhofer.com/~lilypond/Documentation/devel/contrib-guide/index.html

Cheers,
- Graham


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


RE: (de)cresendi syntax

2009-04-11 Thread Piero Faustini

All of this, of course, to avoid answering Werner's question... that's REAL 
pedantery ;)

> To be pedantic, if "crescendo" is not a noun there is no



_
Quante ne sai? Scoprilo con CrossWire!
http://clk.atdmt.com/GBL/go/140630367/direct/01/___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: (de)cresendi syntax

2009-04-11 Thread Cameron Horsburgh
On Sat, Apr 11, 2009 at 10:40:24AM +0100, Trevor Daniels wrote:
>
> Werner LEMBERG wrote Saturday, April 11, 2009 9:35 AM
>
>
>>
>>> In an english context, the plural is simple: "crescendoes".
>>
>> Ouch.  I would use `crescendos'.
>
> To be pedantic, if "crescendo" is not a noun there is no
> plural, even in English.  It should always be written as "crescendo 
> markings" or "crescendo indications".  There is
> a similar situation with the anglicised Latin "requiems", which is 
> strictly incorrect. It should be "requiem masses".

This is quite true; however, the question must be asked---at what
point do we declare it to be an English word derived from the Italian?

For the record, the first definition of the term in the Oxford
Dictionary is in its noun state, listing 'crescendos' and 'crescendi'
as the plural forms. It also lists the term as an adverb/adjective and
a verb. The Merriam-Webster offers similar defnitions while
recognising the original Italian from is adjectival.

http://www.askoxford.com/concise_oed/crescendo

http://www.merriam-webster.com/dictionary/crescendo

-- 

Cameron Horsburgh

Blog: http://spiritcry.wordpress.com/


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


Margins

2009-04-11 Thread Mark Austin
Is there any way of setting a binding margin. I'm in the process of
creating a music book, and need to increase the left margin of
odd-numbered pages, and the right margin of even numbered pages to
leave space for the ring binding, and don't (unless necessary) want to
have to increase the size of both margins on all pages?

-- 
Mark Austin

--
For Whigs admit no force but argument
--


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


Re: default midi velocity

2009-04-11 Thread Neil Puttock
2009/4/9 Martin Tarenskeen :
> On Wed, Apr 08, 2009 at 12:42:53AM +0100, Neil Puttock wrote:
>> 2009/4/8 Martin Tarenskeen :
>> >> Do you have git installed?  It would be preferable to have a patch
>> >> created with git format-patch.
>
> I have attached such a patch.

>From 8cb3d025d08f08437f22c9ab3d5a4b35996de167 Mon Sep 17 00:00:00 2001
From: Martin Tarenskeen 
Date: Thu, 9 Apr 2009 10:34:42 +0200
Subject: [PATCH] Default MIDI Note-On/Off velocity output.

Note-On: velocity=127 lowered to 90 = mezzoforte
Note-Off: common practice in the MIDI world is to
use Note-On messages with velocity=0 instead.
---
 lily/midi-item.cc |   11 ---
 1 files changed, 4 insertions(+), 7 deletions(-)

diff --git a/lily/midi-item.cc b/lily/midi-item.cc
index b683821..162bf34 100644
--- a/lily/midi-item.cc
+++ b/lily/midi-item.cc
@@ -169,7 +169,7 @@ Midi_time_signature::to_string () const
 Midi_note::Midi_note (Audio_note *a)
 {
   audio_ = a;
-  dynamic_byte_ = 0x7f;
+  dynamic_byte_ = 0x5a;
 }


@@ -225,17 +225,14 @@ Midi_note_off::Midi_note_off (Midi_note *n)
   on_ = n;
   channel_ = n->channel_;

-  // Anybody who hears any difference, or knows how this works?
-  //  0 should definitely be avoided, notes stick on some sound cards.
-  // 64 is supposed to be neutral
-
-  aftertouch_byte_ = 64;
+  // use note_on with velocity=0 instead of note_off
+  aftertouch_byte_ = 0;
 }

 string
 Midi_note_off::to_string () const
 {
-  Byte status_byte = (char) (0x80 + channel_);
+  Byte status_byte = (char) (0x90 + channel_);

   string str = ::to_string ((char)status_byte);
   str += ::to_string ((char) (get_semitone_pitch () + Midi_note::c0_pitch_));
-- 
1.6.0.6

Thanks, it's applied.


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


RE: Lilypond crash

2009-04-11 Thread Nick Payne
Thanks. I duplicated that for the stroke fingers p, i, m, and a, except that
as I couldn't name a function either p or a, I used capitals instead - P, I,
M, A.

Nick

> -Original Message-
> From: lilypond-user-bounces+nick.payne=internode.on@gnu.org
> [mailto:lilypond-user-bounces+nick.payne=internode.on@gnu.org] On
> Behalf Of Michael Käppler
> Sent: Saturday, 11 April 2009 17:25
> To: M Watts
> Cc: lilypond-user@gnu.org; Nick Payne
> Subject: Re: Lilypond crash
> 
> Hi Nick,
> I'm able to reproduce this on OpenSuse 11.0 with LilyPond 2.13, too.
> 
> I don't know if there's a more simple way, but try this instead:
> 
> i = #(define-music-function (parser location) ()
>  (apply make-music
>   (append
>(list
> 'StrokeFingerEvent
> 'origin location)
>(list 'digit 2
> 
> Cheers,
> Michael
> 
> 
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> http://lists.gnu.org/mailman/listinfo/lilypond-user
> No virus found in this incoming message.
> Checked by AVG - www.avg.com
> Version: 8.0.238 / Virus Database: 270.11.50/2051 - Release Date:
> 04/10/09 18:27:00



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


Re: LilyPond midi extension

2009-04-11 Thread Neil Puttock
2009/4/9 Simon Bailey :

> here's the new patch-set. i'm sorry, but i can't work out how to get git to
> give me one single patch for the three commits i made locally since checking
> out.

 insert the following line before the start of the @code{\score} block:

Simon, this line isn't quite right, since users might place the option
setting inside a \book or \bookpart block, resulting in a syntax
error.  It would be better to advise placing the code at top-level.

Regards,
Neil


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


(de)cresendi syntax

2009-04-11 Thread Piero Faustini










> recognising the original Italian from is adjectival.

thus sorry for them, but it is WRONG at all. This is plain english syntax rules 
roughly applied to a foreign language: in english you can say both "the sun 
keeps raising" and "the raising sun".But in italian, gerund is never usable as 
an adjective. The corresponding adjective would be something like "crescente" 
and thus YES, would need a plural form ("crescenti").But as an english, you may 
still want to use gerund "crescendo" as an adjective - thus, in english - no 
need for a plural form.When will we burn our dictionaries?
Piero.
P.S. Why don't we translate ALL Lilypond syntax in italian???  Look:
\nuova Partitura {\nuovo RigoPianoforte {<<\contesto Rigo = "MD" {\chiave basso 
\relativo do' {
do re mi fa sol...

Can you imagine a better old-fashioned music code?

Please please please mum please

_
Chiama gratis dal tuo PC! Parla su Messenger
http://clk.atdmt.com/GBL/go/140630369/direct/01/___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Fingering multiple voices above the stave

2009-04-11 Thread Gerard Neil
Hi everyone,

I'm having a bit of trouble fingering a chorale-like work for piano.
The upper staff has mostly two voices, and it looks best if I finger
them both above the stave. My first approach was to use \override
Fingering #'direction = #UP for the second voice, but then the
fingerings collide with note heads/stems in the first voice. (See
fingfing.ly/.png below)

I had a look on this list and the manual and I see that some people
are using \tweak #'extra-offset to do this sort of thing, but that
seems like way too much work, I have to manually position everything.

So I had the idea of attaching both fingerings to the topmost voice
(fingfing2) using something like "a'-\markup { \override
#'(baseline-skip . 1.5) \finger \column { 5 2 }}". That seems to take
care of the positioning quite nicely for me. I'm happy with this
solution, but it's still cumbersome to enter.

So I've got two questions:
1. Can someone help me write a macro/function to make this simpler? It
would be nice to be able to write something like a^\multiFinger { 2 3
}, for example. I'm sure this is possible, but I've spent a few hours
on it and I'm not really getting far.
2. Or, alternatively, has someone got a better solution?

Thanks,

Gerard

% fingfing.ly - override fingering direction in second voice -

\include "english.ly"

rhOne = \relative c'' {
  \partial 4 d4 |
  cs^4 b8 cs a4 a'^5
}

rhTwo = \relative c'' {
  s4 a2^2 e4 cs'^2 |
}

\new Staff <<
  \key a \major \numericTimeSignature \time 4/4
  \clef treble
  \new Voice { \voiceOne \rhOne }
  \new Voice { \voiceTwo
\override Fingering #'direction = #UP
\rhTwo
  }
>>

% fingfing2.ly - attach fingering to topmost voice

\include "english.ly"

rhOne = \relative c'' {
  \partial 4 d4 |
  cs-\markup { \override #'(baseline-skip . 1.5) \finger \column { 4 2 }}
  b8 cs a4
  a'-\markup { \override #'(baseline-skip . 1.5) \finger \column { 5 2 }} |
}

rhTwo = \relative c'' {
  s4 a2 e4 cs' |
}

\new Staff <<
  \key a \major \numericTimeSignature \time 4/4
  \clef treble
  \new Voice { \voiceOne \rhOne }
  \new Voice { \voiceTwo \rhTwo }
>>
<><>___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Real-world usage of Lilypond

2009-04-11 Thread Neil Puttock
2009/4/11 Graham Percival :
> On Fri, Apr 10, 2009 at 03:57:03PM +0200, Christ van Willegen wrote:

>> It seems that (parts of) Lily is in C++, which I've been using since
>> 1995. So, I can read and (probably) bugfix in it. I guess I'll have to
>> learn other languages on the way as well, including .ly (since it's
>> changed a lot sometimes!)
>
> I would say that scheme is more important than C++.  Also note
> that you can do bugfixes in scheme without recompiling lilypond --
> this way you wouldn't need to mess around with any virtual
> machines, C++ compilers, etc.

In my experience of bugfixing, I'd say C++ is more important; I'd be
surprised if the majority of issues in the tracker don't involve some
C++ code.

>> So, you can probably add me to the list of Frogs. Is there a 'central
>> place' for new people to 'gather and discuss'?
>
> Yes, there's a Frog mailist, but I can't remember the address
> offhand.  If Valentin had his website up, I could find the address
> there.

http://listengine.tuxfamily.org/lilynet.net/frogs/

Regards,
Neil


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


Embedding TeX/LaTeX in .ly files?

2009-04-11 Thread Greg Novak
Hello,
Is it possible to embed Latex commands into text within .ly files?
Something like:

\markup{ 2^{nd}}, or perhaps \markup{ "$2^{nd}"}

I don't like the output of \super, but I use Latex all the time so I'm
quite comfortable with its commands, notation, etc.

For context: I started using Lilypond this morning and have gone
through the tutorial, part of the manual, and part of the "snippets"
page.  So it's quite possible that this is documented and I've just
missed it.

Thanks,
Greg


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


Re: Embedding TeX/LaTeX in .ly files?

2009-04-11 Thread Graham Percival
On Sat, Apr 11, 2009 at 12:43:09PM -0400, Greg Novak wrote:
> Is it possible to embed Latex commands into text within .ly files?

No.

If you were desperate, you could render the latex as an .eps file
and then include that image, but that's it.

Embedding .ly files into LaTeX, on the other hand, is easy with
lilypond-book.

Cheers,
- Graham


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


Include guards

2009-04-11 Thread gnomino
Hi,

Is there any way to put include guards in .ly files, to ensure that each file is
included only once?

If not, then is there any way to simulate include guards using Scheme? In
particular, is there a Scheme function that does the equivalent of \include?

Thanks in advance.



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


Re: Fingering multiple voices above the stave

2009-04-11 Thread -Eluze

hi 
which version are you using? when i compile your code wit version 2.12.2 i
do not get collisions.

if you feel stems and fingerings are to close you could add some extraspace
with

\override Fingering #'extra-offset = #'( -0.5 . 0) 

or choose the value you prefer

hth
-- 
View this message in context: 
http://www.nabble.com/Fingering-multiple-voices-above-the-stave-tp23002264p23005999.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.



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


Re: (de)cresendi syntax

2009-04-11 Thread Anthony W. Youngman
In message , Piero Faustini 
 writes


.ExternalClass .EC_hmmessage P {padding:0px;} .ExternalClass
body.EC_hmmessage {font-size:10pt;font-family:Verdana;}

recognising the original Italian from is adjectival.


thus sorry for them, but it is WRONG at all. This is plain english syntax
rules roughly applied to a foreign language: in english you can say both
"the sun keeps raising" and "the raising sun".


Actually, you can't. "raising" (if I've got my grammar right) is a 
transitive verb, ie the subject and object are not the same thing. You 
mean "rising", which is intransitive, and so can be applied to an 
object.


Cheers,
Wol
--
Anthony W. Youngman - anth...@thewolery.demon.co.uk



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


VoiceFollower help

2009-04-11 Thread James E. Bailey

I'm having two questions.

First, \override VoiceFollower #'style = #'dotted-line doesn't seem  
to work here. Why not?

\version "2.12.2"

\score {
   \new PianoStaff <<
  \new Staff = RH \relative g' {
 \time 3/2
 \showStaffSwitch
 \once \override VoiceFollower #'style  = #'dotted-line
 g4 a h c a \change Staff = LH f4 |
 \hideStaffSwitch \change Staff = RH
 r4 c' h2 g  |
  }
  \new Staff = LH \relative f' {
 \time 3/2
 f2 d4 e c \change Staff = RH r \change Staff = LH
 d4 c e2 g
  }
   >>
}

Second, is this the most efficient way to do something like this? It  
seems a bit over-burdened.


James E. Bailey



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


lyrics to split parts / vocal cue notes

2009-04-11 Thread Hendrik Fuß

Hi there,

I'm trying to put lyrics to a voice in a two-voice context, but I seem 
to be doing something wrong. In the following minimal example the notes 
after the split part are garbled:


\score

{

\new Staff

\relative c'

{

\time 2/4

<<

{ \voiceOne R2 } \\

\new Voice = "cue" {

\voiceTwo

c8 d e f

}

\new Lyrics \lyricsto "cue" {

do re mi fa

}

>>

g4 g4

a8 a a a

}

}

\version "2.10.33"


The aim is, of course, to manually typeset vocal cue notes. Any help 
greatly appreciated.


thanks
Hendrik


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


Re: Fingering multiple voices above the stave

2009-04-11 Thread Carl D. Sorensen



On 4/11/09 9:27 AM, "Gerard Neil"  wrote:



> 
> So I've got two questions:
> 1. Can someone help me write a macro/function to make this simpler? It
> would be nice to be able to write something like a^\multiFinger { 2 3
> }, for example. I'm sure this is possible, but I've spent a few hours
> on it and I'm not really getting far.

I thought this would be easy, but it took me a while longer than I expected.
This file includes two slightly different ways of doing it:

#(define-markup-command (cf layout props fingerings) (pair?)
  (let ((markup-list (map number->string fingerings)))
   (interpret-markup layout
 (cons (list '(baseline-skip . 1.5)) props)
 (markup
   #:finger
   (make-column-markup markup-list)
myCF =
#(define-music-function (parser location fingerings) (pair?)
   (let ((markup-list (map number->string fingerings)))
   (make-music 'TextScriptEvent 'text
(markup   #:override '(baseline-skip . 1.5)
  #:finger 
  (make-column-markup markup-list)

\include "english.ly"

rhOne = \relative c'' {
  \partial 4 d4 |
  cs-\myCF #'(4 2) 
  b8 cs a4
  a'-\markup \cf #'(5 2)
}


rhTwo = \relative c'' {
  s4 a2 e4 cs' |
}

\new Staff <<
  \key a \major \numericTimeSignature \time 4/4
  \clef treble
  \new Voice { \voiceOne \rhOne }
  \new Voice { \voiceTwo \rhTwo }
>>


> 2. Or, alternatively, has someone got a better solution?

I thought about partcombine, but that didn't work well.


HTH,

Carl



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


Re: trills

2009-04-11 Thread M Watts

Berthold Gunreben wrote:

Hi,

I am quite new to lilypond and stumbled over a question regarding trills. I'd 
like to use pitched trills which works quite well with something like:


\pitchedTrill b2  \startTrillSpan cis b \stopTrillSpan

However when I want to do a pitched trill over just one single note, I always 
get errors:


test.ly:34:17: warning: programming error: bounds of this piece aren't 
breakable.

  \pitchedTrill b
 \startTrillSpan cis \stopTrillSpan
  


For a pitched trill on a single note, try terminating the trill spanner 
on a spacer note:


\relative c '' {

\pitchedTrill e2\startTrillSpan fis d\stopTrillSpan % as usual

\pitchedTrill e2\startTrillSpan fis s2\stopTrillSpan % with spacer note

}



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


Re: Real-world usage of Lilypond

2009-04-11 Thread Valentin Villenave
2009/4/11 Graham Percival :

> Yes, there's a Frog mailist, but I can't remember the address
> offhand.  If Valentin had his website up, I could find the address
> there.

Actually, the website /is/ up, but it's not official yet (and the
webdesign hasn't been uploaded):
http://frogs.lilynet.net/

Please give me a ping if it doesn't work well.

Regards,
Valentin


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


Re: Fingering multiple voices above the stave

2009-04-11 Thread Gerard Neil
> hi
> which version are you using? when i compile your code wit version 2.12.2 i
> do not get collisions.

I'm using 2.12.1 ; the most obvious problem was the 2 on the final c
sharp being printed underneath the a of the topmost voice, is that
fixed in 2.12.2. That would be nice!

> if you feel stems and fingerings are to close you could add some extraspace
> with \override Fingering #'extra-offset = #'( -0.5 . 0)

Thanks very much for that, I'll give it a try.


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


Re: Fingering multiple voices above the stave

2009-04-11 Thread Gerard Neil
2009/4/12 Carl D. Sorensen :

> I thought this would be easy, but it took me a while longer than I expected.
> This file includes two slightly different ways of doing it:

Carl, you're a champion! Thanks! That's exactly what I was trying to
do. I'd sort of worked out that those were the two approaches, but I
really got lost trying to get it done. I'm a programmer (many, many
years of C++, far too many), but I don't know lisp; I must say that
lilypond has _really_ got me interested, but I just haven't had the
time. It's difficult to keep a balance when what I want to get done is
the music, but the other side of it keeps creeping in too.

I can see I'm going to have to back off and work my way step by step
through the doco (and then some).

Thanks very much for putting in the time to help me.

Gid


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


Re: lyrics to split parts / vocal cue notes

2009-04-11 Thread James E. Bailey

I totally need to finish this documentation patch.

For this, you cannot use this form of polyphony. You must explicitly  
create voices. See the documentation in the Notation Reference,  
rather than the learning manual.


Am 12.04.2009 um 01:44 schrieb Hendrik Fuß:


Hi there,

I'm trying to put lyrics to a voice in a two-voice context, but I  
seem to be doing something wrong. In the following minimal example  
the notes after the split part are garbled:


\score

{

\new Staff

\relative c'

{

\time 2/4

<<

{ \voiceOne R2 } \\

\new Voice = "cue" {

\voiceTwo

c8 d e f

}

\new Lyrics \lyricsto "cue" {

do re mi fa

}

>>

g4 g4

a8 a a a

}

}

\version "2.10.33"


The aim is, of course, to manually typeset vocal cue notes. Any  
help greatly appreciated.


thanks
Hendrik


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


James E. Bailey



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


Re: lyrics to split parts / vocal cue notes

2009-04-11 Thread James E. Bailey

Wow, I should really not answer questions when I'm not awake.

Lyrics need to be associated with a voice context. Regardless of  
whether or not you name them, lilypond creates its own contexts when  
you use the <<{}\\{}>> structure. To solve this, just use << 
{\voiceone}\context Voice = "new voice" {\voiceTwo}>>\oneVoice.  
Notice the lack of the \\ between the two contexts.


Am 12.04.2009 um 01:44 schrieb Hendrik Fuß:


Hi there,

I'm trying to put lyrics to a voice in a two-voice context, but I  
seem to be doing something wrong. In the following minimal example  
the notes after the split part are garbled:


\score

{

\new Staff

\relative c'

{

\time 2/4

<<

{ \voiceOne R2 } \\

\new Voice = "cue" {

\voiceTwo

c8 d e f

}

\new Lyrics \lyricsto "cue" {

do re mi fa

}

>>

g4 g4

a8 a a a

}

}

\version "2.10.33"


The aim is, of course, to manually typeset vocal cue notes. Any  
help greatly appreciated.


thanks
Hendrik


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


James E. Bailey



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


Re: Slur / phrasingSlur half dashed, half solid

2009-04-11 Thread Mark Polesky
MonAmiPierrot wrote:
> Is there any way to have a half-dashed-half-solid Slur, i.e. a slur that
> begins dashed and at a certain point turns solid (or viceversa?)

Piero,

here's one solution. Personally, I don't think it
looks quite as good as it should, but maybe you're
not as picky as I am. Print it out with your highest
quality printer settings and let me know if it is 
good enough for you. Do you need PhrasingSlur done
this way too?

Happy to help.
- Mark



  \version "2.13.0"

halfAndHalfSlur =
#(define-music-function
   (parser location switch-point start-dashed?)
   (number? boolean?)
#{
  % set 'layer to -2 if you're also using my \hideCurvesFrom macro:
  \override Slur #'layer = #-1
  \override Slur #'stencil =
  #(lambda (grob)
(let* ((grob-copy grob)
   (switch-point $switch-point)
   (this-stil (ly:slur::print grob))
   (stil-x-ext (ly:stencil-extent this-stil 0))
   (stil-y-ext (ly:stencil-extent this-stil 1))
   
   ; kludge: extents don't completely cover the slur!
   (stil-x-ext (cons (- (car stil-x-ext) 1)
 (+ (cdr stil-x-ext) 1)))
   (stil-y-ext (cons (- (car stil-y-ext) 1)
 (+ (cdr stil-y-ext) 1)))
 
   (stil-w (- (cdr stil-x-ext) (car stil-x-ext)))
   (stil-h (- (cdr stil-y-ext) (car stil-y-ext)))
   
   (box-w (if $start-dashed?
  (* stil-w switch-point)
  (* stil-w (- 1 switch-point
   (box-x0 (if $start-dashed?
   (car stil-x-ext)
   (- (cdr stil-x-ext)
  box-w)))
   (box-y0 (car stil-y-ext))
   (box-h stil-h))
   
  ;; values come from slurDashed definition in property-init.ly:
  (ly:grob-set-property! grob-copy 'dash-period 0.75)
  (ly:grob-set-property! grob-copy 'dash-fraction 0.4)
  
  (ly:stencil-add
  
   ;; first the solid slur:
   this-stil
   
   ;; then the white box covering part of the solid slur:
   (ly:make-stencil
(list 'embedded-ps
 (ly:format
  (string-append "gsave\n"
 "currentpoint translate\n"
 "1 setgray\n"
 "~a ~a ~a ~a rectfill\n"
 "grestore\n")
  box-x0
  box-y0
  box-w
  box-h))
stil-x-ext
stil-y-ext)

   ;; then the dashed slur:
   (ly:slur::print grob-copy)
   )))
#})

slurDashedSolid = {
  \halfAndHalfSlur #0.5 ##t
}

slurSolidDashed = {
  \halfAndHalfSlur #0.5 ##f
}

slurSolid = {
  % commenting this line out keeps slurs in a lower layer:
  \revert Slur #'layer
  \revert Slur #'stencil
  \slurSolid
}

slurDashed = {
  % commenting this line out keeps slurs in a lower layer:
  \revert Slur #'layer
  \revert Slur #'stencil
  \slurDashed
}

slurDotted = {
  % commenting this line out keeps slurs in a lower layer:
  \revert Slur #'layer
  \revert Slur #'stencil
  \slurDashed
}


%% EXAMPLE %%

%{
\relative {
  \slurDashedSolid f4( d e f)
  \slurSolidDashed f4( d e f)
  \slurSolid f4( d e f)
}
%}<>___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: VoiceFollower help

2009-04-11 Thread Mark Polesky

James E. Bailey wrote:
> \override VoiceFollower #'style = #'dotted-line
> doesn't seem to work here. Why not?

When you use \once, the command only is in effect for the 
next note AFAIK. Either omit the \once or use this order
of commands:

   \showStaffSwitch
   g4 a h c a
   \once \override VoiceFollower #'style  = #'dotted-line
   \change Staff = LH
   f4 |

Second, is this the most efficient way to do something like this? It seems a 
bit over-burdened.

No, you could probably use identifiers to reduce typing.

seehttp://lilypond.org/doc/v2.13/Documentation/user/lilypond-learning/Saving-typing-with-variables-and-functions

HTH
- Mark



  


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


Re: VoiceFollower help

2009-04-11 Thread James E. Bailey


Am 12.04.2009 um 08:26 schrieb Mark Polesky:



James E. Bailey wrote:

\override VoiceFollower #'style = #'dotted-line
doesn't seem to work here. Why not?


When you use \once, the command only is in effect for the
next note AFAIK. Either omit the \once or use this order
of commands:


Wow, all this time, and I never realised that. I guess I don't use  
\once often enough.


Second, is this the most efficient way to do something like this?  
It seems a bit over-burdened.


No, you could probably use identifiers to reduce typing.

seehttp://lilypond.org/doc/v2.13/Documentation/user/lilypond- 
learning/Saving-typing-with-variables-and-functions


I don't follow. What do you mean?



HTH
- Mark




Thanks!
James E. Bailey



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