Re: Fingering Markup Override

2011-01-08 Thread lunar7
Ah,

I see the solution. I can stack the markups after the close chord bracket
for chords like this:
a c'4^\markup \finger {9995} ^\markup \finger {9996}

Thanks!

On Sat, Jan 8, 2011 at 10:34 AM, Shane Brandes sh...@grayskies.net wrote:

 Are you applying the markup after the chord like this e g
 c4^999? This won't work  e f c^9994

 Shane

 On Fri, Jan 7, 2011 at 8:20 PM, lunar7 lun...@gmail.com wrote:
  Thanks James,
 
  The fingering markup works great for single notes (regular non-markup
 makes
  numbers a tad too big). But I seem to get an error for noteheads within
  chords cannot add text scripts to individual note heads.
 
  Anyone know of a way around this?
 
  Thanks!
 
  On Sat, Jan 8, 2011 at 3:15 AM, James Bailey 
 derhindem...@googlemail.com
  wrote:
 
  On Jan 7, 2011, at 10:49 AM, lunar7 wrote:
 
   Hello,
  
   My Max/MSP Lilypond input patch is going well but I'm stuck on one
   feature I wanted to include.
  
   I have a set of three tables per key signature I am referring to in
 the
   event a user wants to use the less likely options for how to notate a
 note
   given its MIDI pitch (i.e. note number 60 could be c, but also a bis
 or
   deses). If a user wants to toggle between options, to do this I want
 to
   initially markup the notes with index numbers using fingering markup
 for
   an unintended purpose. To my amazement, without overriding the
 fingering
   markup command accepts numbers up to 9, but anything two digits or
 above
   produces an unexpected string error.
  
   Is there a way I can override this to tag a note with any number I
 want?
   Then users can specify the note numbers they want toggled to alternate
   versions.
  c4^99
 
  if you want it to look like fingering, c^\markup \finger {999}.
 
  Hope this helps
 
  ___
  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: Bug in 2.13.x?

2011-01-08 Thread James Bailey
I can reproduce this error by including the pop-chords.ly file. Perhaps the 
problem is that, as neil says, pop-chords.ly is being included somewhere?

