Defining event classes programmatically

2010-08-08 Thread Mike Solomon
Hey all,
I've been using several examples of user-end-defined engravers to define
my own and none of them, as far as I know, define event classes that are
then listened to by said engravers.  Looking at the source, I see that in
scm/define-event-classes this is done around line 65, but it is not publicly
accessible.  Is there a way to do this programmatically?

Thanks!
~Mike



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


ottava bracket above markups

2010-08-08 Thread Ole Schmidt
Hi,

Is it possible to set the ottava bracket -- above the markups?

thanks

ole


%%%
\version "2.13.7"
\new Staff \relative c'' { c^\markup {1}
 d \ottava #1 
 e^\markup {2}
 f^\markup {3} 
 g a b c }
%%

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


repeating identical tempos

2010-08-08 Thread Paul Scott
Hi,

2.13.29

Apparently if there are two \tempo's in sequence the second one will not be 
printed.

\version "2.13.29"

{ 
  \tempo \markup{ Tempo } a'1 a' a' 
  s1*0^\markup{ Tempo } a'1 a' 
  \tempo \markup{ Tempo } a' a' 
  \tempo \markup{ Tempoa } a' a' 
  \tempo \markup{ Tempo } a' a' 
}

I'll submit this as a bug if I haven't done something silly.

Paul Scott




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


Re: Beam settings in 2.13.29

2010-08-08 Thread Trevor Daniels


Nick Payne wrote Saturday, August 07, 2010 12:22 AM

I also notice that when I turn off the beamExceptions the beaming 
goes a

bit haywire. Have a look at bars 5 and 6 after I have used \set
beamExceptions = #'():


This is due to erroneous ly input; see below:


\version "2.13.29"

changeBeamingA = \overrideTimeSignatureSettings
  #'Score
  #'(2 . 4)  % time signature fraction
  #'(1 . 8)  % base moment fraction
  #'(1)% beatStructure


This should be
   #'(1 1 1 1)  % base moment fraction
if you want beams grouped in quavers else only
the first 1/8 is a separate beam group.

