LSR search results are "shifted" (was: LSR: inconsistent search results)

2010-08-03 Thread Xavier Scheuer
Hi Sebastiano!

Sorry to disturb you, especially in this "holiday" season.

I complained a month ago on lilypond-user about the LSR search engine
that gives really *inconsistent* results.
http://lists.gnu.org/archive/html/lilypond-user/2010-07/msg00139.html

I did not get an answer but since I have made some tests and I have
further information that might help in identifying (and thus solving)
the problem.

Actually I noticed yesterday that the real problem is that results
given by LSR search engine are *SHIFTED*.

Let's explain it better with a concrete example.

If I search the words "merging rests", I got as first result
snippet 337: Controlling tuplet bracket visibility (which is not at all
related to "merging rests"), BUT
if I take the *previous* snippet, i.e. snippet 336, I got
"Merging rests automatically...", which is, as you see, the correct
result of what I was looking for.
Same for second result: #469 -> #468 .
Hence my hypothesis: search results are "shifted" (correct number + 1).

This is exactly the same for "RehearsalMark" and every searched terms,
IMO.

Could somebody have a look at this and, if possible, solve this?
It would be really appreciated.

Many thanks!

Cheers,
Xavier

--
Xavier Scheuer 

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


Re: Function to add a "-" before finger number

2010-08-03 Thread Nick Payne

On 03/08/10 10:55, Antheo wrote:

Hi,

I write some Violin pieces and would like to implement a function to typeset
a commonly used fingering with the shift indicator (simply a "-" before the
finger number).

Ideally I'd like to have the following syntax: {f \shift a-1} where the
\shift command would add a dash and offset the finger number to be aligned
with the note. Or it could be {f a\shift-1}.

I implemented the following function but it does not behave as expected and
generate side effects.

%% Shift Finger
%% Print a finger number preceded by a "-" to indicate a shift
%% Usage: ex: f \shift a-1
%% Passing a string as i had error with passing an integer