On Jan 8, 2011, at 1:53 AM, Tim McNamara wrote:

 I had posted previously about having .ly file fail to compile in 2.13.44-1 
 which worked in 2.12.  This was not repeatable for others.  I tried 
 downloading 2.13.45-1 and it, too, fails.  The error massage is:
 
 /Applications/LilyPond.app/Contents/Resources/share/lilypond/current/scm/chord-ignatzek-names.scm:208:9:
  In procedure chord-name-pop-markup in expression (name-root root 
 lowercase-root?):
 
 /Applications/LilyPond.app/Contents/Resources/share/lilypond/current/scm/chord-ignatzek-names.scm:208:9:
  Wrong number of arguments to #procedure chord-name-pop-markup (pitch)
 
 I had a look at the lines specified, comparing 2.13.45-1 with 2.12.3-1.
 
 Here's the lines from 2.13.45-1 (200-214):
 
 (define (ignatzek-format-exception
  root
  exception-markup
  bass-pitch
  lowercase-root?)
 
(make-line-markup
 `(
   ,(name-root root lowercase-root?)
   ,exception-markup
   .
   ,(if (ly:pitch? bass-pitch)
   (list (ly:context-property context 'chordNameSeparator)
 (name-note bass-pitch #f))
   '()
 
 
 And the comparable lines from 2.12.3-1 (188-201):
 
 (define (ignatzek-format-exception
  root
  exception-markup
  bass-pitch)
 
(make-line-markup
 `(
   ,(name-root root)
   ,exception-markup
   . 
   ,(if (ly:pitch? bass-pitch)
   (list (ly:context-property context 'chordNameSeparator)
 (name-note bass-pitch))
   '()
 
 
 I don't speak Scheme and have no idea if the differences are important or are 
 the cause of the problem I am seeing.  But there is a difference:  note that 
 in 2.13.45-1, we find:
 
 ,(name-root root lowercase-root?)
 
 whereas in 2.12.3-1 we find:
 
 ,(name-root root)
 
 Is that what the error message is complaining about (too many arguments)?  
 And, if so, why would this fail on my computer and not on the computers of 
 other people?  Compiling fails on on 2.13.44 and 2.13.45-1 with every one of 
 my files that use \chordmode.  It doesn't matter which editor I use (Emacs, 
 Aquamacs, Fraise/Smultron or the built-in editor in the Mac package).
 
 
 
 \version 2.12.2
 
 #(ly:set-option 'delete-intermediate-files #t)
 
 \paper {
indent = 0.0
ragged-last = ##f
 
 } 
 
 \header {
  title = Finn McCool
  subtitle = Concert Instruments
  composer = McNamara
  meter = Swing Ballad
  copyright = Tim McNamara 2010, All Rights Reserved
 }
 
 harmonies = \chordmode {
 
 r8 
 % 1
 bes2:min7 ges2:7
 des1:maj7
 bes2:min7 ges2:7
 des1:maj7
 
 % 5
 bes2:min7 ges2:7
 bes2:min7 ees2:7
 ees2:min7 aes2:7
 des1:maj7
 
 % 9
 ces1:min6
 ges1:maj7
 ces1:min6
 ges1:maj7
 
 % 13
 ces1:min6
 ges1:maj7
 aes1:7
 des1:maj7
 
 
 }
 
 melody = \relative c' {
 \override Staff.TimeSignature #'style = #'()
 \time 4/4
 \clef treble
 \key des\major
 
 % 1
 r1
 r1
 r1
 r1 \break
 
 % 5
 r1
 r1
 r1
 r1 \break
 % 9
 r1
 r1
 r1
 r1 \break
 
 % 13
 r1
 r1
 r1
 r1 \break
 
 \bar :|
 
 }
 
 
 
 \score 
 
 {
  
 
\new ChordNames {
  \set chordChanges = ##t
  \harmonies
}
\new Staff \melody
 
 
 }
 
 
 
 
 
 ___
 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: Templates for Chant again

2011-01-08 Thread Federico Bruni
Il giorno ven, 07/01/2011 alle 20.37 -0500, Michael Dykes ha scritto:
 The attached file is *almost* what I want, but the measures are
 out-of-place. Any help would be appreciated. Thanks.
 

Because each measure has a different total duration: the first measure
is 11/4, the second is 9/4 and so on.
LilyPond is expecting a 16/4 time.


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


Re: Templates for Chant again

2011-01-08 Thread Michael Dykes
I have an attached file that works very well, except (since I am not too
terribly familiar with this template) I am not sure where  how to insert
the commands for midi in all staves. If I can get that, then I will
have *exactly
*what I need. Thanks again for all the help.

-- 
In Christ,
Michael D
% Version 2.1
% Last edit: March 16, 2006
% The music and words produced by this source code are believed
% to be in the public domain in the United States. The source
% code itself is covered by the Creative Commons Attribution-
% NonCommercial license, 
% http://creativecommons.org/licenses/by-nc/2.5/
% Attribution: Geoff Horton

%  This is a template for standard 4-part hymns. It contains most
%  common options. Comment out the ones you don't need.

\version 2.8.0
\include english.ly

#(set-default-paper-size letter)
#(set-global-staff-size 24)
#(ly:set-option (quote no-point-and-click))

title = Octoëchos ~ Hymns of the Resurrection
subtitle = Sticheron Template ~ Tone 1
composer = Vespers/Matins
meter = Tone 1
arranger = 
piece = Kievan Chant
poet = 
translator = 
musiccopyright = 
textcopyright = 

world = {
  \key g \major
  \override Staff.TimeSignature #'stencil = ##f
  
  \cadenzaOn
}

sop = \relative c'' {
  \world
  % Enter the music here.
  a2 b2 a\breve fs4 g fs e2 \bar |
  g\breve fs4 g2 a fs \bar |
  a\breve g2 fs \bar |
  g\breve fs2 g a g fs \bar||
  a\breve g2 fs e1 \bar||
}


alto = \relative c' {
  \world
  % Enter the music here.
  d2 g d\breve d4 g d e2 \bar |
  g\breve d4 g2 d d \bar |
  d\breve d2 d \bar |
  g\breve d2 d fs g d \bar||
  a\breve b2 b e1 \bar||
}

tenor = \relative c' {
  \world
  % Enter the music here.
  a2 b2 a\breve fs4 g fs e2 \bar |
  g\breve fs4 g2 a fs \bar |
  a\breve g2 fs \bar |
  g\breve fs2 g a g fs \bar||
  a\breve g2 fs e1 \bar||
}

bass = \relative c {
  \world
  % Enter the music here.
  d2 g d\breve d4 g d e2 \bar |
  g\breve d4 g2 d d \bar |
  d\breve d2 d \bar |
  g\breve d2 d fs g d \bar||
  a\breve b2 b e1 \bar||
}

verseOne = \lyricmode {
  \set stanza = 

}

\markup {
  \column {
\fill-line { \large \bold \title } % title
\fill-line { \caps \piece   % piece
 \caps \composer  % composer
  }
\fill-line { \meter  % meter
 \arranger   % arranger
  }
\fill-line {   \musiccopyright }
  }
}

\score {
  \context ChoirStaff 
\context Staff = upper 
  \context Voice =
 sopranos { \voiceOne  \sop  }
  \context Voice =
 altos { \voiceTwo  \alto  }

\context Staff = lower 
  \clef bass
  \context Voice =
tenors { \voiceOne  \tenor  }
  \context Voice =
basses { \voiceTwo  \bass  }


  \layout {
\context {
  \Score
  %  Turns off bar numbering
  \remove Bar_number_engraver
}
\context {
  
}
  }
}


\markup { 
  \normalsize {
\fill-line {
  \hspace #3.0
  \line {
\column {
  
}
  }
  \hspace #3.0
}
  }
}

\markup {
  \fill-line {
 
\column {
  \small \caps \poet % poet
  \small \caps \translator % translator
}
  }
  \fill-line {   \small \textcopyright }
}



\paper {
  ragged-bottom = ##t
  top-margin = 0.25\in
  bottom-margin = 0.25\in
}

%{
  Source info goes here.
  “  ”   (real quotation marks for easy cut-and-pasting)
  © for cut-and-pasting.
  Revision history: 
  3-23-06 Added licensing info, revised title layout system
%}

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


beaming in 2.13

2011-01-08 Thread Peter Van Kranenburg

Hello all,

I'm typesetting a piece in 4/4, and I want the eight notes beamed in 
groups of two instead of four. So, according to the notation manual, at 
the very beginning of my score, I say:


\set Score.baseMoment = #(ly:make-moment 1 8)
\set Score.beatStructure = #'(2 2 2 2)

This code is accepted by Lilypond, but the eights are still beamed in 
groups of four. What am I doing wrong?


I'm using 2.13.44

Thanks,

Peter van Kranenburg


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


Re: beaming in 2.13

2011-01-08 Thread David Kastrup
Peter Van Kranenburg peter.van.kranenb...@meertens.knaw.nl writes:

 Hello all,

 I'm typesetting a piece in 4/4, and I want the eight notes beamed in
 groups of two instead of four. So, according to the notation manual,
 at the very beginning of my score, I say:

 \set Score.baseMoment = #(ly:make-moment 1 8)
 \set Score.beatStructure = #'(2 2 2 2)

 This code is accepted by Lilypond, but the eights are still beamed in
 groups of four. What am I doing wrong?

\time will reset them.

-- 
David Kastrup


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


Re: beaming in 2.13

2011-01-08 Thread Xavier Scheuer
On 9 January 2011 00:04, Peter Van Kranenburg
peter.van.kranenb...@meertens.knaw.nl wrote:

 Hello all,

 I'm typesetting a piece in 4/4, and I want the eight notes beamed in groups
 of two instead of four. So, according to the notation manual, at the very
 beginning of my score, I say:

 \set Score.baseMoment = #(ly:make-moment 1 8)
 \set Score.beatStructure = #'(2 2 2 2)

 This code is accepted by Lilypond, but the eights are still beamed in groups
 of four. What am I doing wrong?

You need to clear beamExceptions also.

  \set Timing.beamExceptions = #'()

  Most automatic beaming settings for a time signature contain an entry
  for beamExceptions. For example, 4/4 time tries to beam the measure in
  two if there are only eighth notes. The beamExceptions rule can
  override the beatStructure setting if beamExceptions is not reset.

This has been added to the doc by Carl very recently.
Did you have a look at latest version of the doc?
NR 1.2.4 Beams  Setting automatic beam behavior
http://lilypond.org/doc/v2.13/Documentation/notation/beams.html

Cheers,
Xavier

-- 
Xavier Scheuer x.sche...@gmail.com

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


Re: beaming in 2.13

2011-01-08 Thread Peter Van Kranenburg

On 1/9/11 12:21 AM, Xavier Scheuer wrote:

You need to clear beamExceptions also.

   \set Timing.beamExceptions = #'()

   Most automatic beaming settings for a time signature contain an entry
   for beamExceptions. For example, 4/4 time tries to beam the measure in
   two if there are only eighth notes. The beamExceptions rule can
   override the beatStructure setting if beamExceptions is not reset.

This has been added to the doc by Carl very recently.
Did you have a look at latest version of the doc?
NR 1.2.4 Beams  Setting automatic beam behavior
http://lilypond.org/doc/v2.13/Documentation/notation/beams.html


That solved it. Thanks.
I just followed the snipped with the 5/4 example without reading the 
entire section.


best,
Peter


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


Fixed font size.

2011-01-08 Thread Phil Burfitt

Hello,

Is there a way to define a font size that is fixed and does not scale 
according to the global-staff-size?


Regards,
Phil.


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


beaming in 2.13 - other question

2011-01-08 Thread Peter Van Kranenburg

Dear all,

Consider the following example (adapted from the manual):

\version 2.13.44
\relative c'' {
\time 3/16
\set Timing.beatStructure = #'(2 1)
\set Timing.beamExceptions =
  #'( ;start of alist
 (end .   ;entry for end of beams
  (   ;start of alist of end points
   ((1 . 32) . (6))   ;rule for 1/32 beams
  ))) %close all entries
c16 c c |
c32 c c c c c |
c32 c c c c16 |
}

