Re: LSR: score for diatonic accordion

2007-08-31 Thread Valentin Villenave
2007/8/31, Graham Percival <[EMAIL PROTECTED]>:
> Is the creator of this snippet on this list?

His name is "ak"; maybe we can retrieve his mail address in the
database if he left one.

> The snippet includes a script for jedit; I'm not certain if that makes
> sense on LSR.  Although many people use jedit, it's by no means
> universal.

I agree. However, as you can see the jedit macro is presented as an
"appendix" in the .ly code (it's fully commented, and therefore
doesn't affect the snippet at all).

> Would it be possible to place that script somewhere else (on
> a website, on the wiki, whatever) and remove it from the snippet?

The only relevant place I can think of would be the lily4jedit mailing
list archives, which nobody has ever browsed. Otherwise, maybe if we
had several jedit-related snippets, we could always open a 'jedit'
directory in the LSR -- but this wouldn't be appropriate right now.

As far as I'm concerned, I don't want us to delete this macro (unless
its author asks me to do so); while it certainly doesn't belong here,
it's quite harmless, and easy to find in case people would be
interested. What makes you want to remove it?

Valentin


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


Re: LSR: score for diatonic accordion

2007-08-31 Thread Graham Percival

Valentin Villenave wrote:

As far as I'm concerned, I don't want us to delete this macro (unless
its author asks me to do so); while it certainly doesn't belong here,
it's quite harmless, and easy to find in case people would be
interested. What makes you want to remove it?
  
I was updating the snippets in the lilypond source tree, and noticed 
some scripts that I didn't recognize.


Hmm... I'd rather not have OS-specific info in LSR, and 
application-specific info is even worse than OS-specific.  OTOH, I guess 
this script _is_ harmless.  I'm not really certain what I think about it.


Cheers,
- Graham


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


Re: Autobeaming problem in 12/16

2007-08-31 Thread Werner LEMBERG

> \version "2.11.30"
> \paper { ragged-right = ##t }
> \relative { \time 12/16
> #(override-auto-beam-setting '(end * * 12 16) 6 16 'Score)
> c'16 c c c c c c c c c c c  %correct autobeaming without subdivision
> \set beatLength = #(ly:make-moment 3 16)
> \set subdivideBeams = ##t
> c16 c c c c c c c c c c c  %autobeaming breaks down, subdivision
> incorrect for first beat
> c16[ c c c c c] c c c c c c  %works, but would rather avoid manual beams
> }
> 
> Is there something I'm missing here?

It's a bug, as far as I know.  `subdivideBeams' ruins autobeating,
among other things.  Will provide a bug report as soon as I have more
time.


Werner


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


Re: LSR: score for diatonic accordion

2007-08-31 Thread Valentin Villenave
2007/8/31, Graham Percival <[EMAIL PROTECTED]>:

> Hmm... I'd rather not have OS-specific info in LSR, and
> application-specific info is even worse than OS-specific.  OTOH, I guess
> this script _is_ harmless.  I'm not really certain what I think about it.

Well, make up your mind :)

As you noticed, this isn't OS-specific (otherwise I would have
removed, erased, destroyed it myself savagely), and
application-specific is fine by me, as long as it is free and
OS-independent. jEdit *does* run on any platform -- the Java
dependency is a PITA, but this is "almost" free nevertheless.

How about: let's just leave it now, and think again if we ever find
ourselves with others application-specific snippets?

Valentin


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


Re: Autobeaming problem in 12/16

2007-08-31 Thread Mats Bengtsson



Werner LEMBERG wrote:

