Re: automatically place bars in a melody

2008-04-22 Thread Jaime Oliver
Hi Graham,
thanks for your response,
> What doesn't work about it?

1. it doesn't fill the bar to it's full capacity, some 4/4 bars have only 3
quarter notes worth, some have more.
2. when splitting notes with ties, the remainder (in the next bar) is not
tied. that is:

with "Completion_heads_engraver":

\time 4/4
c4 c4 c2.~ c4

should produce:  c4 c4 c2~ | c4~ c4 or even better: c4 c4 c2~ | c2

but it produces:

c4 c4 c2~ | c4 c4

>If you find a bug, please file a
> minimal bug report.

I posted a bug report here:
http://code.google.com/p/lilypond/issues/detail?id=606&start=200
is this fine? should I also post one in
http://post.gmane.org/post.php?group=gmane.comp.gnu.lilypond.bugs?

best,

J



On Tue, Apr 22, 2008 at 8:37 PM, Graham Percival <[EMAIL PROTECTED]> wrote:

> On Tue, 22 Apr 2008 19:20:31 -0700
> "Jaime Oliver" <[EMAIL PROTECTED]> wrote:
>
> > \new Voice \with {
> > \remove "Note_heads_engraver"
> > \consists "Completion_heads_engraver"
> > }
> >
> > but it doesn't seem to make the job correctly. Any suggestions are
> > welcome.
> >
> > below is the code for a simple melody in which the present solution
> > doesn't work.
>
> What doesn't work about it?  If you find a bug, please file a
> minimal bug report.
>
> Cheers,
> - Graham
>



-- 
Jaime E Oliver LR

[EMAIL PROTECTED]
www.realidadvisual.org/jaimeoliver
www-crca.ucsd.edu/
www.realidadvisual.org

9168 Regents Rd. Apt. G
La Jolla, CA 92037
USA
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: automatically place bars in a melody

2008-04-22 Thread Graham Percival
On Tue, 22 Apr 2008 19:20:31 -0700
"Jaime Oliver" <[EMAIL PROTECTED]> wrote:

> \new Voice \with {
> \remove "Note_heads_engraver"
> \consists "Completion_heads_engraver"
> }
> 
> but it doesn't seem to make the job correctly. Any suggestions are
> welcome.
> 
> below is the code for a simple melody in which the present solution
> doesn't work.

What doesn't work about it?  If you find a bug, please file a
minimal bug report.

Cheers,
- Graham


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


Re: automatically place bars in a melody

2008-04-22 Thread Jaime Oliver
by the way, if the \time expression in the previous program is replaced with
\time 30/4 the durations are correct.
below the changed version,

best,

Jaime

%{lily_pitch_dur-pitch-dur version 0.01%}

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

\new Voice \with {
\remove "Note_heads_engraver"
\remove "Forbid_line_break_engraver"
\consists "Completion_heads_engraver"
}

\relative c' {
\time 30/4
\clef treble

c16  cis8  d8. dis4  e4~ e16  f4. fis4~ fis8. g2  gis2~ gis16  a2~ a8  ais2~
ais8. b2. c2~ c4~ c16
}

\version "2.10.33"


On Tue, Apr 22, 2008 at 7:20 PM, Jaime Oliver <[EMAIL PROTECTED]>
wrote:

> Hello all,
> I haven't used Lilypond so much so this might come up as obvious.I need
> Lilypond to place bars in a melody, splicing durations so that:
> A) it will fill the bar to it's full capacity and
> B) it will split durations that exceed the size of the bar, so that they
> retain the part that completes the bar and tie it to the remainder in the
> next bar.
>
> So, i have tried:
>
> \new Voice \with {
> \remove "Note_heads_engraver"
> \consists "Completion_heads_engraver"
> }
>
> but it doesn't seem to make the job correctly. Any suggestions are welcome.
>
> below is the code for a simple melody in which the present solution doesn't
> work.
>
> best,
>
> Jaime
>
>
> %{lily_pitch_dur-pitch-dur version 0.01%}
>
> #(set-default-paper-size "a4" 'landscape)
> #(set-global-staff-size 18)
>
> \new Voice \with {
> \remove "Note_heads_engraver"
> \consists "Completion_heads_engraver"
> }
>
> \relative c' {
> \time 4/4
> \clef treble
>
> c16  cis8  d8. dis4  e4~ e16  f4. fis4~ fis8. g2  gis2~ gis16  a2~ a8
>  ais2~ ais8. b2. c2~ c4~ c16
> }
>
> \version "2.10.33"
>
>
> --
> Jaime E Oliver LR
>
> [EMAIL PROTECTED]
> www.realidadvisual.org/jaimeoliver
> www-crca.ucsd.edu/
> www.realidadvisual.org
>
> 9168 Regents Rd. Apt. G
> La Jolla, CA 92037
> USA
>



-- 
Jaime E Oliver LR

[EMAIL PROTECTED]
www.realidadvisual.org/jaimeoliver
www-crca.ucsd.edu/
www.realidadvisual.org