Or, if you want the default to beam the whole bar you need
   #'(1 . 2)  % base moment fraction
   #'(1)% beatStructure


  #'((end . (((1 . 16) . (2 2 2 2))
   ((1 . 24) . (3 3 3 3))
   ((1 . 32) . (4 4 4 4))
   ((1 . 48) . (6 6 6 6) % beamExceptions

changeBeamingB = \set beamExceptions =
  #'((end . (((1 . 16) . (2 2 2 2))
 ((1 . 24) . (3 3 3 3))
 ((1 . 32) . (4 4 4 4))
 ((1 . 48) . (6 6 6 6) % beamExceptions

revertBeaming = \set beamExceptions = #'()

\relative c'' {
\set tupletSpannerDuration = #(ly:make-moment 1 8)
\changeBeamingA
\time 2/4
\repeat unfold 8 c16
\times 2/3 { \repeat unfold 12 c16 }
\repeat unfold 16 c32
\times 4/6 { \repeat unfold 24 c32 }
\revertBeaming
\break \repeat unfold 8 c16 \repeat unfold 16 c32
\changeBeamingB
\repeat unfold 8 c16
\times 2/3 { \repeat unfold 12 c16 }
\repeat unfold 16 c32
\times 4/6 { \repeat unfold 24 c32 }
}





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


Re: Lilypond performance

2010-08-08 Thread David Kastrup
Graham Percival  writes:

> On Thu, Aug 05, 2010 at 05:26:15AM -0700, ornello wrote:
>> In my installation, Lilypond runtime seems to increase exponentially (at
>> least not linearly) with the number of pages to engrave. Is there any option
>> to speed up Lilypond, e.g. by removing time-consuming engravers, such that
>> the performance only increases (almost) linearly with the number of pages?
>  
> There's a section in the Learning manual called "speeding up
> lilypond", or something like that.  This sounds like a good place
> to look.

Essentially exponential behavior can't really be cured with anything
except fixing the algorithm.

-- 
David Kastrup


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


Re: ottava bracket above markups

2010-08-08 Thread Nick Payne

\version "2.13.7"
\new Staff \relative c'' {
\override TextScript #'outside-staff-priority = #399
c^\markup {1}
d \ottava #1
e^\markup {2}
f^\markup {3}
g a b c }

On 09/08/10 01:03, Ole Schmidt wrote:

Hi,

Is it possible to set the ottava bracket -- above the markups?

thanks

ole


%%%
\version "2.13.7"
\new Staff \relative c'' { c^\markup {1}
  d \ottava #1
  e^\markup {2}
  f^\markup {3}
  g a b c }
%%

%


___
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: ottava bracket above markups

2010-08-08 Thread Xavier Scheuer
On 8 August 2010 17:03, Ole Schmidt  wrote:
> Hi,
>
> Is it possible to set the ottava bracket -- above the markups?
>

Hi!

Change the value of OttavaBracket #'outside-staff-priority to something
*strictly* higher than 450 (451 for example)
  \override Staff.OttavaBracket #'outside-staff-priority = #451

  OR

Change the value of TextScript #'outside-staff-priority to something
*strictly* _lower_ than 400 (399 for example).
  \override TextScript #'outside-staff-priority = #399

But in your case why not use Fingering instead of \markup ?
That seems more logical, isn't it?

\new Staff {
  \relative c'' {
c-1
d \ottava #1
e-2
f-3
g a b c
  }
}


Cheers,
Xavier

-- 
Xavier Scheuer 

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


Re: repeating identical tempos

2010-08-08 Thread Xavier Scheuer
On 8 August 2010 01:23, Paul Scott  wrote:
>
> Hi,
>
> 2.13.29
>
> Apparently if there are two \tempo's in sequence the second one will
> not be printed.
>
> \version "2.13.29"
>
> {
>  \tempo \markup{ Tempo } a'1 a' a'
>  s1*0^\markup{ Tempo } a'1 a'
>  \tempo \markup{ Tempo } a' a'
>  \tempo \markup{ Tempoa } a' a'
>  \tempo \markup{ Tempo } a' a'
> }
>
> I'll submit this as a bug if I haven't done something silly.
>

That's a good idea IMO.
It has also been reported on the French users mailing list, IIRC.

Cheers,
Xavier

--
Xavier Scheuer 

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


Re: Lilypond to typeset solfa style Indian music

2010-08-08 Thread ananth p
Amico,

Thanks for pointing out CarMusTy. It seems to be in the earlier stages of
development. Interestingly it uses Latex (xetex) under the hood. I was
looking for either Latex or Lily solution. Will keep a note of it and try it
out when a working version is ready.

My turn - there's another Carnatic Music Typesetter, an online app here:
http://arunk.freepgs.com/cmnt/newsong.html

and this page describes the tool and there are some examples too.
http://arunk.freepgs.com/wordpress/cm-typesetter/about/

This is also an interesting tool, where you type in your notes and lyrics in
English/phonetic, and it can generate notation in Devanagiri/Hindi, Tamil,
Telugu, Kannada, and Malayalam.

One minor drawback in this (and similar) Indian notation tools is, the
output is not flexible or customizable. They generate notation like fixed
tables, 4 notes - 4 notes - 4 notes 'phrasing' doesn't exist. Lilypond
excels in spacing and phrasing. With Latex, it should be possible with some
tweaking.

Thanks for sharing.

Ananth

On Fri, Aug 6, 2010 at 1:10 PM, Amico De Bellezza <
nighthawkmail...@googlemail.com> wrote:

>
> I was also looking for similar editors for indian music notation for quite
> some and just couple of days back came across this
> http://gpalem.web.officelive.com/CarMusTy.html
>
> Looks promising, but seems the work in still going on. May be you can take
> a look at it and see if it comes close. Here is what it says on that site:
>
> CarMusTy is an all in one environment for typesetting Carnatic music Books.
> It is a one stop solution to edit Carnatic music notation files, generate
> MIDI files and typeset portable document format books. The advantages of
> using CarMusTy for typesetting the Carnatic music, as opposed to using any
> other editing application (such as Word or other music typesetting systems)
> are:
>
>- CarMusTy allows *Phonetic 
> Transliteration*of notation and lyrics. 
> That is, you can enter Carnatic music notation and
>lyrics once in phonetic english and let CarMuty transliterate the content
>into multiple languages, such as Telugu, Kannada, Tamil, Hindi etc on the
>fly.
>- CarMusTy is compatible with 
> *CFugue*Carnatic music 
> programming library, which means that the notation you enter
>in CarMusTy is actually capable of producing music!! Yes, CarMusTy can
>generate MIDI files from your song notation automatically.
>- Numerous settings are provided in the application to customize the
>appearance of song notation and lyrics. CarMusTy generates PDF Books
>customized to your preferences and the inbuilt PDF preview window helps you
>see the output on the fly.
>- Songs in CarMusTy environment support various attributes, such as
>Raga, Tala, Author, Composer etc., which will be automatically indexed by
>CarMusTy and inserted in the generated PDF book.
>- CarMusTy supports Templates to ease the work of creating new books
>based on existing documents, and it ships with numerous Default templates
>that help new beginners jump start with working on it with ease.
>
>  Note that CarMusTy is a typesetting environment, and not a word
> processing application. While word processors, such as Microsoft Word,
> OpenOffice Word etc., help you create and edit documents, typesetting
> applications, such as CarMusTy, help you publish Books. The difference is
> the typography finesse. For a book to have the professional level of
> acceptance, its typography must meet the accepted publishing standards.
> CarMusTy fully supports the Metric, US and British publishing standards and
> is built on top of the powerful TEX layout system.
>
>
>
>
>
> ___
> 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