\version "2.11.30"
\paper { ragged-right = ##t }
\relative { \time 12/16
#(override-auto-beam-setting '(end * * 12 16) 6 16 'Score)
c'16 c c c c c c c c c c c  %correct autobeaming without subdivision
\set beatLength = #(ly:make-moment 3 16)
\set subdivideBeams = ##t
c16 c c c c c c c c c c c  %autobeaming breaks down, subdivision
incorrect for first beat
c16[ c c c c c] c c c c c c  %works, but would rather avoid manual beams
}

Is there something I'm missing here?



It's a bug, as far as I know.  `subdivideBeams' ruins autobeating,
among other things.  Will provide a bug report as soon as I have more
time.
  
I recall some related problems reported on the user mailing list 
recently, where

you do get subdivision even though subdivideBeams is set to false.

  /Mats


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


Need advice re; text and lyrics combination(s)

2007-08-31 Thread Jay Hamilton
Hello- I have played around with spacing in lyrics with underlines and that 
didn't work very well.  In the example below if I increase the lower spacing 
for the text the lyrics lower accordingly.  What suggestions does anyone have 
to get the two lines to be together so the words attached to both notes and 
rests line up better.
\version "2.10.25"
\header {
 title = "Tunnel Piece"
 composer = "Jay Hamilton"
   copyright = \markup { \tiny \override #'(baseline-skip . 0.5)
\center-align
   {  "CC lic 2.5 some rights reserved Jay Hamilton 1989"
   "see http://creativecommons.org/licenses/by-nd/2.5/";
  } }
}

fluteMusic =
\relative c'' {
\set Staff.instrumentName = "Singer I"
\set Staff.shortInstrumentName = "I."
\set Staff.midiInstrument = "flute"
\tempo 4=75
\time 6/8
r4^\markup {\tiny \italic "words spoken on rests and handclaps"} es8 des ~ des4 
\override NoteHead #'style = #'cross bes8 bes^\markup { \hspace #0 \raise #1.5 
\bigger \bold "In Position at the middle of the Tunnel" }\revert NoteHead 
#'style r4_\markup {\center-align {\hspace #0 \lower #3 "RACK"} }\override 
NoteHead #'style = #'cross bes8 bes \revert NoteHead #'style r4 es8 des ~ des4
\override NoteHead #'style = #'cross bes8 bes \revert NoteHead #'style  
r4_\markup {\center-align {\hspace #0 \lower #3 "RACK"}} \override NoteHead 
#'style = #'cross bes8 bes \revert NoteHead #'style
}
fluteLyrics = \lyricmode  { 
ay oh rack_  a rack_  a ay oh rack_  a rack_ a
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

}
\score {<<

  \new Voice = "flute"  \fluteMusic
  \new Lyrics \lyricsto flute \fluteLyrics
>>
\layout { }

}

Thanks
Jay

Jay Hamilton
www.soundand.com
206-328-7694


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


Re: Autobeaming problem in 12/16

2007-08-31 Thread Neil Puttock
On 8/31/07, Mats Bengtsson <[EMAIL PROTECTED]> wrote:
>
>
>
> Werner LEMBERG wrote:
> >> \version "2.11.30"
> >> \paper { ragged-right = ##t }
> >> \relative { \time 12/16
> >> #(override-auto-beam-setting '(end * * 12 16) 6 16 'Score)
> >> c'16 c c c c c c c c c c c  %correct autobeaming without
> subdivision
> >> \set beatLength = #(ly:make-moment 3 16)
> >> \set subdivideBeams = ##t
> >> c16 c c c c c c c c c c c  %autobeaming breaks down, subdivision
> >> incorrect for first beat
> >> c16[ c c c c c] c c c c c c  %works, but would rather avoid manual
> beams
> >> }
> >>
> >> Is there something I'm missing here?
> >>
> >
> > It's a bug, as far as I know.  `subdivideBeams' ruins autobeating,
> > among other things.  Will provide a bug report as soon as I have more
> > time.
> >
> I recall some related problems reported on the user mailing list
> recently, where
> you do get subdivision even though subdivideBeams is set to false.



Ah yes, I've just found your post in July, Werner, "unwanted beam
subdividing".

I'll just make do with the manual beaming for the time being.

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


Webern-style accidentals & transposition

2007-08-31 Thread David F. Place

Hello:

I am transcribing Webern's Drei Lieder Op. 25 for alto flute and  
piano.  Though I have studied the documentation, particularly 9.1.1  
Automatic Accidentals, I haven't been able to find what I need.


1.) accidentals before every note (including naturals)

2.) transposition without creating a key signature

Is this possible in Lilypond?  I'm relatively new to it.

Cheers,
David

  ___
(---o---o-o-o---o-o-o(
David F. Place
mailto:[EMAIL PROTECTED]




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


Re: Need advice re; text and lyrics combination(s)

2007-08-31 Thread Kieren MacMillan

Hi Jay,

What suggestions does anyone have to get the two lines to be  
together so the words attached to both notes and rests line up better.


I'm not sure exactly what you want (especially, for example, with the  
bold markup "In Position..." -- is that supposed to be a subtitle?)...
Regardless, I took a stab at clearing up your code a bit -- maybe my  
edits will give you a shove in the right direction.


Hope this helps!
Kieren.
_

\version "2.10.25"

\header
{
title = "Tunnel Piece"
composer = "Jay Hamilton"
copyright = \markup
{
\tiny \override #'(baseline-skip . 0.5)
\center-align
{
"CC lic 2.5 some rights reserved Jay Hamilton 
1989"
"see 
http://creativecommons.org/licenses/by-nd/2.5/";
}
}
}

muA = \markup { \tiny \italic "words spoken on rests and handclaps" }
muB = \markup { \hspace #0 \raise #1.5 \bigger \bold "In Position at  
the middle of the Tunnel" }

crossesOn = \override NoteHead #'style = #'cross
crossesOff = \revert NoteHead #'style

fluteMusic = \relative c''
{
\tempo 4=75 \time 6/8
r4^\muA es8 des ~ des4 |
	\crossesOn bes8 bes^\muB \crossesOff r4 \crossesOn bes8 bes  
\crossesOff |

r4 es8 des ~ des4 |
\crossesOn bes8 bes \crossesOff r4 \crossesOn bes8 bes \crossesOff |
}

fluteLyrics = \lyricmode
{
ay oh rack \markup { \column { RACK a } } rack a ay oh rack  a rack a
}


\score
{
<<
		\new Staff \with { instrumentName = "Singer I" shortInstrumentName  
= "I." midiInstrument = "flute" }

<< \new Voice = "flute" \fluteMusic >>
\new Lyrics \lyricsto flute \fluteLyrics
>>
}



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


Re: Webern-style accidentals & transposition

2007-08-31 Thread Valentin Villenave
2007/8/31, David F. Place <[EMAIL PROTECTED]>:

> I am transcribing Webern's Drei Lieder Op. 25 for alto flute and
> piano.  Though I have studied the documentation, particularly 9.1.1
> Automatic Accidentals, I haven't been able to find what I need.
>
> 1.) accidentals before every note (including naturals)
>
> 2.) transposition without creating a key signature

The second one is possible if do not specify any time signature; as
for the first one, I'd very much interested in it as well. Any clue,
anybody?

Valentin


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


Re: Webern-style accidentals & transposition

2007-08-31 Thread Rune Zedeler

David F. Place skrev:


1.) accidentals before every note (including naturals)