sf = #(define-music-function (parser location finger) ( string? ) #{
\once \override TextScript #'extra-offset = #'(0 . 0)
 \mark \markup { \tiny \concat {\char ##x2012 $finger }}
#})
http://old.nabble.com/file/p29331036/Snippet_Fingering.ly
Snippet_Fingering.ly
   

Why not use a modified glissando:

\version "2.13.28"

guide = #(define-music-function (parser location padleft padright shift) 
(number? number? pair?) #{

\once \override Glissando #'bound-details #'left #'padding = #$padleft
\once \override Glissando #'bound-details #'right #'padding = 
#$padright

\once \override Glissando #'extra-offset = #$shift
#})

\relative c'' {
\override Fingering #'staff-padding = #'()
\guide #2 #1 #'(0 . 1.4) 2\glissando 
}

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


Just chords

2010-08-03 Thread Timo Virtaneva
Hi

I have seached for a solution without any luck. I hope some one could help me.

I cannot get the bar lines aligned as I want. What is wrong in the code?

I just need guitar chords like this

|  G   | C, D7  |  G   | C, D7  |
|  G   | C, D7  |  G   | C, D7  |
|  G   | Em |  G   |  Em|
| Hm   | C  |  C   |  A7|   A7  |
|  G   | C, D7  |  G   | C, D7  |
|  G   | C, D7  |  G   | C, D7  |

The code is 

% The lines are not aligned
\version "2.12.3"
   
\new ChordNames \with {
  \override BarLine #'bar-size = #4
  voltaOnThisStaff = ##t
  \consists Bar_engraver
  \consists "Volta_engraver"
  \remove "Bar_number_engraver"
}

\chordmode {
 
  g1 d2:7 c2 g1 c2 d2:7 \break
  g1 e1:m g1 e1:m \break 
 b1:m c1 c1 a1 a1 \break
 g1 c2 d2:7 g1 c2 d2:7 \break
 g1 c2 d2:7 g1 c2 d2:7 \break

}

% End

-- Timo




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


Re: LSR search results are "shifted" (was: LSR: inconsistent search results)

2010-08-03 Thread Xavier Scheuer
2010/8/3 Sebastiano Vigna :

> Fixed. I upgraded MG4J on the server and an option used in the index
> construction was no longer available, so the snippets were changing
> but the index was not. Let me know if you have other problems...

Great!

Thanks for this really quick fix.
Everything seems OK now, it's far more pleasant.

Cheers,
Xavier

--
Xavier Scheuer 

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


Re: Function to add a "-" before finger number

2010-08-03 Thread Antheo

Thanks for the suggestion Nick. But it is important that it does not look
like a glissando because a glissando is an audible transition between 2
notes while I am trying to indicate a silent shift.
Per the look also, a glissando looks like : "note1 - note2" and a shift
looks like "note1 -note2" where "-" must be an horizontal dash.

-- 
View this message in context: 
http://old.nabble.com/Function-to-add-a-%22-%22-before-finger-number-tp29331036p29335481.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: Just chords

2010-08-03 Thread Xavier Scheuer
2010/8/2 Timo Virtaneva :

> Hi
>
> I have seached for a solution without any luck. I hope some one could
> help me.
>
> I cannot get the bar lines aligned as I want. What is wrong in the
> code?
>
> I just need guitar chords like this
>
> |  G   | C, D7  |  G   | C, D7  |
> |  G   | C, D7  |  G   | C, D7  |
> |  G   | Em     |  G   |  Em    |
> | Hm   | C      |  C   |  A7    |   A7  |
> |  G   | C, D7  |  G   | C, D7  |
> |  G   | C, D7  |  G   | C, D7  |
>

Hi!

To achieve exactly what you want a combination of

  – no indent (indent = #0) ;
  – proportional notation (each measure takes the same horizontal
space) ;
  – strict-note-spacing (because previous was not sufficient)  AND
  – ragged-right = ##t (because your 4th line has one measure more and
you want bar lines to be aligned)

seems necessary.

Like this:


\version "2.12.3"

\paper {
  indent = #0
  ragged-right = ##t
}

\layout {
  \context {
\Score
\remove "Bar_number_engraver"
proportionalNotationDuration = #(ly:make-moment 1 8)
\override SpacingSpanner #'strict-note-spacing = ##t
  }
}

\score {
  \new ChordNames \with {
\consists Bar_engraver
\override BarLine #'bar-size = #4
\consists "Volta_engraver"
  }
  {
\chordmode {
  g1 d2:7 c2 g1 c2 d2:7 \break
  g1 e1:m g1 e1:m \break
  b1:m c1 c1 a1 a1 \break
  g1 c2 d2:7 g1 c2 d2:7 \break
  g1 c2 d2:7 g1 c2 d2:7 \break
}
  }
}


Cheers,
Xavier

--
Xavier Scheuer 

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


Re: Function to add a "-" before finger number

2010-08-03 Thread Antheo


James Bailey-4 wrote:
> 
> I realize it's not exactly what you want, but what about:
> \version "2.12.3"
> shiftTwo=\markup \finger "-2"
> { c''4-\shiftTwo }
> 

Yep not exactly but could be a workaround. I'd like to replace the short "-"
by a middle one like with the character \char ##x2012. I tried this 
shiftIV=\markup \finger "\char ##x2012 4"
but that printed the command and not the character.

Any idea how to make the function more generic? I tried 


sf = #(define-music-function (parser location finger) ( integer? ) #{
\mark \markup { \tiny \concat {\char ##x2012 $finger }}
#})

{c''4^\sf#3 d''4^\sf#4}

but it failed.
 

-- 
View this message in context: 
http://old.nabble.com/Function-to-add-a-%22-%22-before-finger-number-tp29331036p29335731.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: Just chords

2010-08-03 Thread Antheo

you may have to use a monospace font.
http://kainhofer.com/~lilypond/ajax/user/lilypond/Fonts.html

-- 
View this message in context: 
http://old.nabble.com/Just-chords-tp29334907p29335782.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: Function to add a "-" before finger number

2010-08-03 Thread James Bailey
Is that them em or en dash? On a macintosh, I would just type them directly, 
either – or —, if you absolutely have to use the unicode, I would do it:

\version "2.12.3"

shiftTwo=\markup \finger "–2"
shiftThree = \markup \concat {\char ##x2012 3} 

{ a4-\shiftTwo g-\shiftThree}



On Aug 3, 2010, at 3:58 PM, Antheo wrote:

> 
> 
> James Bailey-4 wrote:
>> 
>> I realize it's not exactly what you want, but what about:
>> \version "2.12.3"
>> shiftTwo=\markup \finger "-2"
>> { c''4-\shiftTwo }
>> 
> 
> Yep not exactly but could be a workaround. I'd like to replace the short "-"
> by a middle one like with the character \char ##x2012. I tried this 
> shiftIV=\markup \finger "\char ##x2012 4"
> but that printed the command and not the character.
> 
> Any idea how to make the function more generic? I tried 
> 
> 
> sf = #(define-music-function (parser location finger) ( integer? ) #{
>\mark \markup { \tiny \concat {\char ##x2012 $finger }}
> #})
> 
> {c''4^\sf#3 d''4^\sf#4}
> 
> but it failed.
> 
> 
> -- 
> View this message in context: 
> http://old.nabble.com/Function-to-add-a-%22-%22-before-finger-number-tp29331036p29335731.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


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


Re: Function to add a "-" before finger number

2010-08-03 Thread Antheo

great i added the \finger command to use the same font as the regular
fingering.
shiftII  = \markup \finger \concat {\char ##x2012 2} 

Now the dash moves the number way too far on the right. I tried to move it
back to the left by adding an override but i got an error

shiftIII = \once \override TextScript #'extra-offset = #'(-1 . 0) \markup
\finger \concat {\char ##x2012 3}



James Bailey-4 wrote:
> 
> Is that them em or en dash? On a macintosh, I would just type them
> directly, either – or —, if you absolutely have to use the unicode, I
> would do it:
> 
> \version "2.12.3"
> 
> shiftTwo=\markup \finger "–2"
> shiftThree = \markup \concat {\char ##x2012 3} 
> 
> { a4-\shiftTwo g-\shiftThree}
> 
> 
> 
> On Aug 3, 2010, at 3:58 PM, Antheo wrote:
> 
>> 
>> 
>> James Bailey-4 wrote:
>>> 
>>> I realize it's not exactly what you want, but what about:
>>> \version "2.12.3"
>>> shiftTwo=\markup \finger "-2"
>>> { c''4-\shiftTwo }
>>> 
>> 
>> Yep not exactly but could be a workaround. I'd like to replace the short
>> "-"
>> by a middle one like with the character \char ##x2012. I tried this 
>> shiftIV=\markup \finger "\char ##x2012 4"
>> but that printed the command and not the character.
>> 
>> Any idea how to make the function more generic? I tried 
>> 
>> 
>> sf = #(define-music-function (parser location finger) ( integer? ) #{
>>\mark \markup { \tiny \concat {\char ##x2012 $finger }}
>> #})
>> 
>> {c''4^\sf#3 d''4^\sf#4}
>> 
>> but it failed.
>> 
>> 
>> -- 
>> View this message in context:
>> http://old.nabble.com/Function-to-add-a-%22-%22-before-finger-number-tp29331036p29335731.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
> 
> 
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> http://lists.gnu.org/mailman/listinfo/lilypond-user
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Function-to-add-a-%22-%22-before-finger-number-tp29331036p29337139.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: Function to add a "-" before finger number

2010-08-03 Thread David Raleigh Arnold
On Tuesday 03 August 2010 09:38:24 Antheo wrote:
> Thanks for the suggestion Nick. But it is important that it does not
> look like a glissando because a glissando is an audible transition
> between 2 notes while I am trying to indicate a silent shift.
> Per the look also, a glissando looks like : "note1 - note2" and a
> shift looks like "note1 -note2" where "-" must be an horizontal
> dash.

A glissando goes from note to note. A line from finger
to finger, is fingering, and good for a slide or silent
slide/guide, or simply to indicate the retention of a finger.

The real problem with lines from finger to finger is that
they look like crap. The 1- and -1 or 1- or -1 are all 
much better looking, clearer, better in every way. I've
asked for that since the 1.xxx versions at least. It has been
possible in the past, occasionally.  Regards, daveA

-- 
For beginners: very easy guitar music, solos, duets, exercises. Early
intermediate guitar solos. One best scale set for all guitarists.
http://www.openguitar.com/scalescomparison.html ::: plus new and
better chord and arpeggio exercises.  http://www.openguitar.com 

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


Re: Function to add a "-" before finger number

2010-08-03 Thread James Bailey
you can left, center, or right align the markup. I'm pretty sure that the 
default is to center-align it.
On Aug 3, 2010, at 6:02 PM, Antheo wrote:

> 
> great i added the \finger command to use the same font as the regular
> fingering.
> shiftII  = \markup \finger \concat {\char ##x2012 2} 
> 
> Now the dash moves the number way too far on the right. I tried to move it
> back to the left by adding an override but i got an error
> 
> shiftIII = \once \override TextScript #'extra-offset = #'(-1 . 0) \markup
> \finger \concat {\char ##x2012 3}
> 
> 
> 
> James Bailey-4 wrote:
>> 
>> Is that them em or en dash? On a macintosh, I would just type them
>> directly, either – or —, if you absolutely have to use the unicode, I
>> would do it:
>> 
>> \version "2.12.3"
>> 
>> shiftTwo=\markup \finger "–2"
>> shiftThree = \markup \concat {\char ##x2012 3} 
>> 
>> { a4-\shiftTwo g-\shiftThree}
>> 
>> 
>> 
>> On Aug 3, 2010, at 3:58 PM, Antheo wrote:
>> 
>>> 
>>> 
>>> James Bailey-4 wrote:
 
 I realize it's not exactly what you want, but what about:
 \version "2.12.3"
 shiftTwo=\markup \finger "-2"
 { c''4-\shiftTwo }
 
>>> 
>>> Yep not exactly but could be a workaround. I'd like to replace the short
>>> "-"
>>> by a middle one like with the character \char ##x2012. I tried this 
>>> shiftIV=\markup \finger "\char ##x2012 4"
>>> but that printed the command and not the character.
>>> 
>>> Any idea how to make the function more generic? I tried 
>>> 
>>> 
>>> sf = #(define-music-function (parser location finger) ( integer? ) #{
>>>   \mark \markup { \tiny \concat {\char ##x2012 $finger }}
>>> #})
>>> 
>>> {c''4^\sf#3 d''4^\sf#4}
>>> 
>>> but it failed.
>>> 
>>> 
>>> -- 
>>> View this message in context:
>>> http://old.nabble.com/Function-to-add-a-%22-%22-before-finger-number-tp29331036p29335731.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
>> 
>> 
>> ___
>> lilypond-user mailing list
>> lilypond-user@gnu.org
>> http://lists.gnu.org/mailman/listinfo/lilypond-user
>> 
>> 
> 
> -- 
> View this message in context: 
> http://old.nabble.com/Function-to-add-a-%22-%22-before-finger-number-tp29331036p29337139.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


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


Re: Function to add a "-" before finger number

2010-08-03 Thread James Bailey
You probably want to center align it over the number, right? That's a bit more 
complex.
On Aug 3, 2010, at 8:07 PM, James Bailey wrote:

> you can left, center, or right align the markup. I'm pretty sure that the 
> default is to center-align it.
> On Aug 3, 2010, at 6:02 PM, Antheo wrote:
> 
>> 
>> great i added the \finger command to use the same font as the regular
>> fingering.
>> shiftII  = \markup \finger \concat {\char ##x2012 2} 
>> 
>> Now the dash moves the number way too far on the right. I tried to move it
>> back to the left by adding an override but i got an error
>> 
>> shiftIII = \once \override TextScript #'extra-offset = #'(-1 . 0) \markup
>> \finger \concat {\char ##x2012 3}
>> 
>> 
>> 
>> James Bailey-4 wrote:
>>> 
>>> Is that them em or en dash? On a macintosh, I would just type them
>>> directly, either – or —, if you absolutely have to use the unicode, I
>>> would do it:
>>> 
>>> \version "2.12.3"
>>> 
>>> shiftTwo=\markup \finger "–2"
>>> shiftThree = \markup \concat {\char ##x2012 3} 
>>> 
>>> { a4-\shiftTwo g-\shiftThree}
>>> 
>>> 
>>> 
>>> On Aug 3, 2010, at 3:58 PM, Antheo wrote:
>>> 
 
 
 James Bailey-4 wrote:
> 
> I realize it's not exactly what you want, but what about:
> \version "2.12.3"
> shiftTwo=\markup \finger "-2"
> { c''4-\shiftTwo }
> 
 
 Yep not exactly but could be a workaround. I'd like to replace the short
 "-"
 by a middle one like with the character \char ##x2012. I tried this 
 shiftIV=\markup \finger "\char ##x2012 4"
 but that printed the command and not the character.
 
 Any idea how to make the function more generic? I tried 
 
 
 sf = #(define-music-function (parser location finger) ( integer? ) #{
  \mark \markup { \tiny \concat {\char ##x2012 $finger }}
 #})
 
 {c''4^\sf#3 d''4^\sf#4}
 
 but it failed.
 
 
 -- 
 View this message in context:
 http://old.nabble.com/Function-to-add-a-%22-%22-before-finger-number-tp29331036p29335731.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
>>> 
>>> 
>>> ___
>>> lilypond-user mailing list
>>> lilypond-user@gnu.org
>>> http://lists.gnu.org/mailman/listinfo/lilypond-user
>>> 
>>> 
>> 
>> -- 
>> View this message in context: 
>> http://old.nabble.com/Function-to-add-a-%22-%22-before-finger-number-tp29331036p29337139.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
> 


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


Include files into one score

2010-08-03 Thread pwf100220

(I'm new)

I wrote three parts of a song separately because they were becoming a little
overwhelming.  I want to \include the three files into one but I'm doing
something wrong.  It only includes the last file and uncommenting it only
includes the 2nd file and so on.  Is it possible to include all three in
this manner? 

\include "File 1"
\include "File 2"
\include "File 3"

\score {
  \new ChoirStaff <

Re: Include files into one score

2010-08-03 Thread Brett McCoy
On Tue, Aug 3, 2010 at 3:11 PM, pwf100220  wrote:

> I wrote three parts of a song separately because they were becoming a little
> overwhelming.  I want to \include the three files into one but I'm doing
> something wrong.  It only includes the last file and uncommenting it only
> includes the 2nd file and so on.  Is it possible to include all three in
> this manner?
>
> \include "File 1"
> \include "File 2"
> \include "File 3"
>
> \score {
>      \new ChoirStaff <>
  %\midi { }
  \layout{ }
}
-- 
Brett W. McCoy -- http://www.electricminstrel.com

"In the rhythm of music a secret is hidden; If I were to divulge it,
it would overturn the world."
    -- Jelaleddin Rumi

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


Re: Function to add a "-" before finger number

2010-08-03 Thread Neil Puttock
On 3 August 2010 01:55, Antheo  wrote:

> Ideally I'd like to have the following syntax: {f \shift a-1} where the
> \shift command would add a dash and offset the finger number to be aligned
> with the note. Or it could be {f a\shift-1}.

The latter syntax is easier to implement (and more in keeping with
LilyPond's postfix convention):

shift =
#(define-music-function (parser location fingering) (ly:music?)
   (let ((music (make-music 'FingeringEvent))
 (finger (ly:music-property fingering 'digit)))

 (set! (ly:music-property music 'tweaks)
   (acons 'stencil
  (lambda (grob)
(grob-interpret-markup grob
   (make-concat-markup
(list (make-char-markup #x2012)
  (number->string finger)
  (ly:music-property music 'tweaks)))
 music))

\relative c' {
  % must use hyphen before \shift
  c4-\shift -3
}

Cheers,
Neil

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


Re: Function to add a "-" before finger number

2010-08-03 Thread Marc Mouries




On 8/3/2010 3:25 PM, Neil Puttock wrote:

  c4-\shift -3
  


Thanks Neil. I just tried it and as you can see the number is too far
on the right. I inserted a call to "make-general-align-markup X LEFT"
but it did not help. Is there a way to move the "-" and the number
further on the left so that the number is on the same axis of the note?







\version "2.12.3"

%% Shift Finger
%% Print a finger number preceded by a "-" to indicate a shift

shiftI   = \markup \center-align \finger \concat {\char ##x2012 1} 
shiftII  = \markup \center-align \finger \concat {\char ##x2012 2} 
shiftIII = \markup \center-align \finger \concat {\char ##x2012 3}
shiftIV  = \markup \center-align \finger \concat {\char ##x2012 4} 


 %% Usage: c4-\shift -3
shift = #(define-music-function (parser location fingering) (ly:music?)
   (let ((music (make-music 'FingeringEvent))
 (finger (ly:music-property fingering 'digit)))
 (set! (ly:music-property music 'tweaks)
   (acons 'stencil
  (lambda (grob)
(grob-interpret-markup grob
		(make-general-align-markup X LEFT
(make-concat-markup
(list (make-char-markup #x2012)
  (number->string finger))
  (ly:music-property music 'tweaks)))
 music))


\score {
  <<
\new Staff \relative c'' { f4-1 g a2^\shiftI  } 
	\new Staff \relative c'' { f4-1 g a2-\shift-1}
>>
}___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Turning on sustain between variables

2010-08-03 Thread jim . showalter

If I have a simple phrase likephrase = { a b c d e}How do I turn sustain on and off between phrases.The following illustrates what I want to do but of course gives a syntax error.{  \phrase \sustainOn \phrase \sustainOff}A more general question is how does one "attach"  lilypond directives/commands to variables?`I was looking for something like a "zero-width, invisible pitch" to which I could attach the sustainOn/Off too.Thanks,Jim

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


Re: Function to add a "-" before finger number

2010-08-03 Thread Nick Payne

On 03/08/10 23:38, Antheo wrote:

Thanks for the suggestion Nick. But it is important that it does not look
like a glissando because a glissando is an audible transition between 2
notes while I am trying to indicate a silent shift.
Per the look also, a glissando looks like : "note1 - note2" and a shift
looks like "note1 -note2" where "-" must be an horizontal dash.
   
The function I provided in my example allows the glissando to be 
arbitrarily shortened away from the first note to any extent that you 
want...


Nick

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


Re: Include files into one score

2010-08-03 Thread Urs Liska

Am 03.08.2010 21:11, schrieb pwf100220:

(I'm new)

I wrote three parts of a song separately because they were becoming a little
overwhelming.  I want to \include the three files into one but I'm doing
something wrong.  It only includes the last file and uncommenting it only
includes the 2nd file and so on.  Is it possible to include all three in
this manner?

\include "File 1"
\include "File 2"
\include "File 3"

\score {
   \new ChoirStaff<

Re: Turning on sustain between variables

2010-08-03 Thread Xavier Scheuer
2010/8/3 :

> If I have a simple phrase like
>
> phrase = { a b c d e}
>
> How do I turn sustain on and off between phrases.
>
> The following illustrates what I want to do but of course gives a
> syntax error.
>
> {
>   \phrase \sustainOn \phrase \sustainOff
> }
>
> A more general question is how does one "attach"  lilypond
> directives/commands to variables?`
>
> I was looking for something like a "zero-width, invisible pitch" to
> which I could attach the sustainOn/Off too.

s4*0

;D

Cheers,
Xavier

--
Xavier Scheuer 

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


Re: Piano duets on facing pages - something new in 2.8.x?

2010-08-03 Thread Urs Liska

Am 02.08.2010 17:27, schrieb David Rogers:

* Urs Liska  [2010-08-02 10:46]:


Am 30.07.2010 11:57, schrieb Werner LEMBERG:

Is it possible to synchronize page breaks on facing pages of piano
duet music with primo on the right-hand side and secondo on the
left-hand side?



...


It might seem obvious, but of course the two scores must contain 
compatible music.

Does this mean that both sides must have the same amount of music?
While this is conceptually self-evident it is easy to write input 
files that don't comply to it.


So, how would we expect LilyPond to deal with this situation?

  * Should it just try to make the best of the input and spit out
errors if it doesn't work out?


I can imagine a duet where one of the players "falls asleep" and the
other continues playing for a while. I guess in such a case it would be
possible either to have the first player's part stop, or just fill it up
with rests...
Well, I think, in this case, one would generally just use 
MultiMeasureRests - or did I miss something?



  * Or should LilyPond make checks before trying to typeset the music?
  * Should there be the possibility to manually insert checks of some
kind, similar to bar checks and barnumber checks?
What could they be like?


I don't regularly typeset music without bar lines, but doesn't Lilypond
already have facilities for synchronizing two players' parts in one
score? Probably those can be re-used - as much as possible anyway.
AFAIK LilyPond has a notion of a point in time - which is also used in 
polymetric notation.
So from the perspective of keeping track of the music such a duet score 
could be implemented very similar to a normal score with two 
(potentially independent) staff groups.


I think in the majority of cases having the two parts follow each
other's bar checks, and give an error when that fails, should be
sufficient.

I don't think so.
Bar checks may be inserted in any voice of any staff at any time. It 
will fail if in the actual context there is no barline. If the 
voices/staves have different meters, times etc. the bar checks will be 
independent. This doesn't have to be changed for a duet score.


Would some new kind of "sync point" be needed, or does Lilypond
already have such a thing for use in \cadenza sections and so on?

I think, everything needed is already there.
Now, while writing all this, I realize that from the perspective of the 
music the two scores are in fact one score. The only thing that has to 
be changed is the layout.
Therefore I would suggest the "scores" to be rather something at the 
level of a StaffGroup. I'll refine (and redefine) my example syntax from 
my previous email:


\score {
  <<
\new LeftScore<<
  \new PianoStaff = "secondo"<<
\new Staff = "upSecondo" {
  % ...
}
\new Staff = "loSecondo" {
  % ...
}
  >>
>>
\new RightScore<<
  \new PianoStaff = "primo"<<
\new Staff = "upPrimo" {
  % ...
}
\new Staff = "loPrimo" {
  % ...
}
  >>
>>

  \layout {}
  \midi {}
}

Everything that has to do with the organisation of the content, of the 
musical structure can just be done as usual.
If I want to get a normal score with both instruments, I just could 
replace the two new Contexts with \new StaffGroup.


What LilyPond would have to do in addition to its normal work is (only):
- individually determine and keep track of possible break points for 
both parts

- find a breaking solution that works well for both parts.
- correctly deal with odd and even page numbers.



  * In classical four hand music, both players have the same amount of
bars in the same \time
But of course this is no requirement for four hand music. Any
constellation of polyrhythmic, -metric, -timing music that can be
produced with LilyPond can be also used in four hand music.
  * So I think LilyPond should just try to find synchronous possible
page breaking points and don't care about things like barnumbers 
etc.


At least in those cases where the music is sufficiently simple and/or
regular, corresponding pages should have the same number of lines, and
corresponding lines the same number of bars. These requirements should
only be broken when they will make the score bad for some other reason.
(And then they should be followed anyway IMO.)

Well, this is yet another question.
It is generally a subject of discussion (or a matter of taste) whether a 
piano duet score should always have identical line breaking on both sides.
While identical page breaking is a practical necessity, the line 
breaking is more of an editor's choice.
So, if identical line breaking should be implemented at all it should 
absolutely be an option - although it could be argued whether it should 
be turned on or off by default.







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

Re: Include files into one score

2010-08-03 Thread pwf100220



Urs Liska-4 wrote:
> 
> Am 03.08.2010 21:11, schrieb pwf100220:
> 
> This very much depends on the real content of your files.
> If the files "used to stand alone" and you have some sort of 
> "organization" I suspect you will have variables with the same name in 
> your included files.
> In such a case later definitions just overwrite earlier ones.
> 
> To \include a file is the same (for the lilypond parser) as writing the 
> contents of the included file directly in the main file.
> 
> To make it clear have a look at this example:
> if you define the variable "music" twice like this:
> 
> music = \relative c' {
>c4 d e f g1
> }
> music = \relative c {
>c2 a d1
> }
> 
> The first definition is discarded.
> If you \include two files which define a variable "music" it will look 
> like the first file isn't included.
> 
> The same goes for variables in \header or \paper blocks.
> 
> HTH
> Urs
> 
> 

That is precisely my situation!  I'll work around that.  Thanks
-- 
View this message in context: 
http://old.nabble.com/Include-files-into-one-score-tp29339034p29340726.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


Lilypond Architectural Overview Request

2010-08-03 Thread jim.showalter
I have been reviewing the online manuals and am having trouble finding
documentation that describes the overall architecture of the Lilypond
system.  I am primarily talking about the interaction of .ly and .scm files
(how they are parsed by the C++ code would be welcome too).  When I look at
the Internals Reference, for example, it looks like it would be very useful
for someone who was already familiar with the call sequences and class
structure and the overall operation of lilypond.  But I haven't found
something which explains how everything actually ties together.  For
example, the contents of the types list for an AbsoluteDynamicEvent are
'(general-music event dynamic-event absolute-dynamic-event).  This looks
almost like a class event hierarchy of said event.  But I could not find
what general-music meant (I searched the pdf files) or how each element in
the list relates to each other.  Elsewhere I found the general-music term at
the end of a types list.  I checked the bnf but that just specifies syntax.
Of course this is just one of many mysteries I would like to understand.

Thanks,
Jim



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


Re: Turning on sustain between variables

2010-08-03 Thread Xavier Scheuer
2010/8/4 jim.showalter :

> Xavier,
>
> Thank you! That is exactly what I was looking for.  Sometimes the
> problem is not knowing how to search for the answer.  After your email
> I looked in the notation manual to see exactly what was going on
> (I couldn't find it in the learning manual).

Yes, these are some "tricks" you learn while reading other people code.
Of course it can (usually) be found in the manuel but there is no
"dedicated section" to explain these "tricks".

Cheers,
Xavier

--
Xavier Scheuer 

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


Re: Just chords

2010-08-03 Thread Xavier Scheuer
2010/8/3 Timo Virtaneva :

> Thanks Xavier.
> Just what I hoped for.

You're welcome.

But be careful, there might be some drawbacks if you use it
simultaneously with some "normal" staves.

Cheers,
Xavier

--
Xavier Scheuer 

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