Re: Cannot correctly code this rhythm...

2009-02-21 Thread M Watts

RandomLilyPondUser wrote:

Sure, that works for a new project, but what about in the context of my drum
project I've attached a couple posts back?
  


I haven't yet got the barlines lined up on each line, but I've made a start.

Btw, the file rudiments.ly, as posted, is missing a ' on lines 6 and 17; 
just change "\override Beam #'positions = #(1 . 1)" to "  \override Beam 
#'positions = #'(1 . 1)" etc.


If you look at the output of drumtest.ly, there's an extra crotchet 
which takes it into a 73rd bar -- remove this, and it looks better 
immediately.


I found that I could strip out all the \noBreak jazz, and still achive 
six bars on every line with this \with block:


\new Score \with {
   proportionalNotationDuration = #(ly:make-moment 1 2)
   \override SpacingSpanner #'uniform-stretching = ##t
   \override SpacingSpanner #'common-shortest-duration = 
#(ly:make-moment 1 8)
   \override SpacingSpanner #'base-shortest-duration = 
#(ly:make-moment 1 16)

}

which saves a lot of typing, but still doesn't do exactly what you want.





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


translate audio to lilypond

2009-02-21 Thread Malin Svenson
Hi, list.
I am very new to lilypond. I was looking for some kind of automated way to
translate simple sound files to notation and I found this:

http://moguillansky.wordpress.com/2009/02/19/translating-audio-to-musical-notation/

there are some scores which were generated automatically and translated to
lilypond from musicxml.

i tried the convert utility included in the last lilypond (2.12 on OSX
intel) but it does not seem to handle dynamics at all, let alone note-sizes
and microtones, as shown in the score.

does anyone know how this "translation" was done?

many thanks,

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


notation reference - text scripts ?

2009-02-21 Thread corallina
In the notation reference manual   1.8.1 Writing Text
the page  Text scriptshas examples for

text above the staff   note^\markup

text below the staff   note_\markup
text below the staff   note-\markup   first example
a4-\markup scherz

Is the usage of both the dash and the underscore intended for some reason?

Thanks and just curious as the first time I saw the dash I thought it might
be an error so I looked around for the reference


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


Re: notation reference - text scripts ?

2009-02-21 Thread Wilbert Berendsen
Op zaterdag 21 februari 2009, schreef corallina:
> In the notation reference manual   1.8.1 Writing Text
> the page  Text scriptshas examples for
>
> text above the staff   note^\markup
>
> text below the staff   note_\markup
> text below the staff   note-\markup   first example
> a4-\markup scherz
>
> Is the usage of both the dash and the underscore intended for some reason?

dash = default placement (that can be below or above the staff, e.g. for 
staccato it is on the opposite side of the stem in singlevoice staffs.)
underscore = always (forced) below
circumflex = always (forced) above

best regards,
Wilbert Berendsen

-- 
Frescobaldi, LilyPond editor for KDE: http://www.frescobaldi.org/


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


Re: Parsing lilypond into python

2009-02-21 Thread Wilbert Berendsen
Op woensdag 11 februari 2009, schreef Akira Bergman:
> I am interested in using Lilypond files with Python and Csound. How can I
> parse Lilypond files into Python? Is there a way of interfacing the
> internal parsing mechanism (Scheme?) of Lilypond to Python?

I wrote a basic parser in Python that's used by Frescobaldi. The code is GPL 
and is here: 
http://code.google.com/p/lilykde/source/browse/trunk/frescobaldi/python/ly/tokenize.py

It's part of the 'ly' module (package) that ships with Frescobaldi, but that 
package contains only LilyPond-related code (not KDE) and could easily be 
extended and/or used by other programs.

best regards,
Wilbert Berendsen

-- 
Frescobaldi, LilyPond editor for KDE: http://www.frescobaldi.org/



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


Re: Cannot correctly code this rhythm...

2009-02-21 Thread Carl D. Sorensen



On 2/20/09 5:23 PM, "RandomLilyPondUser"  wrote:

> 
> 
> Sure, that works for a new project, but what about in the context of my drum
> project I've attached a couple posts back?
>

I looked into your project, but the project was complex enough that I didn't
want to spend the time to figure it all out.