9168 Regents Rd. Apt. G
La Jolla, CA 92037
USA
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


PD to lillypond

2008-04-22 Thread Jaime Oliver
Hello again,
I am developing a PD external that formats pairs of pd midi pitches and
durations into lilypond scores. do any of you know of other externals / code
I should be aware of?

best,

J

-- 
Jaime E Oliver LR

[EMAIL PROTECTED]
www.realidadvisual.org/jaimeoliver
www-crca.ucsd.edu/
www.realidadvisual.org

9168 Regents Rd. Apt. G
La Jolla, CA 92037
USA
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


automatically place bars in a melody

2008-04-22 Thread Jaime Oliver
Hello all,
I haven't used Lilypond so much so this might come up as obvious.I need
Lilypond to place bars in a melody, splicing durations so that:
A) it will fill the bar to it's full capacity and
B) it will split durations that exceed the size of the bar, so that they
retain the part that completes the bar and tie it to the remainder in the
next bar.

So, i have tried:

\new Voice \with {
\remove "Note_heads_engraver"
\consists "Completion_heads_engraver"
}

but it doesn't seem to make the job correctly. Any suggestions are welcome.

below is the code for a simple melody in which the present solution doesn't
work.

best,

Jaime


%{lily_pitch_dur-pitch-dur version 0.01%}

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

\new Voice \with {
\remove "Note_heads_engraver"
\consists "Completion_heads_engraver"
}

\relative c' {
\time 4/4
\clef treble

c16  cis8  d8. dis4  e4~ e16  f4. fis4~ fis8. g2  gis2~ gis16  a2~ a8  ais2~
ais8. b2. c2~ c4~ c16
}

\version "2.10.33"


-- 
Jaime E Oliver LR

[EMAIL PROTECTED]
www.realidadvisual.org/jaimeoliver
www-crca.ucsd.edu/
www.realidadvisual.org

9168 Regents Rd. Apt. G
La Jolla, CA 92037
USA
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: scheme function for staccato

2008-04-22 Thread Reinhold Kainhofer
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Am Dienstag, 22. April 2008 schrieben Sie:
> Quoting Valentin Villenave <[EMAIL PROTECTED]>:
> >> > % To modify a sequence of notes, it's easiest to use a filter:
> >
> > This approach seems to differ from
> > http://lsr.dsi.unimi.it/LSR/Item?id=82
>
> Reminder to Mats: Always check in LSR first! ;-)
>
> > Mats, Reinhold, can you give us some explanations about these
> > differences? Which one is the best? The simplest? The most reliable?
> > Should I edit the LSR snippet? Add a new snippet? etc.
>
> The solution in LSR is more or less equivalent to Reinhold's proposal,

Actually, I'd say it's less equivalent to my attempt, but a lot better ;-) 
Using built-in functions like music-map is definitly the better way than 
trying to do the same thing manually without knowing enough of the internals.
In particular, while I explicitly checked for an EventChord, the 82 snippet 
uses ly:music?

Cheers,
Reinhold

- -- 
- --
Reinhold Kainhofer, Vienna University of Technology, Austria
email: [EMAIL PROTECTED], http://reinhold.kainhofer.com/
 * Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/
 * K Desktop Environment, http://www.kde.org, KOrganizer maintainer
 * Chorvereinigung "Jung-Wien", http://www.jung-wien.at/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIDpBRTqjEwhXvPN0RAmd4AKCRgsxjR7WI/ltrMLKEDtB2iyhogQCfdNu9
bL2WESRnU0+QELhOJxmcUM8=
=P2ld
-END PGP SIGNATURE-


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


Re: scheme function for staccato

2008-04-22 Thread Valentin Villenave
2008/4/22 Mats Bengtsson <[EMAIL PROTECTED]>:

>  The solution in LSR is more or less equivalent to Reinhold's proposal, but
> is divided three separate functions instead of two, whereof two are generic
> and can be used for any articulation.

Yes, it seems more flexible this way.

