Scheme function for alternate tagged swing stopped working

2014-12-20 Thread Christopher R. Maden
I wrote a function \sw, against LilyPond 2.12, a while back.

It takes music as an argument, and returns two copies of the music, one
tagged 'layout and one tagged 'midi.  The 'midi tagged one has eighth
notes changed to quarter-eighth triplets (i.e., swung).

I’ve run it through convert-ly a couple of times, and now, against
2.16.2, it doesn’t work.  I’m not sure when it stopped working; I was
setting reels fast enough that it was hard to hear the difference.  But
now I’m setting some hornpipes, and the difference is very clear.

The file that defines the swing function can be found at http://crism.maden.org/music/swing.ly >.

Attached is a simple test file and its output.  The first staff should
have the same passage twice, but swung the second time.  The second
staff should be straight, and the third swung.  Instead, you’ll see that
all four copies are identical, and straight.

It seems that the music internals have changed but I can’t put my finger
on how.  Any pointers would be welcome.

Thanks,
Chris
-- 
Chris Maden, text nerd  http://crism.maden.org/ >
Surround hate and force it to surrender.
GnuPG fingerprint: DB08 CF6C 2583 7F55 3BE9  A210 4A51 DBAC 5C5C 3D5E
\version "2.16.2"

\include "english.ly"
\include "swing.ly"

#(set-default-paper-size "letter")

\paper {
  top-margin = 0.5\in
  bottom-margin = 0.5\in
  left-margin = 0.75\in
  line-width = 7.25\in
  right-margin = 0.5\in
}

\header {
  title = "Swing Test"
}

passage = {
  \sw {
\relative c' {
  c4 d8 e f g a b | c4 b8 a g f e d | c1 \bar "|."
}
  }
}

\score {
  <<
\new Staff <<
  \passage
>>
\new Staff <<
  \keepWithTag #'layout {
\passage
  }
>>
\new Staff <<
  \keepWithTag #'midi {
\passage
  }
>>
  >>
  \layout {}
}


swing_test.pdf
Description: Adobe PDF document
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


RE: Re; Volta problem

2014-12-20 Thread Mark Stephen Mrotek
Jay,

The format for alternative endings: \alternative { {} {} }.

See this does what you want.

\alternative {{ g2. ~ g2.\breathe } {g2.\fermata}}

Mark

-Original Message-
From: lilypond-user-bounces+carsonmark=ca.rr@gnu.org
[mailto:lilypond-user-bounces+carsonmark=ca.rr@gnu.org] On Behalf Of Jay
Hamilton
Sent: Saturday, December 20, 2014 7:56 PM
To: Lilypond User
Subject: Re; Volta problem

I'm resetting a cello part for a student everything works except the last 3
measures.
The 1st ending should be after the tied g2. ~ g and it's not.  What have I
got wrong?  I've always hated this 'volta' thing I wish one could just
somehow put these endings in with \markup because I'm not interested in the
midi for it.
here's a snippet that shows the problem
Thanks
Jay

\version "2.18.2"
\header {
   title = "Overture- Lully"
}
#(ly:set-option 'delete-intermediate-files #t) #(set-default-paper-size
"letter" )
  #(set-global-staff-size 18)

   \paper
  {
  indent = 30
  short-indent = 15
  right-margin = 30
  top-margin = 15
  bottom-margin = 15
  }
voice = \relative c{
\key f \major
   \time 4/4  \tempo "Gravement"
\override Staff.TimeSignature #' style = #' () \override Score.BarNumber
#'break-visibility = #end-of-line-invisible \set Score.markFormatter =
#format-mark-box-numbers \clef bass \set Score.skipBars = ##t \time 3/4
  \repeat volta 2 {
\mark #80
d4 d\downbow a c d8 (c bes a)
bes4.->\downbow a8\upbow g4->\downbow
c, d2->\downbow |}
\alternative { g2. ~ g2.}\breathe {g2.\fermata}
  \bar "|."
}