I did get far enough to think that perhaps strict spacing only applies to
music notes.  Grace notes and bar lines appear to be spaced around the notes
to avoid collisions.  So, because of the number of grace notes you have, it
may not be possible to get the bar lines aligned, even if the main notes are
all perfectly aligned.

> is the repetitive repeating / unfolding / time signature code the only way
> to do this

The key issues I needed to add in order to make all the barlines align are:

Set strict-note-spacing #t
Set uniform-stretching #t
set  proportionalNotationDuration to an appropriate level

These three things get the notes set right.

Then I need an invisible time signature at the beginning of each line to
match the space taken up by the time signature at the beginning of the first
line.

To achieve this I set TimeSignature break-visibility to
#begin-of-line-visible.
Also, after the first line, I set TimeSignature transparent to #t.
Then I have to add a new \time at each \break in order to generate the time
signature.

My repeat unfold code is just a shortcut to get lots of measures with a
little bit of typing, copying, and pasting.

The repeat unfold has nothing to do with it.

OTOH, the time signature at the end of each line is important, because I
need to use up the space for a time signature at the beginning of each line
so that the lines will match up with the first line that has a time
signature.

This should not be a huge problem for you, since you already control the
line breaks very tightly.

And it is possible to put all the line breaks in a spacing voice, as you can
see below:

\version "2.12"
#(set-default-paper-size "letter")