In the third bar, the 16th is connected to the 32s, while the rule for 
16th's says that the third sixteenth should be unbeamed.


Is there a precedence in rules? How to influence that?

best,
Peter


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


function looksSlower from LSR produces many warnings

2011-01-08 Thread Marc Mouries
I am using the function looksSlower from the snippet 
http://lsr.dsi.unimi.it/LSR/Item?id=305

and when i use it, it produces many warnings such as:
- warning: stem does not fit in beam
- warning: beam was started here

I tested the snippet and it does not produce those warning because it 
does not use custom beam


This function is very, very handy to learn music written with complex 
rhythm especially in 1/32 and 1/64 notes.


It is going to work with so many custom beams?

The function makes the music look 1 time slower. I was able to make it 
look 2 times slower by changing one of the number but I was wondering if 
is possible to pass the number as an argument?

looksTwoTimesSlower =
#(define-music-function (parser location music) (ly:music?)
  (let ((new-music (ly:music-deep-copy music)))
   (shift-duration-log new-music -2 0)
   new-music))


\version 2.13.45
\language english
\paper {  indent = 0.0 }
\header {
title = Sonata I BWV 1001
piece = 1. Adagio
}


looksOneTimeSlower =
#(define-music-function (parser location music) (ly:music?)
  (let ((new-music (ly:music-deep-copy music)))
   (shift-duration-log new-music -1 0)
   new-music))