2.) transposition without creating a key signature


%%% begin %%%

\version "2.10.0"

webernAccidentals = {
% the 5s are just "a value different from any accidental"
\set Staff.keySignature = #'((0 . 5) (1 . 5) (2 . 5) (3 . 5)
 (4 . 5) (5 . 5) (6 . 5))
\set Staff.extraNatural = ##f
#(set-accidental-style 'forget)
}

\layout {
  \context { \Staff \remove Key_engraver }
}
\score {
  {
\webernAccidentals
c' dis' cis' cis'
c' dis' cis' cis'
c' c' dis' des'
  }
}

%%% end %%%

-Rune


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


Re: Webern-style accidentals & transposition

2007-08-31 Thread David F. Place

Thanks, Rune.

That does work, but it makes lilypond print a warning for every note.

Cheers, David

  ___
(---o---o-o-o---o-o-o(
David F. Place
mailto:[EMAIL PROTECTED]




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


Re: Webern-style accidentals & transposition

2007-08-31 Thread Damian leGassick

(works for me without warnings)

this'll save me so much time, thanks rune

i found the parameters in the program reference, but i can't figure  
out what this means:


keySignature (list)
The current key signature. This is an alist containing (step .  
alter) or ((octave . step) . alter), where step is a number in the  
range 0 to 6 and alter a fraction, denoting alteration. For  
alterations, use symbols, e.g. keySignature = #`((6 . ,FLAT)).


could anyone explain this to me in plainer english?

TIA

d

On 31 Aug 2007, at 22:20, David F. Place wrote:


Thanks, Rune.

That does work, but it makes lilypond print a warning for every note.

Cheers, David

  ___
(---o---o-o-o---o-o-o(
David F. Place
mailto:[EMAIL PROTECTED]




___
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: slur and system breaks - take 2

2007-08-31 Thread Neil Puttock
Hi Oded,

On 8/29/07, Oded Ben-Tal <[EMAIL PROTECTED]> wrote:
>
>
> any way of correcting these things by tweaking?


As far as I know, there's no simple way of correcting these; in a similar
situation to yours I've used the following overrides,  which unfortunately
involve a degree of trial and error:

For the first half of the slur, the easiest tweak is to change Slur
#'positions. It's a bit limited in scope, since LilyPond only treats it as a
suggestion for the start and end points of a slur: if the points are
considered too outlandish, it has no effect.

\once \override Slur #'positions = #'(6 . 8.4)

The second half of the slur is a bit more difficult to tweak, since you
don't want an override to influence both elements of the slur. The solution
I've found useful is adapted from section 9.3.8, "Difficult tweaks". This
uses a scheme function to check whether a spanner object (slur or tie, etc.
) has been broken in two across a break, then sets a property only on the
second element (i.e. the part of the slur after the break):

#(define (my-callback grob)
(let* (
   ; have we been split?
   (orig (ly:grob-original grob))

   ; if yes, get the split pieces (our siblings)
   (siblings (if (ly:grob? orig)
   (ly:spanner-broken-into orig) '() )))

 (if (and (>= (length siblings) 2)
   (eq? (car (last-pair siblings)) grob))
   (ly:grob-set-property! grob 'control-points '((4 . 9) (6 .
13) (17 . 14) (21 . 12)) %The override

By setting the slur property #'control-points, you can set the slur shape
manually (a third-order Bézier curve).

The scheme function is called using the property #'after-line-breaking as
follows:

\once \override Slur #'after-line-breaking = #my-callback

Here's your code with the overrides included:

\version "2.11.30"

 #(define (my-callback grob)
(let* (
   ; have we been split?
   (orig (ly:grob-original grob))

   ; if yes, get the split pieces (our siblings)
   (siblings (if (ly:grob? orig)
   (ly:spanner-broken-into orig) '() )))

 (if (and (>= (length siblings) 2)
   (eq? (car (last-pair siblings)) grob))
   (ly:grob-set-property! grob 'control-points '((4 . 9) (6 .
13) (17 . 14) (21 . 12))

upper =  \relative c''
   { \clef treble \time 6/4 r1.
a8([ g e' e, d c] g'[ \change Staff = down \stemUp g, f e])
\once \override Slur #'positions = #'(6 . 8.4) %This is a bit short of
the upper stave, could use #'control-points instead
\once \override Slur #'after-line-breaking = #my-callback 4^( ~
\break
8[ c \change Staff = up \stemDown a' a,] \stemUp f'4) ~ f8([ e
bes' bes, f' e]) r1. r1. r1. }

lower =  \relative c, { \clef bass r1.
c,8([ c' g' bes e g] bes) r \stemDown bes,,_([ bes' e, e'])
f,,_([ f' c' f]) \stemUp a,,( a') g,([ g' e' g]) bes,,( bes') r1. r1.
r1.
}

\score {
\new PianoStaff <<
\new Staff = "up" \upper
\new Staff = "down" \lower
>>
\layout {
\context { \Staff
\override VerticalAxisGroup #'minimum-Y-extent = #'(-6 . 6)
%Make both staves same height under 2.11
}
}
}

The bad news is that the scheme override only works under 2.11 for the
property control-points. From your pictures, it looks as if you're using
2.10 ( the fixed distance between staves is a giveaway).

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


Re: Webern-style accidentals & transposition

2007-08-31 Thread Valentin Villenave
2007/8/31, Rune Zedeler <[EMAIL PROTECTED]>:

>  \webernAccidentals

This is absolutely outrageous! As soon as I've seen your trick, I've
added it to the LSR, but while I was doing so someone has posted it
too! I thought I was the only guy who cares about the LSR, now what do
I have left???
;-)

Here's my snippet; it's more detailed than the other one, but since
English isn't my native language, if someone can rewrite it somehow it
should get much better.
http://lsr.dsi.unimi.it/LSR/Item?u=1&id=314

Great snippet. Great job.

Cheers,
Valentin


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


Re: slur and system breaks - take 2

2007-08-31 Thread Valentin Villenave
Hi Neil, hi Oded,

since Oded has given some relevant examples, and since it appears that
LilyPond's default behavior isn't as nice as these examples, do you
think this should be reported as a bug?

Valentin


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


Re: Webern-style accidentals & transposition

2007-08-31 Thread Neil Puttock
Hi Valentin,

On 8/31/07, Valentin Villenave < [EMAIL PROTECTED]> wrote:
>
> 2007/8/31, Rune Zedeler <[EMAIL PROTECTED]>:
>
> >  \webernAccidentals
>
> This is absolutely outrageous! As soon as I've seen your trick, I've
> added it to the LSR, but while I was doing so someone has posted it
> too! I thought I was the only guy who cares about the LSR, now what do
> I have left???
> ;-)


Are you the first port of call for submitting corrections? I've noticed a
few snippets which don't work properly, e.g.
http://lsr.dsi.unimi.it/LSR/Item?id=295

I mentioned that particular snippet en passant in another thread, but nobody
noticed...

Here's my snippet; it's more detailed than the other one, but since
> English isn't my native language, if someone can rewrite it somehow it
> should get much better.
> http://lsr.dsi.unimi.it/LSR/Item?u=1&id=314


That's great - I'd just suggest the following minor emendments:

In early XXth century works, starting with Schönberg, Berg and Webern (the "
second" Viennese school), every pitch in the twelve-note scale has to be
regarded as equal, without any hierarchy such as the classical (tonal)
degrees. Therefore, these composers print one accidental for each note, even
at natural pitches, to emphasize their new approach to music theory and
language. This snippet (thanks to Rune Zedeler) shows how to achieve such
notation rules with LilyPond.

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


Re: Webern-style accidentals & transposition

2007-08-31 Thread Rune Zedeler
Citat Valentin Villenave <[EMAIL PROTECTED]>:

> Here's my snippet; it's more detailed than the other one, but since
> English isn't my native language, if someone can rewrite it somehow it
> should get much better.
> http://lsr.dsi.unimi.it/LSR/Item?u=1&id=314

How do you manage to link to snippets so fast?
When I add stuff, I have to wait for the nightly rebuild before I can link to my
snippet.

-Rune



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


Re: Webern-style accidentals & transposition

2007-08-31 Thread Rune Zedeler
Citat "David F. Place" <[EMAIL PROTECTED]>:

> That does work, but it makes lilypond print a warning for every note.

Are you sure that you removed the key_engraver as specified in my snippet?

-Rune


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


Re: slur and system breaks - take 2

2007-08-31 Thread Neil Puttock
Hi Valentin,

On 8/31/07, Valentin Villenave <[EMAIL PROTECTED]> wrote:
>
> Hi Neil, hi Oded,
>
> since Oded has given some relevant examples, and since it appears that
> LilyPond's default behavior isn't as nice as these examples, do you
> think this should be reported as a bug?


Oh, Definitely.It demonstrates a situation where it would be nice if the
slur engraver took in to account the general trend of the note direction
across a break.

Saying that, frankly I'm astonished that it gets it right most of the time -
LilyPond amazes me constantly.

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


Re: Webern-style accidentals & transposition

2007-08-31 Thread Valentin Villenave
2007/9/1, Rune Zedeler <[EMAIL PROTECTED]>:

> How do you manage to link to snippets so fast?
> When I add stuff, I have to wait for the nightly rebuild before I can link to 
> my
> snippet.

Not at all! The snippets are compiled immediately after tiy send them
(Sebastiano did great, by the way). All you have to do is click on the
"preview" button in the repository interface, then you can get the
right HTML resulting page.
What isn't immediately done, however, is the ability to find your
snippet using the HTML search page (this feature has a few bugs, and
is indeed rebuilt every 12 ours, just like the mailing list archives).

Regards,
Valentin


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


Re: Webern-style accidentals & transposition

2007-08-31 Thread David F. Place


On Aug 31, 2007, at 7:25 PM, Rune Zedeler wrote:

Are you sure that you removed the key_engraver as specified in my  
snippet?


-Rune


I did not.  Now, I have and it works perfectly.

  ___
(---o---o-o-o---o-o-o(
David F. Place
mailto:[EMAIL PROTECTED]




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


Re: Webern-style accidentals & transposition

2007-08-31 Thread Valentin Villenave
2007/9/1, Neil Puttock <[EMAIL PROTECTED]>:
> Are you the first port of call for submitting corrections? I've noticed a
> few snippets which don't work properly, e.g.
> http://lsr.dsi.unimi.it/LSR/Item?id=295

Yes I am. Or Cameron, whenever he's in the neighborhood.

Thank you for remind me of correcting Bainos' snippet. It's done.

> I mentioned that particular snippet en passant in another thread, but nobody
> noticed...

I may have seen it en passant as well, but I generally find
beaming-related stuff a bit boring  :)

> That's great - I'd just suggest the following minor emendments:

OK, great. I corrected it (I tried to find some useful stuff on the
English Wikipedia but it seems that they're not very accurate about
this music).
Sorry about the first viennese School; I often make this error because
I see the Darmstadt school as a rewriting of Schönberg&Co, and so I
often mix up Darmstadt and Vienna (it's a bit confusing, but it made
sense before I tried to write it :)

Regards,
Valentin


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