\score {
 \new Staff = voice \voice

   \layout {\context {
\Score
\remove "Bar_number_engraver"
} }
   \midi { }
}

--
Thanks for reading
blogs at
https://learnivore.com/users/music#
www.soundand.com
www.themaptheopera.com
Jay

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


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


Re: First time Voices user

2014-12-20 Thread peter
> "Br" == Br Samuel Springuel  writes:


Br> 1) Some notes that don't collide (to my eye), are getting shifted
Br> as if they did.  When the same pair of notes are set as a chord,
Br> there is no shift.  Clearly there's a difference between what
Br> lilypond considers a collision between notes in separate voices
Br> and within a chord.  Can some one explain that to me?

As both cases have the same stem direction one has to be shifted.
Usually if you want two voices you either give them separate staves,
or give one the \voiceOne and the other the \voiceTwo appellations.

This also fixes your articulation problem.

Changes are to use the `natural' articulation direction (- instead of
^) and add \voiceOne and \voiceTwo for standard short score notation.

As an aside, dutch note names and \relative make data entry MUCH
faster.  See below (part 2).  And I prefer to have bars present in a
longer piece, to allow line breaking and to allow bar checks to be
added in the source, so as to not lose myself when making amendments.


\version "2.18.2"
\language "english"

mel = {bflat'2 bflat'4-- a'-- a'--}
harm = {g'2 g'4-- c'-- f'--}
global = { \key f \major }

\new Staff \with { \remove "Time_signature_engraver" }
 << \global
  \new Voice = "melody" {\voiceOne \global \mel}
  \new Voice = "harmony" {\voiceTwo \global \harm}
  >>


%%%

\version "2.18.2"

mel = \relative c'' {
bes2 bes4-- a-- a--
}
harm = \relative c'' {
 g2 g4-- c,-- f--
}
global = {\key f \major}

\score {
   \new Staff <<
\global
\context Voice = "melody" {\voiceOne \mel}
\context Voice = "harmony" {\voiceTwo \harm}
  >>
   \layout {
 \context {
   \Staff
   \remove "Time_signature_engraver"
 }
 \context {
   \Score
defaultBarType = ""
 }
   }
}   


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


Re: Re; Volta problem

2014-12-20 Thread Kieren MacMillan
Hi Jay,

> The 1st ending should be after the tied g2. ~ g and it's not.  What have I 
> got wrong?

Alternative takes a **brace-enclosed** set of [possibly brace-enclosed] 
expressions:

\alternative { { alt1 } { alt2 } }

Below is your snippet, heavily re-formatted (because I found your version very 
hard to read/follow) — note how

  \alternative { g2. ~ g2.}\breathe {g2.\fermata}

has become

  \alternative { { g2. ~ g2. \breathe } { g2.\fermata } }

which, I believe, gives you what you want.

Hope this helps!
Kieren.

p.s.
> I'm not interested in the midi for it.

Then why include the \midi {} block at all? (I’ve commented it out in my 
revision.)
_

\version "2.18.2"

#(ly:set-option 'delete-intermediate-files #t)
#(set-default-paper-size "letter" )
#(set-global-staff-size 18)

\header {
 title = "Overture- Lully"
}

\paper {
  indent = 30
  short-indent = 15
  right-margin = 30
  top-margin = 15
  bottom-margin = 15
}

voice = \relative c {
  \key f \major
  \time 4/4
  \tempo "Gravement"
  \override Staff.TimeSignature #' style = #' ()
  \override Score.BarNumber #'break-visibility = #end-of-line-invisible
  \set Score.markFormatter = #format-mark-box-numbers
  \clef bass
  \set Score.skipBars = ##t
  \time 3/4
  \repeat volta 2 {
\mark #80
d4 d\downbow a  |
c d8( c bes a)   |
bes4.->\downbow a8\upbow g4->\downbow   |
c, d2->\downbow |
  }
  \alternative { { g2. ~ g2. \breathe } { g2.\fermata } }
  \bar "|."
}

\score {
  \new Staff \voice
  \layout { \context { \Score \remove "Bar_number_engraver" } }
  %\midi { }
}
___

Kieren MacMillan, composer
www:  
email:  i...@kierenmacmillan.info


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


Re; Volta problem

2014-12-20 Thread Jay Hamilton
I'm resetting a cello part for a student everything works except the 
last 3 measures.
The 1st ending should be after the tied g2. ~ g and it's not.  What have 
I got wrong?  I've always hated this 'volta' thing I wish one could just 
somehow put these endings in with \markup because I'm not interested in 
the midi for it.

here's a snippet that shows the problem
Thanks
Jay

\version "2.18.2"
\header {
  title = "Overture- Lully"
   }
#(ly:set-option 'delete-intermediate-files #t)
#(set-default-paper-size "letter" )
 #(set-global-staff-size 18)

  \paper
 {
 indent = 30
 short-indent = 15
 right-margin = 30
 top-margin = 15
 bottom-margin = 15
 }
voice = \relative c{
\key f \major
  \time 4/4  \tempo "Gravement"
\override Staff.TimeSignature #' style = #' ()
\override Score.BarNumber #'break-visibility = #end-of-line-invisible
\set Score.markFormatter = #format-mark-box-numbers
\clef bass
\set Score.skipBars = ##t
\time 3/4
 \repeat volta 2 {
\mark #80
d4 d\downbow a c d8 (c bes a)
bes4.->\downbow a8\upbow g4->\downbow
c, d2->\downbow |}
\alternative { g2. ~ g2.}\breathe {g2.\fermata}
 \bar "|."
}

\score {
\new Staff = voice \voice

  \layout {\context {
\Score
\remove "Bar_number_engraver"
} }
  \midi { }
}

--
Thanks for reading
blogs at
https://learnivore.com/users/music#
www.soundand.com
www.themaptheopera.com
Jay

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


First time Voices user

2014-12-20 Thread Br. Samuel Springuel
So, I'm trying out voices for the first time, switching a piece I had 
written using chords for single staff polyphony to using voices.  In the 
process I have run into a couple of things I don't understand:


1) Some notes that don't collide (to my eye), are getting shifted as if 
they did.  When the same pair of notes are set as a chord, there is no 
shift.  Clearly there's a difference between what lilypond considers a 
collision between notes in separate voices and within a chord.  Can some 
one explain that to me?


2) When simultaneous notes from separate voices have the same 
articulation, the articulation is printed twice (once for each note). 
Obviously, this is desirable behavior if the notes are articulated 
differently, but is there some way for simultaneous identical 
articulations to be printed only once?  The identical articulations tend 
to make the notes look crowded.



Below is a snippet which creates two staffs showing examples of my 
confusions: the first is my test using voices, the second is the same 
music typeset using chords.



\version "2.18.2"
\language "english"

mel = {bflat'2 bflat'4^- a'^- a'^-}
harm = {g'2 g'4^- c'^- f'^-}
chorded = {2 4^- ^- ^-}
global = { \key f \major
\set Score.timing = ##f
\omit Stem }

\new Staff \with {
\remove "Time_signature_engraver"
}
<<
\global
\new Voice = "melody" {\global \mel}
\new Voice = "harmony" {\global \harm}
>>

\new Staff \with {
\remove "Time_signature_engraver"
}
{
\global
\chorded
}

--
✝
Br. Samuel, OSB
(R. Padraic Springuel)

PAX ☧ ΧΡΙΣΤΟΣ

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


Re: Adding text below the staff

2014-12-20 Thread guoguocuozuoduo
You need to remove the circumflex ^, as that shows the text should be placed 
above. A simple underline _ shows that the text should be placed below.

发自我的 iPad

> 在 2014年12月21日,下午2:25,William Marchant  写道:
> 
> The Documentation 2.1.5 shows an example of placing text below the note.
> c2^"espr" a_"legato"
> 
> When I copy this verbatim into my script it works. espr goes above the c and 
> legato goes below the a. But the following does not work.
> 
> r2 r4 a4^_"3. One"^_"2. Be -" \bar ":|"
> cs2^_"eat" r2 \bar "|."
> 
> I get the unexpected string error.
> 
> If I remove the underlines, the text goes above the notes OK, but I want it 
> below.
> What am I doing wrong?
> Bill
> 
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Adding text below the staff

2014-12-20 Thread William Marchant

The Documentation 2.1.5 shows an example of placing text below the note.

c2^"espr" a_"legato"

When I copy this verbatim into my script it works. espr goes above the c and
legato goes below the a. But the following does not work.

r2 r4 a4^_"3. One"^_"2. Be -" \bar ":|"

cs2^_"eat" r2 \bar "|."


I get the unexpected string error.


If I remove the underlines, the text goes above the notes OK, but I want 
it below.

What am I doing wrong?

Bill


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


Re: Bar numbers below staff

2014-12-20 Thread Orm Finnendahl
Hi Jay,

 try this:

%<
\version "2.19.5"

\relative c' {
  \override Score.BarNumber.break-visibility = #'#(#t #t #t)
  \override Score.BarNumber.direction = #DOWN
  c1 d e f c d e f c d e f }
%<

HTH,
Orm

Am Samstag, den 20. Dezember 2014 um 15:07:01 Uhr (-0700) schrieb Jay Hamilton:
> Hello
> Where in the manual(s) is the alignment for bar numbers below staff?  I
> found the engrave details but nothing (that I could find with my limited
> wisdom) refers to putting them below the staff.
> Thanks
> Jay
> 
> BTW gang my opera "The Map" which was completely set and somewhat composed
> with lily - 4-5 scenes of it will be performed in March.  With the hopes
> that this will create interst and  $ to produce the whole thing later.
> Jay
> 
> -- 
> Thanks for reading
> blogs at
> https://learnivore.com/users/music#
> www.soundand.com
> www.themaptheopera.com
> Jay
> 
> 
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user

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


Autochange for two voices

2014-12-20 Thread Justin
Hello,

I am trying to typeset scales for two hands on the piano like so : 
http://postimg.org/image/bq0hqyv1z/

I was able to get to this point: http://postimg.org/image/qfsrmlo85/

but I can't seem to find a way to disconnect the upper voice from the 
lower voice. I am using \autochange which I believe might be the cause 
of the issue.

Does anyone know how to properly format the music? 

Here is my current code (short version): http://pastebin.com/FAyGj0z4


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


Bar numbers below staff

2014-12-20 Thread Jay Hamilton

Hello
Where in the manual(s) is the alignment for bar numbers below staff?  I 
found the engrave details but nothing (that I could find with my limited 
wisdom) refers to putting them below the staff.

Thanks
Jay

BTW gang my opera "The Map" which was completely set and somewhat 
composed with lily - 4-5 scenes of it will be performed in March.  With 
the hopes that this will create interst and  $ to produce the whole 
thing later.

Jay

--
Thanks for reading
blogs at
https://learnivore.com/users/music#
www.soundand.com
www.themaptheopera.com
Jay


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


Re: Adjusting the absolute vertical height of staffgroup

2014-12-20 Thread Paul Morris
Werner LEMBERG wrote
>> Vertical spacing can get tricky, so here's a helpful visual guide:
>> 
>> http://lilypond.1069038.n5.nabble.com/attachment/164161/0/vertical-spacing-paper-variables.pdf
> 
> Very nice!  Do we have a comparable image in the lilypond documentation
> already?

Abraham gets the credit for making this visual guide.  I don't think we have
anything quite like it in the docs, but it would be good if we did.


Werner LEMBERG wrote
> Note that in git the command `annotate-spacing' now shows the name
> of (most of) the paper variables, too.
> 
>   https://code.google.com/p/lilypond/issues/detail?id=4195

Nice!  Thanks for that.  It will be really helpful.

-Paul





--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Adjusting-the-absolute-vertical-height-of-staffgroup-tp169450p169528.html
Sent from the User mailing list archive at Nabble.com.

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