melody = \relative g'' {
 {
%{ Main Voice %}
%{ 1 %}  bf, g'4 ~ g'32 [f (ef d c bf a bf64 g ) ] g8 [ fs ] ~ fs32 [ e ( d e fs g a c64 bf )]
%{ 2 %}  c8 ~ [ c32 d64 ( c bf32 c ] c16. \trill [ bf64 c d16 a )] g'8 r32 g,32 ( [ a64 bf c d ] ef8 ) [ bf ]
}
 \\  { %{ Voice 2 %}
%{ 1 %}  g, d'8  s8 s4 a  s4
%{ 2 %}  d8 s8 s4 g,8 s8 r8 g'8
}
 \\ { %{ Voice 3 %}
%{ 1 %}  s4 s4 c4 s4
%{ 2 %}  fs4 s4 d, bf'8 s4.
}
 
}
\score {
	\context Staff { 
		\clef treble
		\key d \minor
		\time 4/4
		\melody
		\looksOneTimeSlower \melody
}
	\layout { }
}
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: notes in voices collide

2011-01-08 Thread Nick Payne

On 09/01/11 13:44, Marc Mouries wrote:

\language english
\paper {  indent = 0.0 }
\header {
 title = Sonata I BWV 1001
 piece = 1. Adagio
}
melody = \relative g'' {
  {
%{ Main Voice %}
%{ 1 %}bf, g'4 ~ g'32 [f (ef d c bf a bf64 g ) ] g8 [ fs ] ~ fs32 [ e ( d e 
fs g a c64 bf )]
%{ 2 %}  c8 ~ [ c32 d64 ( c bf32 c ] c16. \trill [ bf64 c d16 a )] g'8 r32 g,32 
( [ a64 bf c d ] ef8 ) [ bf ]
}
  \\  { %{ Voice 2 %}
%{ 1 %}g, d'8  s8 s4 a  s4
%{ 2 %}  d8 s8 s4 g,8 s8 r8 g'8
}
  \\ { %{ Voice 3 %}
%{ 1 %}  s4 s4 c4 s4
%{ 2 %}  fs4 s4d, bf'8 s4.
}
  
}
\score {
\context Staff {
\clef treble
\key d \minor
\time 4/4
\melody
 }
\layout { }
}


Look up \shiftOn \shiftOnn etc in the documentation. If you apply that 
to the G in the middle voice it fixes the collision.


Nick

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