>  The same fix that I proposed can be used also here, i.e. to replace the
> definition of add-script by
>  #(define (add-script m x)
>   (if
> (equal? (ly:music-property m 'name) 'EventChord)
> (set! (ly:music-property m 'elements)
>   (append (ly:music-property m 'elements)
>(list (make-script x)
>   m)

Great! I've updated the snippet (and my own scores' sources as well ;)

Cheers,
Valentin


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


Re: scheme function for staccato

2008-04-22 Thread Mats Bengtsson

Quoting Valentin Villenave <[EMAIL PROTECTED]>:


> % To modify a sequence of notes, it's easiest to use a filter:


This approach seems to differ from
http://lsr.dsi.unimi.it/LSR/Item?id=82


Reminder to Mats: Always check in LSR first! ;-)


Mats, Reinhold, can you give us some explanations about these
differences? Which one is the best? The simplest? The most reliable?
Should I edit the LSR snippet? Add a new snippet? etc.


The solution in LSR is more or less equivalent to Reinhold's proposal, 
but is divided three separate functions instead of two, whereof two are 
generic and can be used for any articulation.


However, it turns out that the solution shares the same problem as
Reinhold's solution, which you can see if you replace the score by
\score {
 \relative c'' {
   a b \addStacc { c, c }  }
 \layout{ ragged-right = ##t }
}


The same fix that I proposed can be used also here, i.e. to replace the 
definition of add-script by

#(define (add-script m x)
  (if
(equal? (ly:music-property m 'name) 'EventChord)
(set! (ly:music-property m 'elements)
  (append (ly:music-property m 'elements)
   (list (make-script x)
  m)

   /Mats


Cheers,
Valentin







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


Re: scheme function for staccato

2008-04-22 Thread Valentin Villenave
> > % To modify a sequence of notes, it's easiest to use a filter:

This approach seems to differ from
http://lsr.dsi.unimi.it/LSR/Item?id=82

Mats, Reinhold, can you give us some explanations about these
differences? Which one is the best? The simplest? The most reliable?
Should I edit the LSR snippet? Add a new snippet? etc.

Cheers,
Valentin


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


Re: scheme function for staccato

2008-04-22 Thread Stefan Thomas
Dear Mats,
thanks! It works fine and is an excellent tool for my work!

2008/4/22 Mats Bengtsson <[EMAIL PROTECTED]>:

> It seems that the articulation event has to be added after the note event
> in order not to confuse
> \relative. The following modification of Reinhold's code seems to work
> better.
>
> % To modify a sequence of notes, it's easiest to use a filter:
> #(define (addStaccatoFilterFunction event)
>  (let ( (eventname (ly:music-property  event 'name)) )
>   (if (eq? eventname 'EventChord)
> (let ( (elements (ly:music-property event 'elements)) )
>   ; don't add staccato to rests!
>   (if (not (eq? (ly:music-property (car elements) 'name) 'RestEvent))
> (set! (ly:music-property event 'elements)
>   (append elements (list (make-music 'ArticulationEvent
> 'articulation-type "staccato"))
>   ))
> )
>
> addStaccato = #(define-music-function (parser location music) (ly:music?)
>  (music-filter addStaccatoFilterFunction music)
> )
>
>
> For some reason it also works if you use Reinhold's code with
> \addStaccato { \relative { ... }}
> instead of
> \relative { \addStaccato {...}}
>
>   /Mats
>
> Stefan Thomas wrote:
>
> > Dear Reinhold,
> > many thanks for Your very usefull plugin. It works fine!
> > But there is one thing in the below quoted example I don't understand :
> > Why is the second g in the first measure an octave lower?
> >  I'm sure, I don't see something, which is  quite obvious, but I have no
> > idea.
> >
> > \version "2.11.43"
> >
> > \relative { \addStaccato { c4 c g' g a a g4 r
> > f8 r f8 r e8 r e r d4 r c r } }
> > 
> >
> >
> >
>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Phrasing Slurs and normal slurs

2008-04-22 Thread Andrew Hawryluk
Specifically, see LM 4.5.2 in the new (2.11) documentation.

http://lilypond.org/doc/v2.11/Documentation/user/lilypond-learning/Fixing-overlapping-notation#Fixing-overlapping-notation

Andrew

On 4/21/08, Werner LEMBERG <[EMAIL PROTECTED]> wrote:
> > I was typesetting some music with Lilypond when I got to a bar that
> > looked like this:
> >
> > http://www.nabble.com/file/p16821318/1.jpg
>
> This is a long-standing bug which is not easy to fix, unfortunately --
> mainly because Han-Wen, how has written the code and is acquainted
> best, has not enough time to take care of.
>
> Volunteers to fix that are highly welcomed.
>
> > 1) Is it possible to make the phrasing slur arch lower?
>
> Currently, only manually.  Please check the documentation.
>
> > 2) At the end of the bar, is it possible to make the slur and the
> > phrasing slur converge to the same point, or to separate (just
> > something that doesn't involve the two crossing over at the end of
> > the bar)?
>
> Ditto.
>
>
>Werner
>
>
> ___
> 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: baffling error message

2008-04-22 Thread Valentin Villenave
2008/4/22 James E. Bailey <[EMAIL PROTECTED]>:

>  I've often wondered if there's an easy way to change the default language
> (without building from scratch) it would really be nice to not have to
> \include a language file.

Yes, but note that all documentation examples and templates use the
default Dutch language, so this could be a problem.

Clues for an auto-selection feature, anyone?

Cheers,
Valentin


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


Re: baffling error message

2008-04-22 Thread James E. Bailey

Am 22.04.2008 um 18:02 schrieb Valentin Villenave:


2008/4/22 Jonathan Kulp <[EMAIL PROTECTED]>:
Yea!!  Thanks Reinhold, Mats, and Neil.  This instantly fixed the  
problem.

Oy.  I was using a template from somewhere and didn't know what that
"english.ly" was for but kept it anyway.  There ought to be a  
flashing red

warning light over that!


By the way, I often wonder if there would be a way for LilyPond to
automatically guess the language used, when no \include is specified.

(I guess there would be a way, by scanning the input file first and
grepping for specific notenames; however I'm not sure how ; my best
guess is that it would have to be implemented at very early low-level
point, maybe in one of the lexer/parser files -- in other words, this
is way beyond my knowledge.)

Nevertheless, this would be a killer feature for every non-"a b c d
e"-notenames people out there!

Valentin


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


I've often wondered if there's an easy way to change the default  
language (without building from scratch) it would really be nice to  
not have to \include a language file.



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


Re: a snippet

2008-04-22 Thread James E. Bailey
As for problems, I went to the lilypond snippet database, and after  
logging in there was no "new entry" button, so that's as far as I got.
As for a title, "2-staff choral template with lyrics centered and  
above and below each staff" I think expresses succinctly what it is.
As for a description, "Occasionally it is necessary in a mostly  
homophonic choral work to have a section that is polyphonic in nature,  
at least, where the voices don't all sing the same text at the same  
for a portion. This snippet demonstrates how to have text centered  
between four voices on two staves, and then how to have each voice  
have its own text."


Am 22.04.2008 um 17:50 schrieb Valentin Villenave:


2008/4/22 James E. Bailey <[EMAIL PROTECTED]>:
I wanted to submit a snippet for the LSR, but that didn't work out  
so well


What problems did you encounter?

Can you provide us with a title and description for your snippet?

Cheers,
Valentin




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


Re: SacredHarpHeads: possible solution to major/minor problem

2008-04-22 Thread Neil Puttock
Sorry, here's the correct function, without the debugging output:

sacredHarps = \applyContext #(lambda (c)
  (let* ((alts (ly:context-property c 'keySignature))
 (tonic (ly:context-property c 'tonic)))
(if (ly:pitch? tonic)
  (begin
(let* ((third (modulo (+ 2 (ly:pitch-notename tonic)) 7))
   (pitch (ly:make-pitch (ly:pitch-octave tonic) third (or
(ly:assoc-get third alts) NATURAL)))
   (diff (- (ly:pitch-semitones pitch) (ly:pitch-semitones tonic
  (if (or (eqv? diff 4) (eqv? diff -8))
(ly:context-set-property! c 'shapeNoteStyles #(fa #f la fa
#f la mi))
(ly:context-set-property! c 'shapeNoteStyles #(la mi fa #f
la fa #f)))
)))
  ))


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


SacredHarpHeads: possible solution to major/minor problem

2008-04-22 Thread Neil Puttock
On 14/04/2008, Adrian Mariano <[EMAIL PROTECTED]> wrote:
> Neil Puttock wrote:
>
> > On 14/04/2008, Adrian Mariano <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > >  Sounds like there's no real alternative.  Using two commands is clean
> and
> > > simple.  I see that the other person who reported this issue proposed
> that
> > > same solution.
> > >
> > >
> >
> > There's two options I can see for this:
> >
> > 1. Add a command such as \sacredHarpHeadsMinor;
> >
> > 2. Split the command into two, i.e., \sacredHarpHeadsMajor &
> > \sacredHarpHeadsMinor.
> >
> > The first option is simplest, since there's no requirement for a
> > convert-ly rule.
> >
> >
>  I would say that the minor mode is as common as the major in Sacred Harp
> music, maybe even more common, so option #1 seems inferior to option 2,
> because it presupposes that in some sense major is an appropriate default.

As a third option, here's my attempt at a universal command which will
automatically select the correct shapeNoteStyles for \sacredHarpHeads.
Since I've only just started getting the hang of coding in scheme,
there's probably room for improvement; I welcome any comments.

sacredHarps = \applyContext #(lambda (c)
  (let* ((alts (ly:context-property c 'keySignature))
 (tonic (ly:context-property c 'tonic)))
(if (ly:pitch? tonic)
  (begin
  (display tonic)
(let* ((third (modulo (+ 2 (ly:pitch-notename tonic)) 7))
   (pitch (ly:make-pitch (ly:pitch-octave tonic) third (or
(ly:assoc-get third alts) NATURAL)))
   (diff (- (ly:pitch-semitones pitch) (ly:pitch-semitones tonic
   (display third)
   (display diff)
  (if (or (eqv? diff 4) (eqv? diff -8))
(ly:context-set-property! c 'shapeNoteStyles #(fa #f la fa
#f la mi))
(ly:context-set-property! c 'shapeNoteStyles #(la mi fa #f
la fa #f)))
)))
  ))

Basically, it tests for a major third by comparing the third degree
with the tonic, then sets the shapeNoteStyles based on the result (4
or -8 semitones for a major third, depending on the degree of the
scale).

There's a slight limitation in that if the key signature changes, the
function needs to be called again to pick up the mode and set the
correct note head styles.

Also, if there's no Staff context explicitly declared, the tonic is
undefined, so the shapeNoteStyles will not be set (I tried to include
a warning for this, but can't get round the problem of MIDI output,
since it junks the tonic, resulting in a warning whenever a midi {}
block is included).

Regards,
Neil


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


Re: a snippet

2008-04-22 Thread Neil Puttock
On 22/04/2008, Valentin Villenave <[EMAIL PROTECTED]> wrote:
> 2008/4/22 James E. Bailey <[EMAIL PROTECTED]>:
>
> > I wanted to submit a snippet for the LSR, but that didn't work out so well
>
>
> What problems did you encounter?
>
>  Can you provide us with a title and description for your snippet?

It seems to be slightly weird today; several entries I've tried
previewing after editing have come up blank (they were working fine
last week.)

And before you ask, I'm pretty sure I haven't nobbled them by
inserting 2.11-specific stuff. :)

Regards,
Neil


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


Re: baffling error message

2008-04-22 Thread Valentin Villenave
2008/4/22 Jonathan Kulp <[EMAIL PROTECTED]>:
> Yea!!  Thanks Reinhold, Mats, and Neil.  This instantly fixed the problem.
> Oy.  I was using a template from somewhere and didn't know what that
> "english.ly" was for but kept it anyway.  There ought to be a flashing red
> warning light over that!

By the way, I often wonder if there would be a way for LilyPond to
automatically guess the language used, when no \include is specified.

(I guess there would be a way, by scanning the input file first and
grepping for specific notenames; however I'm not sure how ; my best
guess is that it would have to be implemented at very early low-level
point, maybe in one of the lexer/parser files -- in other words, this
is way beyond my knowledge.)

Nevertheless, this would be a killer feature for every non-"a b c d
e"-notenames people out there!

Valentin


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


Re: a snippet

2008-04-22 Thread Valentin Villenave
2008/4/22 James E. Bailey <[EMAIL PROTECTED]>:
> I wanted to submit a snippet for the LSR, but that didn't work out so well

What problems did you encounter?

Can you provide us with a title and description for your snippet?

Cheers,
Valentin


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


Re: baffling error message

2008-04-22 Thread Jonathan Kulp
Yea!!  Thanks Reinhold, Mats, and Neil.  This instantly 
fixed the problem.  Oy.  I was using a template from 
somewhere and didn't know what that "english.ly" was for but 
kept it anyway.  There ought to be a flashing red warning 
light over that!  I've gotten used to writing gis fis and 
cis so I'll just make sure not to have the english.ly file 
included in anything.  Many thanks for the speedy solution 
to my problem.  Glad it was so easy for you guys to figure out.


Jon

Reinhold Kainhofer wrote:
> Am Dienstag, 22. April 2008 schrieb Jonathan Kulp:
>> I'm getting an error message that's driving me crazy:
>>
>> GNU LilyPond 2.11.44
>> Processing `merengue.ly'
>> Parsing...
>> merengue.ly:239:24: error: syntax error, unexpected STRING
>>  a,4-. g'-. a,-.
>>  gis'-.  \ostinatoTwo
>
>
> The problem is:
>> \include "english.ly"
>
> The english.ly file renames the pitch names to gsharp (or 
gs), but does not

> allow gis any more!
>
> Cheers,
> Reinhold

--
Jonathan Kulp
http://www.jonathankulp.com


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


Re: baffling error message

2008-04-22 Thread Neil Puttock
Hi Jon,

If you've included "english.ly", you can't call G-sharp "gis"; either
change it to "gs" or get rid of the include. :)

Regards,
Neil


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


Re: baffling error message

2008-04-22 Thread Mats Bengtsson

Since you use
\include "english.ly"
you should use the English version of the note names, not the default 
Dutch ones, right?

Try a "gs" instead of "gis".

   /Mats


Jonathan Kulp wrote:

I'm getting an error message that's driving me crazy:

GNU LilyPond 2.11.44
Processing `merengue.ly'
Parsing...
merengue.ly:239:24: error: syntax error, unexpected STRING
a,4-. g'-. a,-.
gis'-.  \ostinatoTwo % m. 
11-12

merengue.ly:285:17: error: syntax error, unexpected STRING
g4-. e-.
 gis-. e-. | \ostinatoFour  |  % m. 11-12
merengue.ly:327:3: error: errors found, ignoring music expression

   << % creates new grand staff
error: failed files: "merengue.ly"


This is an orchestral score, and the problems are coming in the 2nd 
violin and cello parts.  So, the \ostinatoTwo and \ostinatoFour are 
user-defined commands and they seem to work fine--I don't think 
they're causing the trouble.  The problem is the G-sharp in each case, 
I think.  Something is getting triggered by the "gis'-." on line 239 
and lin 285. I tried removing the articulations, changing from "gis" 
to "fis," or "cis", removing the ' and , and it still chokes on this 
part.  BUT when I changed the "gis" to a "g" (natural), the problem 
goes away.  It finishes parsing and creates a nice .pdf for me.  When 
I extract the troublesome bit and run it as a separate file, it works 
fine also, with the g-sharps instead of naturals.  I'll attach the 
orchestral file and my extraction of the "trouble" spot  if anyone 
wants to take a run at this.  I'm baffled.  (I need G-sharps!! :-)) 
The same problem occurs whether I run it on 2.10.33 or 2.11.44 (Linux 
in both cases).  Thanks,


Jon


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


--
=
Mats Bengtsson
Signal Processing
School of Electrical Engineering
Royal Institute of Technology (KTH)
SE-100 44  STOCKHOLM
Sweden
Phone: (+46) 8 790 8463 
   Fax:   (+46) 8 790 7260
Email: [EMAIL PROTECTED]
WWW: http://www.s3.kth.se/~mabe
=



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


Re: baffling error message

2008-04-22 Thread Reinhold Kainhofer
Am Dienstag, 22. April 2008 schrieb Jonathan Kulp:
> I'm getting an error message that's driving me crazy:
>
> GNU LilyPond 2.11.44
> Processing `merengue.ly'
> Parsing...
> merengue.ly:239:24: error: syntax error, unexpected STRING
>          a,4-. g'-. a,-.
>                          gis'-.  \ostinatoTwo


The problem is:
> \include "english.ly"

The english.ly file renames the pitch names to gsharp (or gs), but does not 
allow gis any more!

Cheers,
Reinhold
-- 
--
Reinhold Kainhofer, Vienna University of Technology, Austria
email: [EMAIL PROTECTED], http://reinhold.kainhofer.com/
 * Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/
 * K Desktop Environment, http://www.kde.org, KOrganizer maintainer
 * Chorvereinigung "Jung-Wien", http://www.jung-wien.at/


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


baffling error message

2008-04-22 Thread Jonathan Kulp

I'm getting an error message that's driving me crazy:

GNU LilyPond 2.11.44
Processing `merengue.ly'
Parsing...
merengue.ly:239:24: error: syntax error, unexpected STRING
a,4-. g'-. a,-.
gis'-.  \ostinatoTwo 
% m. 11-12

merengue.ly:285:17: error: syntax error, unexpected STRING
g4-. e-.
 gis-. e-. | \ostinatoFour  | 
 % m. 11-12
merengue.ly:327:3: error: errors found, ignoring music 
expression


   << % creates new grand staff
error: failed files: "merengue.ly"


This is an orchestral score, and the problems are coming in 
the 2nd violin and cello parts.  So, the \ostinatoTwo and 
\ostinatoFour are user-defined commands and they seem to 
work fine--I don't think they're causing the trouble.  The 
problem is the G-sharp in each case, I think.  Something is 
getting triggered by the "gis'-." on line 239 and lin 285. 
I tried removing the articulations, changing from "gis" to 
"fis," or "cis", removing the ' and , and it still chokes on 
this part.  BUT when I changed the "gis" to a "g" (natural), 
the problem goes away.  It finishes parsing and creates a 
nice .pdf for me.  When I extract the troublesome bit and 
run it as a separate file, it works fine also, with the 
g-sharps instead of naturals.  I'll attach the orchestral 
file and my extraction of the "trouble" spot  if anyone 
wants to take a run at this.  I'm baffled.  (I need 
G-sharps!! :-)) The same problem occurs whether I run it on 
2.10.33 or 2.11.44 (Linux in both cases).  Thanks,


Jon
--
Jonathan Kulp
http://www.jonathankulp.com
 
\header{
   composer  = "Jonathan Kulp (1970-)"
   title = "Merengue for Orchestra"
   % subtitle= \markup { \fontsize #-2 "subtitle here" }
   % dedication  = ""
   copyright = "Creative Commons Attribution-ShareAlike 3.0"
}

\paper {
  print-page-number = ##t
  print-first-page-number = ##f
  print-first-page-header = ##f
  #(set-paper-size "11x17")
  line-width = \paper-width - 40
  horizontal-shift = 8
}

\version "2.10.33"

#(set-global-staff-size 16)
\include "english.ly"
  
 Some macros %%%
 
ostinatoOne = \relative c'' { 8-.[ -. r8 -.] r8 -.[ r8 
-.] }
ostinatoTwo = \relative c'' { b4-. a'-. b,-. a'-. }
ostinatoThree = \relative c' { e4-. b'-. e,-. b'-. }
ostinatoFour = \relative c' { a4-. f-. a-. f-. }
ostinatoFive = \relative c { a8-. a4-. a-. a-. a8-. }
  
 Keys'n'stuff %
  
global = {
\time 4/4
\tempo 4=160
\override Staff.TimeSignature #'style = #'()
}
%%% key\ [the key would go here]
  
%  Woodwinds 

% -- Piccolo -- %

piccoloNotes = \relative c''' {
\set Staff.instrumentName = "Piccolo"
\set Staff.shortInstrumentName = "Picc."
\set Staff.midiInstrument = "piccolo"
\tempo 4=160
\override Staff.TimeSignature #'style = #'()
R1*12
} % end of piccolo notes

% -- Flutes -- %

fluteNotes = \relative c''' {
\set Staff.instrumentName = "Flute 1, 2"
\set Staff.shortInstrumentName = "Fl. 1,2"
\set Staff.midiInstrument = "flute"
\tempo 4=160
\override Staff.TimeSignature #'style = #'()
R1*12
} % end of flute notes

% -- Oboes -- % 

oboeNotes = \relative c'' {
\set Staff.instrumentName = "Oboe 1,2"
\set Staff.shortInstrumentName = "Ob. 1,2"
\set Staff.midiInstrument = "oboe"
\tempo 4=160
\override Staff.TimeSignature #'style = #'()
R1*12
} % end of oboe notes

% -- Clarinets -- %
clarinetNotes = \relative c' {
\set Staff.instrumentName = "Clarinet 1,2"
\set Staff.shortInstrumentName = "Cl. 1,2"
\set Staff.midiInstrument = "clarinet"
\tempo 4=160
\override Staff.TimeSignature #'style = #'()
R1*12
} % end of clarinet notes

% -- Bass Clarinet -- %
bassClarinetNotes = \relative c {
\set Staff.instrumentName = "Bass Clarinet"
\set Staff.shortInstrumentName = "B. clar."
\set Staff.midiInstrument = "clarinet"
 \clef "treble_8"
\tempo 4=160
\override Staff.TimeSignature #'style = #'()
R1*12
} % end of bass clarinet notes

% -- Bassoons -- %
bassoonNotes = \relative c {
\set Staff.instrumentName = "Bassoon 1,2"
\set Staff.shortInstrumentName = "Bssn. 1,2"
\set Staff.midiInstrument = "bassoon"
\clef bass
\tempo 4=160
\override Staff.TimeSignature #'style = #'()
R1*12
} % end of bassoon notes


%  Brass ### %

% -- Horns 1 & 2 -- %
hornOneNotes = \relative c' {
\set Staff.instrumentName = "Horn 1,2"
\set Staff.shortInstrumentName = "Hn. 1,2"
\set Staff.midiInstrument = "french horn"
\tempo 4=160
\override Sta

Re: short instrument names going off the page

2008-04-22 Thread Jonathan Kulp
Many thanks, James!  After adjusting the values a bit 
everything fits on the page.  Best wishes,


Jon

p.s. incindentally I had no luck posting a snippet to the 
repository either.  It kept asking me to log in after I had 
already logged in.

--
Jonathan Kulp
http://www.jonathankulp.com

James E. Bailey wrote:

I had the exact same problem, I would have submitted 
something to the LSR, but that thing doesn't work for me. I 
just add

\paper {
line-width = \paper-width - 20
horizontal-shift = 5
}
and adjust the values as needed.


Am 22.04.2008 um 16:11 schrieb Jonathan Kulp:

> My short instrument names go off the left side of the 
page.  I've searched the manuals and can't find the tweak or 
setting to keep this from happening.  Seems like it must be 
something in the layout block.  The full instrument names 
print normally within the printable area.  Can anyone point 
me to the right command to make the short names fit inside 
the printable area?  Thanks,

>
> Jon
>
> (Lilypond 2.11.44 on Linux)
> --
> Jonathan Kulp
> http://www.jonathankulp.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


a snippet

2008-04-22 Thread James E. Bailey
I wanted to submit a snippet for the LSR, but that didn't work out so  
well for me, so I thought I would just put it here, it's the next best  
thing, really. I needed a way to have in a choral piece a single line  
of text for most of the work, and at the end, in the stretto, the  
texts exploded to be above and below the staves. Here it is
sopranomusic = { c''4 b'4 c''4 \new Voice = "sopranoupper" {\voiceOne  
d''4~ d''4 e''4 d''4 c''4} }
altomusic = { g'4 g'4 a'4 r4 \new Voice = "altolower" {\voiceTwo r4  
c'4 f'4 g'4 } }
tenormusic = { e'4 d'4 c'4 r4 \new Voice = "tenorupper" {\voiceOne g4  
a4 b4 c'4 } }

bassmusic = { c4 d4 d4 r4 \new Voice = "basslower" {\voiceTwo r2. c4 } }
choirtext = \lyricmode { In4 be4 -- tween4 }
sopranotext = \lyricmode { a -- bove this voice }
altotext = \lyricmode { be -- low voice }
tenortext = \lyricmode { a -- bove this voice }
basstext = \lyricmode { voice }
\score {
\new ChoirStaff <<
\new Staff = women <<
\new Voice = "soprano" {\voiceOne \sopranomusic}
\new Voice = "alto" {\voiceTwo \altomusic}
>>
\context Lyrics \choirtext
\new Staff = men << \clef bass
\new Voice = "tenor" {\voiceOne \tenormusic}
\new Voice = "bass" {\voiceTwo \bassmusic}
>>
		\new Lyrics \with {alignAboveContext=women} \lyricsto sopranoupper  
\sopranotext
		\new Lyrics \with {alignBelowContext=women} \lyricsto altolower  
\altotext
		\new Lyrics \with {alignAboveContext=men} \lyricsto tenorupper  
\tenortext
		\new Lyrics \with {alignBelowContext=men} \lyricsto basslower  
\basstext

>>
}
I hope it helps someone in the future. (at the very least me, when I  
forget how to do this and I need to again.




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


Re: short instrument names going off the page

2008-04-22 Thread James E. Bailey


Am 22.04.2008 um 16:11 schrieb Jonathan Kulp:

My short instrument names go off the left side of the page.  I've  
searched the manuals and can't find the tweak or setting to keep  
this from happening.  Seems like it must be something in the layout  
block.  The full instrument names print normally within the  
printable area.  Can anyone point me to the right command to make  
the short names fit inside the printable area?  Thanks,


Jon

(Lilypond 2.11.44 on Linux)
--
Jonathan Kulp
http://www.jonathankulp.com


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


I had the exact same problem, I would have submitted something to the  
LSR, but that thing doesn't work for me. I just add

\paper {
line-width = \paper-width - 20
horizontal-shift = 5
}
and adjust the values as needed.


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


short instrument names going off the page

2008-04-22 Thread Jonathan Kulp
My short instrument names go off the left side of the page. 
 I've searched the manuals and can't find the tweak or 
setting to keep this from happening.  Seems like it must be 
something in the layout block.  The full instrument names 
print normally within the printable area.  Can anyone point 
me to the right command to make the short names fit inside 
the printable area?  Thanks,


Jon

(Lilypond 2.11.44 on Linux)
--
Jonathan Kulp
http://www.jonathankulp.com


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


midi2ly no rest

2008-04-22 Thread Rafa del Campo
Hello

When I use midi2ly for traduce a midi file to a ly file, when execute lilypond 
I can't see the rest?? Is is posible do anything?

Thanks
Rafa 



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


Re: scheme function for staccato

2008-04-22 Thread Mats Bengtsson
It seems that the articulation event has to be added after the note 
event in order not to confuse
\relative. The following modification of Reinhold's code seems to work 
better.


% To modify a sequence of notes, it's easiest to use a filter:
#(define (addStaccatoFilterFunction event)
 (let ( (eventname (ly:music-property  event 'name)) )
   (if (eq? eventname 'EventChord)
 (let ( (elements (ly:music-property event 'elements)) )
   ; don't add staccato to rests!
   (if (not (eq? (ly:music-property (car elements) 'name) 'RestEvent))
 (set! (ly:music-property event 'elements)
   (append elements (list (make-music 'ArticulationEvent 
'articulation-type "staccato"))

   ))
)

addStaccato = #(define-music-function (parser location music) (ly:music?)
  (music-filter addStaccatoFilterFunction music)
)


For some reason it also works if you use Reinhold's code with
\addStaccato { \relative { ... }}
instead of
\relative { \addStaccato {...}}

   /Mats

Stefan Thomas wrote:

Dear Reinhold,
many thanks for Your very usefull plugin. It works fine!
But there is one thing in the below quoted example I don't understand 
: Why is the second g in the first measure an octave lower?
 I'm sure, I don't see something, which is  quite obvious, but I have 
no idea.


\version "2.11.43"

\relative { \addStaccato { c4 c g' g a a g4 r
f8 r f8 r e8 r e r d4 r c r } }


  




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


Re: Problem with midi2ly

2008-04-22 Thread Rafa del Campo
I use Windows XP and 2.11.42-1 version of Lilypond.

Rafa




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


Re: Problem with midi2ly

2008-04-22 Thread Mats Bengtsson
It looks as if you use Windows, right (please always tell)? What version 
of LilyPond do you use?


  /Mats

Rafa del Campo wrote:

Hello

I have a problem when I type midi2ly albeniz.mid:

D:\>midi2ly albeniz.mid
Traceback (most recent call last):
  File "C:\Archivos de programa\LilyPond\usr\bin\midi2ly.py", line 51, in 


import midi
ImportError: No module named midi

But I have in the same directory midi.dll.


Where can I find especific documentation about midi2ly???


Thanks



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


--
=
Mats Bengtsson
Signal Processing
School of Electrical Engineering
Royal Institute of Technology (KTH)
SE-100 44  STOCKHOLM
Sweden
Phone: (+46) 8 790 8463 
   Fax:   (+46) 8 790 7260
Email: [EMAIL PROTECTED]
WWW: http://www.s3.kth.se/~mabe
=



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


Problem with midi2ly

2008-04-22 Thread Rafa del Campo
Hello

I have a problem when I type midi2ly albeniz.mid:

D:\>midi2ly albeniz.mid
Traceback (most recent call last):
  File "C:\Archivos de programa\LilyPond\usr\bin\midi2ly.py", line 51, in 

import midi
ImportError: No module named midi

But I have in the same directory midi.dll.


Where can I find especific documentation about midi2ly???


Thanks



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