Re: bug in tremolo snippet?

2011-11-20 Thread Jay Anderson
On Wed, Oct 26, 2011 at 5:25 PM, Shevek  wrote:
>
> I've been playing around with the " http://lsr.dsi.unimi.it/LSR/Item?id=604
> consecutive tremolos " snippet, but I can't seem to get it to work. My
> output only ever produces single slash tremoli, and raises the error,
> "warning: tremolo duration is too long" whenever there are eighth notes or
> shorter. Strangely, when I apply the unfoldTremolos function from the same
> snippet, the tremoli correctly unfold into sixteenth notes.
>
> Since I am a total beginner when it comes to Scheme, I'd really appreciate
> some help figuring this out.
>
> http://old.nabble.com/file/p32728588/consecutive_tremolos.png

I think you need to add the following to the make-music section of the
make-tremolo function:

'tremolo-type dur

I'm not sure when this was changed, but this made it work in 2.15.19.
I haven't looked at this in depth so there could be other issues.

For future reference, the way I debugged this was to compare the
output of \displayMusic of the standard \repeat tremolo ...  what the
\tremolos ... function created and noticed the missing parameter.

-Jay

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


Re: Liste de mots clés LilyPond

2011-11-20 Thread Eluze

Am 20.11.2011, 16:38 Uhr, schrieb :




Aurais-tu encore sous le coude tes modèles de saisie Notepad++ et PSPAD ?

Histoire de comprendre comment cela fonctionne, et de commencer à les  
compléter...





bonsoir

après le crash de mon laptop je suis toujours en train de récupérer les  
données et je crains que ça va durer.


je reviendrai dans queleques jours!

cordialement
Eluze

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


ragged-last

2011-11-20 Thread Gerard McConnell
oops, sorry, I spotted it.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


\ragged-last

