Re: musicxml2ly, midi2ly etc. broken ?

2010-10-10 Thread Valentin Villenave
On Mon, May 17, 2010 at 12:05 AM, flup2  wrote:
> Since a few versions (in the development branch, now 2.13.21), I get that
> kind of message while running converters included in Lilypond. This is the
> message shown when running midi2ly from the Terminal under Mac OS X
>
> Could not find platform independent libraries 
> Could not find platform dependent libraries 
> Consider setting $PYTHONHOME to [:]
> 'import site' failed; use -v for traceback
> Traceback (most recent call last):
>  File "/Applications/LilyPond.app/Contents/Resources/bin/midi2ly", line 37,
> in 
>    import os
> ImportError: No module named os

CCing to the bug list.

Looks like there's a problem with Python libraries path variables on
OSX, can anyone confirm?

Cheers,
Valentin

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


3 voices in piano staff - middle voice autochange: howto?

2010-10-10 Thread Frédéric Bron
I would like to have a piano staff with one voice on the upper staff,
one voice on the lower staff and one voice automatically switching
between the two staffs.
Is it possible?

I tried this but without success:

\version "2.12.3"
\include "english.ly"
\score {
\new PianoStaff <<
\new Staff = "up" { \clef "treble"
\relative c'' { \voiceOne c4 d e f \oneVoice f e d c }
}
\new Staff = "down" { \clef "bass"
\relative c { \voiceTwo c d e f \voiceOne f e d c }
}
\autochange {
\relative c' { c d e f \voiceTwo a, g f e }
}
>>
}

I also tried without \voiceOne, \oneVoice, \voiceTwo but did not get
anything correct.

Thanks,

Frédéric

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


extra whitespace and lilypond-book

2010-10-10 Thread Christopher Meredith
When using lilypond-book to collect scores, I am noticing a sliver of
whitespace to the left of every system. This is causing slight
alignment irregularities with the text (the systems and text are not
flush against the left margin). I'm attaching a PDF of a system as
produced by lilypond book. I don't think there is anything in my
header or layout that would cause this. Just in case, here they are:

Header: http://pastebin.com/jVzPAL8p
Layout: http://pastebin.com/jKcg9Nmy

I include the scores in the lytex file with this:
\songsection{All Praise to Thee, Eternal Lord}
\lilypondfile[staffsize=15.20,line-width=15\cm]{/home/theophile/Desktop/Music/supplement/abstraction/Advent/All_Praise_to_Thee_Eternal_Lord.ly}
\newline
\songinfo{Martin Luther, 1483-1546}{TALLIS' CANON L.M.}{Thomas Tallis,
c. 1505-85}{Trans. Anonymous, 1858}{}{}
\newpage

Any idea how to correct this? Thanks!


lily-86eea820-4.pdf
Description: Adobe PDF document
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


job-count

2010-10-10 Thread James Bailey
I'm not so good with the advanced options, can anyone help with how I use the 
job-count option?
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly, midi2ly etc. broken ?

2010-10-10 Thread Ole Schmidt
is this the same problem?
 
it happens with 2.12.3 as well as with 2.13.35

Last login: Sun Oct 10 17:05:44 on ttys001
ja?~$ midi2ly /Applications/SCOM\ 6.2.3/Output/Bcl\&p_1.mid 
Traceback (most recent call last):
  File "/Applications/LilyPond.app/Contents/Resources/bin/midi2ly", line 50, in 

import midi
ImportError: 
dlopen(/Applications/LilyPond.app/Contents/Resources/lib/lilypond/current/python/midi.so,
 2): no suitable image found.  Did find:

/Applications/LilyPond.app/Contents/Resources/lib/lilypond/current/python/midi.so:
 mach-o, but wrong architecture

thanks,

ole

Am 10.10.2010 um 16:28 schrieb Valentin Villenave:

> On Mon, May 17, 2010 at 12:05 AM, flup2  wrote:
>> Since a few versions (in the development branch, now 2.13.21), I get that
>> kind of message while running converters included in Lilypond. This is the
>> message shown when running midi2ly from the Terminal under Mac OS X
>> 
>> Could not find platform independent libraries 
>> Could not find platform dependent libraries 
>> Consider setting $PYTHONHOME to [:]
>> 'import site' failed; use -v for traceback
>> Traceback (most recent call last):
>>  File "/Applications/LilyPond.app/Contents/Resources/bin/midi2ly", line 37,
>> in 
>>import os
>> ImportError: No module named os
> 
> CCing to the bug list.
> 
> Looks like there's a problem with Python libraries path variables on
> OSX, can anyone confirm?
> 
> Cheers,
> Valentin
> 
> ___
> 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: How to pass an ApplyOutputEvent to a music function? (Vertical bracket indicating which hand should play)

2010-10-10 Thread Valentin Villenave
On Sun, Oct 10, 2010 at 8:43 PM, Valentin Villenave
 wrote:
> New version. I'm not adding it to the LSR because I hope that
> http://code.google.com/p/lilypond/issues/detail?id=1318 will be
> addressed and make this kind of hacks irrelevant.

I meant http://code.google.com/p/lilypond/issues/detail?id=1319, obviously :)

Valentin

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


Re: How to pass an ApplyOutputEvent to a music function? (Vertical bracket indicating which hand should play)

2010-10-10 Thread Valentin Villenave
On Mon, Sep 27, 2010 at 1:14 PM, Valentin Villenave
 wrote:
> Basically, here's what I've been able to come up with: it's a dirty
> hack around the Fingering object.

New version. I'm not adding it to the LSR because I hope that
http://code.google.com/p/lilypond/issues/detail?id=1318 will be
addressed and make this kind of hacks irrelevant.