theNotes = {
  \repeat unfold 4 { c'4 c' c' c'}
  \repeat unfold 4 { \repeat unfold 8 {e'8}}
  \repeat unfold 4 { c'4 c' c' c'}
}

theSpacing = {
  \set Score.proportionalNotationDuration = #(ly:make-moment 1 16)
  \override Score.SpacingSpanner #'strict-note-spacing = ##t
  \override Score.SpacingSpanner #'uniform-stretching = ##t
  \override Score.TimeSignature #'break-visibility = #begin-of-line-visible
  s1*3
  \override Score.TimeSignature #'transparent = ##t
  \time 4/4 \break s1*3
  \time 4/4 \break s1*3
  \time 4/4 \break s1*3
}

\new Staff {
  <<
\theSpacing
\theNotes
  >>
}

\layout{
  indent=#0
}



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


Re: Lilypond Right to Left

2009-02-21 Thread Valentin Villenave
2009/2/20 Fr. Michael Gilmary :
> Hi!

Greetings,

> Is there any development in Lilypond for typesetting the music and lyrics from
> right to left? We would use it for setting some Syriac hymns.

Surprisingly enough, it is not (yet) supported. You can, however,
print text from right to left in a markup object, as demonstrated at
http://lsr.dsi.unimi.it/LSR/Item?id=555

If you can provide us with some short examples of such scores, I'll
add this as a feature request.

Regards,
Valentin


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


Re: Cannot correctly code this rhythm...

2009-02-21 Thread Brett Duncan

Carl D. Sorensen wrote:



I looked into your project, but the project was complex enough that I didn't
want to spend the time to figure it all out.

I did get far enough to think that perhaps strict spacing only applies to
music notes.  Grace notes and bar lines appear to be spaced around the notes
to avoid collisions.  So, because of the number of grace notes you have, it
may not be possible to get the bar lines aligned, even if the main notes are
all perfectly aligned.


I've been fiddling with your files, and I cannot get the main notes to 
perfectly line up, even when I set proportionalNotationDuration to a 
very small value. The main culprits appear to be the grace notes, as 
Carl indicated, but also the tremolos. (A bug, maybe?)


And set SpacingSpanner #'strict-grace-spacing to ##t did not seem to 
have a discernable effect.


Brett


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


How to control ordering of staves?

2009-02-21 Thread aliteralmind

Here's an image of what I keep getting:

http://jeffyepstein.com/tmp/staves_bad.gif

I'm trying to get the "clap" staff above the "voice" staff. Can someone
please help me understand how to control the ordering of staves? (I only
want the clap staff to appear for the first measure.)

This is what I'm trying to get:

http://jeffyepstein.com/tmp/staves_good.gif


Below is my LY code. Thank you for helping.

-

\version "2.12.2"

clap = \new Staff \with {
  \override StaffSymbol #'line-count = #1
  } \relative c'' {
   \time 24/8
   \set Staff.instrumentName = #"Clap"
\teeny
\override NoteHead #'style = #'cross
r4. b8 r4 r4. b8 r4 r4. b8^"Repeat throughout" r4 r4. b8 r4 |  }

bla = \relative c'' {
   \set Staff.instrumentName = #"Voice"
   \time 24/8
   \tempo 4.=80
   \override NoteHead #'style = #'cross
   \repeat volta 2 {  b4. r b4. r b4. r4 b8^\markup {
   \italic \left-column \small  {
  \line{  Quiet first time  }
\line{  Loud second time  } } }~ b4. r4. |  }
   \repeat volta 2 {  b4 b8 b4 b8 b4. b b b4 b8~ b4. r4. |  }
}


verseOne = \lyricmode {
  Bla bloo bla bloo bla dee bla dee bla dee bla dee bla.
}

\score {
\new Staff <<
  \new Voice { \clap }
  \new Voice = "bla" { \bla }
  \new Lyrics \lyricsto "bla" { \verseOne }
   >>
   \layout { }
   \midi { }
}

-
-- 
View this message in context: 
http://www.nabble.com/How-to-control-ordering-of-staves--tp22142941p22142941.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


Partial measures

2009-02-21 Thread Nick Payne
I'm engraving a piece that has partial measures at the beginning and end of
both repeats. The piece is in 4/4 time, with the initial measure of each
repeat being 1/8 and the final measure 7/8. In a minimal example, eg

\relative c'' {
\time 4/4
\repeat volta 2 {
\partial 8 gis8 |
fis4 g g c, |
\partial 8*7 b2. r8 
}
}

I get no errors, but in the actual score, adding the \partial 8*7 at the end
of a repeat gives a barcheck failed error. In s.1.2.3 of the NR it states
that \partial is intended only to be used at the beginning of a piece. 

What's the correct way of getting this working? 

Nick

Ps. Search function in the LSR seems broken at the moment - nothing gets
returned for any search.



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


Re: Partial measures

2009-02-21 Thread Jonathan Kulp

Nick Payne wrote:

I'm engraving a piece that has partial measures at the beginning and end of
both repeats. The piece is in 4/4 time, with the initial measure of each
repeat being 1/8 and the final measure 7/8. In a minimal example, eg

\relative c'' {
\time 4/4
\repeat volta 2 {
\partial 8 gis8 |
fis4 g g c, |
		\partial 8*7 b2. r8 
	}

}

I get no errors, but in the actual score, adding the \partial 8*7 at the end
of a repeat gives a barcheck failed error. In s.1.2.3 of the NR it states
that \partial is intended only to be used at the beginning of a piece. 

What's the correct way of getting this working? 


Nick

Ps. Search function in the LSR seems broken at the moment - nothing gets
returned for any search.


Hi Nick,

I haven't had to do this before but it seems to work right without using 
\partial after the beginning of the piece.  See if this gets the output 
you want.  I just copied the same notes in to act as the B section:


%%%

\version "2.12.3"

\relative c'' {
\time 4/4
\repeat volta 2 {
\partial 8 gis8 |
fis4 g g c, |
b2. r8
}
\repeat volta 2 {
gis'8
fis4 g g c, |
b2. r8
}
}

%%%

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


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


Re: How to control ordering of staves?

2009-02-21 Thread Carl D. Sorensen



On 2/21/09 7:15 PM, "aliteralmind"  wrote:

> 
> 
> Here's an image of what I keep getting:
> 
> http://jeffyepstein.com/tmp/staves_bad.gif
> 
> I'm trying to get the "clap" staff above the "voice" staff. Can someone
> please help me understand how to control the ordering of staves? (I only
> want the clap staff to appear for the first measure.)

Don't put the staff in the definition of clap.

And you may want to use a DrumStaff or a RhythmicStaff instead of a Staff
for the clapping.

But the real thing is to make a parallel section of two Staffs and a Lyrics,
instead of a Staff with two parallel voices (one of which contains a Staff)
and a parallel Lyrics

HTH,

Carl


\version "2.12.2"

clap = \relative c'' {
   \time 24/8
   \set Staff.instrumentName = #"Clap"
\teeny
\override NoteHead #'style = #'cross
r4. b8 r4 r4. b8 r4 r4. b8^"Repeat throughout" r4 r4. b8 r4 |  }

bla = \relative c'' {
   \set Staff.instrumentName = #"Voice"
   \time 24/8
   \tempo 4.=80
   \override NoteHead #'style = #'cross
   \repeat volta 2 {  b4. r b4. r b4. r4 b8^\markup {
   \italic \left-column \small  {
  \line{  Quiet first time  }
\line{  Loud second time  } } }~ b4. r4. |  }
   \repeat volta 2 {  b4 b8 b4 b8 b4. b b b4 b8~ b4. r4. |  }
}


verseOne = \lyricmode {
  Bla bloo bla bloo bla dee bla dee bla dee bla dee bla.
}

\score {
  <<
\new Staff \with {
  \override StaffSymbol #'line-count = #1
  } {
\clap
  }
\new Staff {
  \new Voice = "bla" { \bla }
}
  \new Lyrics \lyricsto "bla" { \verseOne }
   >>
   \layout { }
   \midi { }
}



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


Re: How to control ordering of staves?

2009-02-21 Thread Jonathan Kulp

aliteralmind wrote:

Here's an image of what I keep getting:

http://jeffyepstein.com/tmp/staves_bad.gif

I'm trying to get the "clap" staff above the "voice" staff. Can someone
please help me understand how to control the ordering of staves? (I only
want the clap staff to appear for the first measure.)

This is what I'm trying to get:

http://jeffyepstein.com/tmp/staves_good.gif


Below is my LY code. Thank you for helping.



Your \score block just needed a bit of tweaking.  I also took the \new 
Staff command out of the clap variable and put it in the \score block. 
Here's revised code.  The output looks like what you want:


%%%

\version "2.12.2"

clap =  \relative c'' {
   \time 24/8
   \set Staff.instrumentName = #"Clap"
\teeny
\override NoteHead #'style = #'cross
r4. b8 r4 r4. b8 r4 r4. b8^"Repeat throughout" r4 r4. b8 r4 |  }

bla = \relative c'' {
   \set Staff.instrumentName = #"Voice"
   \time 24/8
   \tempo 4.=80
   \override NoteHead #'style = #'cross
   \repeat volta 2 {  b4. r b4. r b4. r4 b8^\markup {
   \italic \left-column \small  {
  \line{  Quiet first time  }
\line{  Loud second time  } } }~ b4. r4. |  }
   \repeat volta 2 {  b4 b8 b4 b8 b4. b b b4 b8~ b4. r4. |  }
}


verseOne = \lyricmode {
  Bla bloo bla bloo bla dee bla dee bla dee bla dee bla.
}

\score {
   <<
  \context Staff = "Clap" \with {
\override StaffSymbol #'line-count = #1
  }
  <<
  \context Voice = "clap staff" { \clap }
  >>
  \context Staff = "Bla" <<
  \context Voice = "bla" { \bla }
  \new Lyrics \lyricsto "bla" { \verseOne }
  >>
   >>
   \layout { }
   \midi { }
}

%


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


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


Custom key signatures

2009-02-21 Thread Kees van den Doel
I managed to print custom key signatures from a microtonal font. One problem 
remains, and I wonder if anyone can help me.

In my init file persian.ly I have defined variables for various key signatures 
and keys, e.g. for Shur in E

shurEKey = \markup{
  \translate  #'(0 . 1)   \SORISYMBOL
}
shurE = #`(
(3 . ,SORI)
  )

were SORISYMBOL is my UTF-8 code form the font I've loaded.

My source file looks like this:

\include "persian.ly"
\score {
  \relative c' {
   \set Staff.keySignature = \shurE
   a b c
 }
  \midi { }
  \layout { 
\context {
  \Score \override KeySignature #'text = #shurEKey 
}
  }
}

which works fine. I would instead like to put the statement

 \Score \override KeySignature #'text = #shurEKey 

not in the layout{} but in my music expression, because now I can't change key 
signature in a piece.

If I try that it will complain that shurKey is not a markup.

Can anybody explain what the problem is?

Thanks,
Kees


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