2011-11-20 Thread Gerard McConnell
Hello,
Please, what's wrong with the following code:
\version "2.12.50"
\layout {
\ragged-last = ##t
\context {
\Score
\remove "Bar_number_engraver"
}
}
it gets the error message:
error: unknown escaped string: `\ragged-last'
\ragged-last = ##t
Thanks,
Gerard
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Make merge rests on positioning work

2011-11-20 Thread Xavier Scheuer
On 20 November 2011 17:40, Thomas Morley  wrote:
> Hi Xavier,
>
> […]
>
> I had no problems compiling the LSR-Snippet with "2.14.2" and "2.15.13".  Of
> course this snippet doesn't define merging MultiMeasureRests.
>
> […]
>
> Also, I didn't notice any problem with the code given by Wilbert when using
> "2.14.2".

You are right.  I was looking at the MMR and did not realize the rest
was actually merged!  We have an expression for that in French:
"Je n'avais pas les yeux en face des trous".  ;-P


> In the code below I integrated Neil's suggestion making the second MMR
> transparent. (To avoid printing a second MultiMeasureNumber I made the
> second number transparent manually. As Neil remarked an engraver would be
> better, but this is beyond my knowledge.)
> But with "2.15.13" there is a difference between merging a single MMR and
> merging \compressFullBarRests R1*9. Perhaps a bug?
>
> I added some conditions reading out the measure-count and the used
> lilypond-version to deal with the behaviour of the different versions.
>
> It's a hack, but I hope it will work with "2.14." and "2.15". Please let me
> know.

Thanks!
That works, and that works great AFAICS.  I have sent in the the French
users mailing list.

Cheers,
Xavier

-- 
Xavier Scheuer 

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


Re: Scheme for rhythmic transposition

2011-11-20 Thread David Kastrup
David Kastrup  writes:

> "Phil Holmes"  writes:
>
>> \shiftDurations seems to be remaining poorly documented.  I'd be happy
>> to update the LSR with that function rather than the way it is now,
>> but it seems to me that durations can only be made shorter, not
>> longer?  If I use:
>>
>>\shiftDurations 1 0 { \music }
>>
>> all is OK.  However, with
>>
>>\shiftDurations -1 0 { \music }
>>
>> I get:
>>
>> ShiftDur.ly:11:20: error: wrong type for argument 1.  Expecting
>> integer, found #> . #))((display-methods #> (event parser)>) (name . FingeringEvent) (types general-music
>> fingering-event event)) >
>>
>>\shiftDurations
>>-1 0 { \music }
>>
>> Is this the correct usage, and does this mean that \shiftDurations
>> does only shorted music?
>
> 1 is an UNSIGNED.  -1 is a fingering.  Hooray.  Try #-1 instead.  I'll
> eventually get around to getting the "interpret in the correct manner by
> magic" behavior for negative numbers as well, but it has never been in
> Lilypond so far.

http://code.google.com/p/lilypond/issues/detail?id=2049>

At some point of time I'll get to the stage where there are no naive
mistakes to make any more.

-- 
David Kastrup


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


Re: whiteout of beam doesn't work

2011-11-20 Thread Stefan Thomas
Thanks Xavier,
I didn't see it, but it works fine now!

2011/11/19 Xavier Scheuer 

> On 19 November 2011 10:30, Stefan Thomas
>  wrote:
> > Dear community,
> > in the following snippet, I wanted to white out the beam.
> > Unfortunately it doesn't work and I don't understand the reason for it.
> > Any idea?
>
>   \override Staff.TimeSignature #'layer = #3
>
> (you forgot the "Staff." for this one).  Then you have the white out.
>
> Cheers,
> Xavier
>
> --
> Xavier Scheuer 
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: beginners question Lilypond

2011-11-20 Thread Francisco Vila
2011/11/20 Francisco Vila :
> If you plan using relative mode, remember to raise the second note an
> octave, for ascending intervals greater than a fifth.

greater _or equal_ to a fifth.

-- 
Francisco Vila. Badajoz (Spain)
www.paconet.org , www.csmbadajoz.com

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


Re: beginners question Lilypond

2011-11-20 Thread James
Hello,

On 20 November 2011 16:38, Francisco Vila  wrote:

> 2011/11/20 Kim van Aurich-Hoogenraad :



> > 1. = \new Staff } g4 g4 d4 d4 \ e4 e4 d2 \
>
> Avoid the backslash at all, it means nothing.
>

I think you meant to use bar checks in which case the character is not a
back slash but a " | " character - a vertical bar.


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


Re: lilypond to musicxml

2011-11-20 Thread Francisco Vila
2011/11/20 rosea grammostola :
> Big pita that there is no such functionality yet. Open source is (almost)
> always walking behind and hard to get a decent workflow with music related
> stuff...

If you compare LilyPond to most engraving software, I'd rather say the
opposite.  And pirating software does not make it free, which leaves
you with truly free software as the only option sometimes.  And
because it is free, it has the same improving potential as any other
software.

> Anyway before I get too negative, count me in for 20 USD.
-- 
Francisco Vila. Badajoz (Spain)
www.paconet.org , www.csmbadajoz.com

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


Re: Make merge rests on positioning work

2011-11-20 Thread Thomas Morley
Hi Xavier,

2011/11/20 Xavier Scheuer 

> Hi,
>
> Someone on the French users mailing list basically wants the features of
>  \override RestCollision #'positioning-done = #merge-rests-on-positioning
>
> Issue #1228 is tagged as "Patch-abandoned", LSR #336 is not working
> with current version.
>

I had no problems compiling the LSR-Snippet with "2.14.2" and "2.15.13".
Of course this snippet doesn't define merging MultiMeasureRests.

http://code.google.com/p/lilypond/issues/detail?id=1228
> http://lsr.dsi.unimi.it/LSR/Item?id=336
>
> However, the code given by Wilbert in the first comment works, except
> that the MMRs appears below the 3rd (middle) line, instead of below the
> 4th line (normal position).  Apparently
>  MultiMeasureRest #'staff-position  changed from #0 to #2 for the
> normal position between 2.12 and 2.14/2.15.
>
> Could a "power user" give some help in order to make it work correctly
> with 2.14/2.15?  Even better if a dev could implement it (correctly) in
> LilyPond, but in the meantime I'm sure the French users would be happy
> with a hack!
> http://codereview.appspot.com/4005046/
> http://lists.gnu.org/archive/html/bug-lilypond/2011-03/msg00291.html
>
> Thanks in advance.
>
> Cheers,
> Xavier 


Also, I didn't notice any problem with the code given by Wilbert when using
"2.14.2".

In the code below I integrated Neil's suggestion making the second MMR
transparent. (To avoid printing a second MultiMeasureNumber I made the
second number transparent manually. As Neil remarked an engraver would be
better, but this is beyond my knowledge.)
But with "2.15.13" there is a difference between merging a single MMR and
merging \compressFullBarRests R1*9. Perhaps a bug?

I added some conditions reading out the measure-count and the used
lilypond-version to deal with the behaviour of the different versions.

It's a hack, but I hope it will work with "2.14." and "2.15". Please let me
know.

Amitiés,
  Harm
%{
  Based on http://lsr.dsi.unimi.it/LSR/Snippet?id=336
  
  Merges rests and multi-measure rests that occur on the same moment inside a
  staff with two voices.
  
  Usage:
  
  \include "merge-rests"
  
  \layout {
\mergeRests
  }
  
  or inside the music:
  
  \new Staff <<
\relative c' {
  \mergeRestsOn	%% in one of the voices is sufficient
  c4 d e f g r r2
}
\\
\relative c' {
  a4 b c d e r r2
}
  >>
 
%}

\version "2.14.2"
%\version "2.15.13"

#(define (rest-score r)
  (let ((score 0)
	(yoff (ly:grob-property-data r 'Y-offset))
	(sp (ly:grob-property-data r 'staff-position)))
(if (number? yoff)
	(set! score (+ score 2))
	(if (eq? yoff 'calculation-in-progress)
	(set! score (- score 3
(and (number? sp)
	 (<= 0 2 sp)
	 (set! score (+ score 2))
	 (set! score (- score (abs (- 1 sp)
score))

#(define (merge-rests-on-positioning grob)
  (let* ((can-merge #f)
	 (elts (ly:grob-object grob 'elements))
	 (num-elts (and (ly:grob-array? elts)
			(ly:grob-array-length elts)))
	 (two-voice? (= num-elts 2)))
(if two-voice?
	(let* ((v1-grob (ly:grob-array-ref elts 0))
	   (v2-grob (ly:grob-array-ref elts 1))
	   (v1-rest (ly:grob-object v1-grob 'rest))
	   (v2-rest (ly:grob-object v2-grob 'rest)))
	  (and
	   (ly:grob? v1-rest)
	   (ly:grob? v2-rest)
	   (let* ((v1-duration-log (ly:grob-property v1-rest 'duration-log))
		  (v2-duration-log (ly:grob-property v2-rest 'duration-log))
		  (v1-dot (ly:grob-object v1-rest 'dot))
		  (v2-dot (ly:grob-object v2-rest 'dot))
		  (v1-dot-count (and (ly:grob? v1-dot)
 (ly:grob-property v1-dot 'dot-count -1)))
		  (v2-dot-count (and (ly:grob? v2-dot)
 (ly:grob-property v2-dot 'dot-count -1
	 (set! can-merge
		   (and
		(number? v1-duration-log)
		(number? v2-duration-log)
		(= v1-duration-log v2-duration-log)
		(eq? v1-dot-count v2-dot-count)))
	 (if can-merge
		 ;; keep the rest that looks best:
		 (let* ((keep-v1? (>= (rest-score v1-rest)
  (rest-score v2-rest)))
			(rest-to-keep (if keep-v1? v1-rest v2-rest))
			(dot-to-kill (if keep-v1? v2-dot v1-dot)))
		   ;; uncomment if you're curious of which rest was chosen:
		   ;;(ly:grob-set-property! v1-rest 'color green)
		   ;;(ly:grob-set-property! v2-rest 'color blue)
		   (ly:grob-suicide! (if keep-v1? v2-rest v1-rest))
		   (if (ly:grob? dot-to-kill)
		   (ly:grob-suicide! dot-to-kill))
		   (ly:grob-set-property! rest-to-keep 'direction 0)
		   (ly:rest::y-offset-callback rest-to-keep)))
(if can-merge
	#t
	(ly:rest-collision::calc-positioning-done grob

#(define merge-multi-measure-rest-on-Y-offset
  ;; Call this to get the 'Y-offset of a MultiMeasureRest.
  ;; It keeps track of other MultiMeasureRests in the same NonMusicalPaperColumn
  ;; and StaffSymbol. If two are found, make transparent one and return 1 for Y-offset of
  ;; the other one.
  (let ((table (make-weak-key-hash-table)))
(lambda (grob)
  (let* ((ssy

Re: beginners question Lilypond

2011-11-20 Thread Francisco Vila
2011/11/20 Kim van Aurich-Hoogenraad :
> What do I do wrong in the below example???
> I want:
> - a landscape printed music sheet (with very big sized staffs "so, when I
> print it on my graphic braille printer, I can check it myself, before I
> print it in normal size");
>
> - Each staff only has a few notes and in front of each staff I want a
> number.

  \set Staff.instrumentName="1"

will print "1" in front of the first staff.

  \set Staff.shortInstrumentName ="2"

will print "2" in front of the second staff and further ones.

> PHs.: And what is a good/normal landscape size for normal sighted people to
> use?

Size 20 is normal size.

> \version "2.14.2

You do not close the double quoted section here. (this is bad)

> \layout { }
>
>    #(set-default-paper-size "a4" 'landscape)
>   #(set-global-staff-size 26)
>
> \header {
>
>   title = "Example: Twinkle twinkle little star"
>
> "

Here you close with double quoting mark, use closing curly brace
instead for the header block.

> melody = \relative c' {

If you plan using relative mode, remember to raise the second note an
octave, for ascending intervals greater than a fifth.

>   \clef treble
>   \key c \major
>   \time 4/4
> 1. = \new Staff } g4 g4 d4 d4 \ e4 e4 d2 \

Avoid the backslash at all, it means nothing.

Take this two lines an an example for your first line:

  \set Staff.instrumentName="1"
  g4 g4 d'4 d4  e4 e4 d2 \break

-- 
Francisco Vila. Badajoz (Spain)
www.paconet.org , www.csmbadajoz.com

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


Re: lilypond to musicxml

2011-11-20 Thread Phil Holmes
- Original Message - 
From: "rosea grammostola" 

To: "Martin Tarenskeen" 
Cc: 
Sent: Sunday, November 20, 2011 2:49 PM
Subject: Re: lilypond to musicxml



On 11/20/2011 03:38 PM, Martin Tarenskeen wrote:



On Sun, 20 Nov 2011, rosea grammostola wrote:


Hi,

How do I convert lilypond to musicxml?


http://code.google.com/p/lilypond/issues/detail?id=665

Big pita that there is no such functionality yet. Open source is 
(almost) always walking behind and hard to get a decent workflow with 
music related stuff...



I think you'll find it's not behind Sibelius on this one.

--
Phil Holmes



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


Re: lilypond to musicxml

2011-11-20 Thread rosea grammostola

On 11/20/2011 03:38 PM, Martin Tarenskeen wrote:



On Sun, 20 Nov 2011, rosea grammostola wrote:


Hi,

How do I convert lilypond to musicxml?


http://code.google.com/p/lilypond/issues/detail?id=665

Big pita that there is no such functionality yet. Open source is 
(almost) always walking behind and hard to get a decent workflow with 
music related stuff...


Anyway before I get too negative, count me in for 20 USD.

Regards,
\r


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


Re: lilypond to musicxml

2011-11-20 Thread Martin Tarenskeen



On Sun, 20 Nov 2011, rosea grammostola wrote:


Hi,

How do I convert lilypond to musicxml?


http://code.google.com/p/lilypond/issues/detail?id=665

--

MT


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


beginners question Lilypond

2011-11-20 Thread Kim van Aurich-Hoogenraad
Dear all,

 

Is there someone who could please help me. I'm a absolute Lilypond beginner. 
And to make things worse, I'm blind as well, so I can not check the printed 
output (and there is only a four years old in the house able to read little 
music...).

What do I do wrong in the below example???

 

I want:

- a landscape printed music sheet (with very big sized staffs "so, when I print 
it on my graphic braille printer, I can check it myself, before I print it in 
normal size");

- Each staff only has a few notes and in front of each staff I want a number.

PHs.: And what is a good/normal landscape size for normal sighted people to use?

 

\version "2.14.2

\layout { }

   #(set-default-paper-size "a4" 'landscape)
  #(set-global-staff-size 26)

\header {

  title = "Example: Twinkle twinkle little star"

"

melody = \relative c' {

  \clef treble

  \key c \major

  \time 4/4

 

1. = \new Staff } g4 g4 d4 d4 \ e4 e4 d2 \

2. = \new Staff ] c8 c8 c8 c8 b4 b4 \ a4 a4 g2 \

3. = \new Staff ] d4 d4 c4 c4 \ b4 b4 a2 \

4. = \new Staff ] d4 d4 c4 c4 \ b4 b4 a2\ 

5. = \new Staff ] g4 g4 d4 d4 \ e4 e4 d2 \

6. = \new Staff ] c8 c8 c8 c8 b4 b4 \ a4 a4 g2 \

 

}

 

I also want color added to my notes, but I'm not sure whether it is better to 
use color per bar or pitch related color.

And both syntaxes are beyond my skills (I do not get any color "or so I think, 
but maybe the inkt of the printer was finished...").

I want:

- black for all notes play on the e string = e f g and higher;

- blue played on the b string = b c (middle c) d

- green played on the g string = g a

- red played on the d string = d e f

- orange played on the a string = a b c 

- gray played on the bass e string = e f g 

 

Can someone please add the correct color syntaxes to the above example for me?

I would be very, very grateful.

 

Thanks,

Kim

 

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


Usage of LilyPond fonts in a web app

2011-11-20 Thread Philip Peterson
Hi all,

My friend and I are wanting to use the fonts LilyPond uses for engraving in
a web app. Since one cannot rely on the user having those fonts installed,
we would like to convert those fonts using
typeface.js.
If we make the converted fonts open-source, would it be permissible to use
the font on the site (which uses the converted fonts), while the site
itself is not open-source?

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


lilypond to musicxml

2011-11-20 Thread rosea grammostola

Hi,

How do I convert lilypond to musicxml?

Regards

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


Re: LilyPond, MetaFont and Scheme

2011-11-20 Thread m...@apollinemike.com
On Nov 18, 2011, at 11:48 PM, m...@apollinemike.com wrote:

> Hey users,
> 
> I am trying to create the feta font note head stencil in Scheme so that I can 
> bend it to my heart's liking with various tweaks, but I am running into a 
> problem of my not being able to convert MetaFont to Scheme (mostly because I 
> don't speak MetaFont).  I did, however, get the SVG path for this grob :
> 
> M220 138c56 0 109 -29 109 -91c0 -72 -56 -121 -103 -149c-36 -21 -76 -36 -117 
> -36c-56 0 -109 29 -109 91c0 72 56 121 103 149c36 21 76 36 117 36z
> 
> (plus various translations and scalings)
> 
> I've tried inputting these coordinates into make-path-stencil (accounting for 
> translation, scaling, and the fact that all of these coordinates are 
> relative), but the result never comes out to a notehead.
> 
> Any suggestions for how to convert this SVG instruction into something 
> readable by make-path-stencil?  This is the type of thing that I could spend 
> 10 hours trying to figure out if no one has a 15 minute answer, so please 
> don't spend any more time than that on the question.  Beyond the actual 
> result, what interests me most is how to map one encoding of Bézier curves 
> onto the other successfully.
> 
> Cheers,
> MS

Hey all,

I came up with a hack that more or less works - I'm still working on the 
scaling, but I think the shape is right:

\version "2.15.16"   
 
\relative c'' {
  \override NoteHead #'stencil =
#(ly:stencil-translate (make-connected-path-stencil
'(
( 56 0 109 -29 109 -91 )
( 109 -163 53 -212 6 -240 )
( -30 -261 -70 -276 -111 -276 )
( -167 -276 -220 -247 -220 -185 )
( -220 -113 -164 -64 -117 -36 )
( -81 -15 -41 0 0 0 )
)
0.01 0.0040 0.0040 #f #t) '(0 . 0.5))
a4
}

Cheers,
MS


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


Make merge rests on positioning work

2011-11-20 Thread Xavier Scheuer
Hi,

Someone on the French users mailing list basically wants the features of
  \override RestCollision #'positioning-done = #merge-rests-on-positioning

Issue #1228 is tagged as "Patch-abandoned", LSR #336 is not working
with current version.
http://code.google.com/p/lilypond/issues/detail?id=1228
http://lsr.dsi.unimi.it/LSR/Item?id=336

However, the code given by Wilbert in the first comment works, except
that the MMRs appears below the 3rd (middle) line, instead of below the
4th line (normal position).  Apparently
  MultiMeasureRest #'staff-position  changed from #0 to #2 for the
normal position between 2.12 and 2.14/2.15.

Could a "power user" give some help in order to make it work correctly
with 2.14/2.15?  Even better if a dev could implement it (correctly) in
LilyPond, but in the meantime I'm sure the French users would be happy
with a hack!
http://codereview.appspot.com/4005046/
http://lists.gnu.org/archive/html/bug-lilypond/2011-03/msg00291.html

Thanks in advance.

Cheers,
Xavier

-- 
Xavier Scheuer 

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