#(define (add-bracket pos up? text music)
  (if
   (equal? (ly:music-property music 'name) 'EventChord)
   (let ((note (car (ly:music-property music 'elements
 (set! (ly:music-property note 'articulations)
   (append (ly:music-property note 'articulations)
   (list
(let ((obj (make-music 'FingeringEvent)))
  (set! (ly:music-property obj 'tweaks)
(acons 'self-alignment-Y (if up? -1 1)
   (acons 'text
  (markup #:bracketText pos up? text)
  (ly:music-property obj 'tweaks
  obj)
   music))

#(define-markup-command (bracketText layout props num up? arg)
(number? boolean? markup?)
  (let* ((pos (max 3 (- 10 (- num
 (text (markup #:with-dimensions '(0 . 0)'(0 . 0) arg))
 (stack (lambda (x)
   (markup #:normal-text #:fontsize 3
   #:center-column
   ((if up? text "")
   #:with-dimensions
   '(0 . .5)
   (if up?
   (cons 0 (+ x .2))
   (cons (- x .2) 0))
   #:postscript (format #f "
 .12 setlinewidth
 .5 0 -.5 0 lineto
 -.5 0 -.5 ~a lineto
 stroke" x)
   (if up? "" text))
(if (not up?) (set! pos (- pos)))
(interpret-markup layout props (stack pos

#(define bracketUp
  (define-music-function (parser location music) (ly:music?)
(let ((current-staff-position 0))
  ; this shouldn't be needed!!!
  (set! current-staff-position -4)
  (make-music 'ApplyOutputEvent
  'origin location
  'context-type 'Voice
  'procedure
  (lambda (grob grob-origin context)
(let ((staff-pos (ly:grob-property grob 'staff-position)))
  (if (number? staff-pos)
  (set! current-staff-position staff-pos)
  #{ \once \set fingeringOrientations = #'(left)
 \once \override Fingering #'X-extent = #'(-2.0 . 0.0)
 $(add-bracket current-staff-position #t "m.d." music)
 $music #})))

#(define bracketDown
  (define-music-function (parser location music) (ly:music?)
(let ((current-staff-position 0))
  ; this shouldn't be needed!!!
  (set! current-staff-position -1)
  (make-music 'ApplyOutputEvent
  'origin location
  'context-type 'Voice
  'procedure
  (lambda (grob grob-origin context)
(let ((staff-pos (ly:grob-property grob 'staff-position)))
  (if (number? staff-pos)
  (set! current-staff-position staff-pos)
  #{ \once \set fingeringOrientations = #'(left)
 \once \override Fingering #'X-extent = #'(-2.0 . 0.0)
 $(add-bracket current-staff-position #f "m.s." music)
 $music #})))
{
  \bracketUp
  c''1
  d'
  % This bracket shouldn't be too long!
  \bracketDown
  c'
}

Valentin

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


Re: How to pass an ApplyOutputEvent to a music function? (Vertical bracket indicating which hand should play)

2010-10-10 Thread Nick Payne
 Something along these lines would also simplify the indicating of 
barring with brackets in guitar music, which is much more economical of 
space and notation than having a TextSpanner above the stave, and at the 
moment usually requires a separate voice with hidden chords to which to 
attach the bracketed arpeggio. e.g. See attached example output from 
Lilypond.


Nick

On 11/10/10 05:44, Valentin Villenave wrote:

On Sun, Oct 10, 2010 at 8:43 PM, Valentin Villenave
  wrote:

New version. I'm not adding it to the LSR because I hope that
http://code.google.com/p/lilypond/issues/detail?id=1318 will be
addressed and make this kind of hacks irrelevant.

I meant http://code.google.com/p/lilypond/issues/detail?id=1319, obviously :)


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


Re: How to pass an ApplyOutputEvent to a music function? (Vertical bracket indicating which hand should play)

2010-10-10 Thread Valentin Villenave
On Sun, Oct 10, 2010 at 10:25 PM, Nick Payne
 wrote:
>  Something along these lines would also simplify the indicating of barring
> with brackets in guitar music, which is much more economical of space and
> notation than having a TextSpanner above the stave, and at the moment
> usually requires a separate voice with hidden chords to which to attach the
> bracketed arpeggio. e.g. See attached example output from Lilypond.

Thanks, I've added your comment.

Cheers,
Valentin

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


Howto have the number of volte printed out above an end-repeat bar?

2010-10-10 Thread pini
Hi,

I have a score where a part has to be repeated more than 2 times. The repeated
part has no alternative. In this cas the number of volte isn't printed out since
there are no repeat brackets.

How should I proceed to have the number of volte (say "x4" for 4 volte) printed
out above the end-repeat bar?

My lilypond version is 2.12.2.

Thanks in advance,

_g.


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


RE: Howto have the number of volte printed out above an end-repeat bar?

2010-10-10 Thread James Lowe
Hello,

-Original Message-
From: lilypond-user-bounces+james.lowe=datacore@gnu.org on behalf of pini
Sent: Sun 10/10/2010 22:56
To: lilypond-user@gnu.org
Subject: Howto have the number of volte printed out above an end-repeat bar?
 
Hi,

I have a score where a part has to be repeated more than 2 times. The repeated
part has no alternative. In this cas the number of volte isn't printed out since
there are no repeat brackets.

How should I proceed to have the number of volte (say "x4" for 4 volte) printed
out above the end-repeat bar?

My lilypond version is 2.12.2.

Thanks in advance,

_g.

---

I think this is what you want (3rd Example)

http://lilypond.org/doc/v2.12/Documentation/user/lilypond/Long-repeats#Manual-repeat-marks

James


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


Re: Howto have the number of volte printed out above an end-repeat bar?

2010-10-10 Thread Marc Mouries


  
  

  you have to set countPercentRepeats to true.
http://lilypond.org/doc/v2.12/Documentation/user/lilypond/Short-repeats#Short-repeats

\relative c'' {
  \set countPercentRepeats = ##t
  \repeat percent 4 { c1 }
}


   
  

  



On 10/10/2010 5:56 PM, pini wrote:

  Hi,

I have a score where a part has to be repeated more than 2 times. The repeated
part has no alternative. In this cas the number of volte isn't printed out since
there are no repeat brackets.

How should I proceed to have the number of volte (say "x4" for 4 volte) printed
out above the end-repeat bar?

My lilypond version is 2.12.2.

Thanks in advance,

_g.


___
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