Re: Lilypond on iPhone

2010-02-06 Thread Bertalan Fodor
I'm close to finish a lilypond webservice that could be used on the internet or 
in the local network. I think that would be ideal for that  as can be used from 
any browser.

  Original message  
From: Eric Knapp 
Sent: 5 Feb 2010 21:37 -08:00
To:  
Subject: Re: Lilypond on iPhone

On Thursday, February 4, 2010, Dave Addey  wrote:
>
>
> Hi all,
>
> I’m wondering if anyone has built or tried to build the Lilypond library for 
> the iPhone platform, to render engraved music on an iPhone-OS-powered device? 
>  I’m considering this for an upcoming project, and wanted to ask a few 
> questions before diving in to trying it myself.  Here goes:
>
> 1) How do you rate my chances of getting Lilypond to compile for the 
> ARM-based iPhone OS, especially given the number of libraries it depends on?
>
> 2) Would there be any licensing issues in using Lilypond (and dependent 
> libraries) in a paid app on a closed platform such as the iPhone?
>
> 3) What’s the likely performance of rendering .ly files on a lower-powered 
> (and lower-memory) device such as an iPhone or iPod Touch? Is it likely to 
> take seconds, minutes or hours?  How about on an iPad?  (I’m looking for 
> rough guesses here, before I go through the pain of attempting compilation.)
>
> 4) If performance is likely to be a no-go, what are my best alternative? 
> Server-side PDF generation for delivery to a device?
>
> Any thoughts or ideas much appreciated.  I’ve a fair bit of experience in Mac 
> open-source development (I wrote much of the audio code for Handbrake), but 
> I’m new to Lilypond, so would be starting from scratch in compiling it.
>
> Thanks!
>
> Dave.
>
>

I'm working on this idea for the upcoming iPad. I would love to be
able to sit with my instrument and notate with the iPad on a stand or
table. The first approach I'm going to try is with a RESTful web
service backend app running on my desk computer. If I don't get the
performance I want with that, I'll create a Cocoa server app with
direct sockets.

This seems like a very doable project and I'm looking forward to
giving it a try. Waiting for my iPad!

-Eric


___
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: Lilypond on iPhone

2010-02-06 Thread Arjan Bos

On 4 feb 2010, at 21:53, Dave Addey wrote:

> Hi all,
> 
> I’m wondering if anyone has built or tried to build the Lilypond library for 
> the iPhone platform, to render engraved music on an iPhone-OS-powered device? 
>  I’m considering this for an upcoming project, and wanted to ask a few 
> questions before diving in to trying it myself.  Here goes:
> 
> 1) How do you rate my chances of getting Lilypond to compile for the 
> ARM-based iPhone OS, especially given the number of libraries it depends on?
> 
> 2) Would there be any licensing issues in using Lilypond (and dependent 
> libraries) in a paid app on a closed platform such as the iPhone?

IIRC, the iPhone developer license states that it does not allow any 
interpreters on the iPhone. That's how they keep flash off the iPhone, but also 
for example, a Commodore 64 emulator. And since, as we all know, you can do 
anything in lilypond, thanks to the guile interpreter, my guess is that a 
LilyPond iPhone App won't make it to the App Store.

But it would be a nice challenge to get it working!

Arjan

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


Re: polymetric parts - ???BUG???

2010-02-06 Thread Philippe Hezaine

Werner a écrit :


Try the following test-file.


Note: version 2.12.2
Just for the record even anywhere you put a \break in your file
with an empty layout the right-margin is not taken in account.
set-global-staff-size doen't matter.
Possibly it bears a rapport to...
However I cannot try in 2.13
--
   Phil.

\version "2.12.2"

\paper {
	#(set-paper-size "a4")
	top-margin = 0.5\cm
	bottom-margin = 2\cm
	left-margin = 2\cm
	right-margin = 2\cm 
 	ragged-last-bottom = ##t
	}

#(set-global-staff-size 19)


 \header {
	tagline = \markup \fontsize #-2 "Notensatz mit dem freien Programm LilyPond (www.lilypond.org)"
	}

 \include "deutsch.ly"

Cello = \relative c {
  \clef bass
  \key c \major

 \time 3/4
\mark Cis
	e8 a~ a gis c4 | 
	r8 e, a4 gis8 c~ | 
\break
	c e, a8. gis16 c4 | 
	e,8 a r16 gis c8 des a | 
\break
\mark D
% pos already 2/4
	gis8 d e4 
	e,4
	r2 r4
	\bar "||"
\break
\mark Dis
% both 2/4
 \time 2/4
	a4 cis | 
	d d8 cis | d e f a | 
	a \breathe e a b | 
	c d b a | 
	gis f e d | 

	}

Posaune = \relative c {
  \clef bass
  \key c \major

 \time 3/4
\mark Cis
	r4 r8 c, f8. e16 | 
	gis4 c,8 f~ f e | 
	gis4 c,8 f r16 e gis8~ | 
	gis c, f2 
	\bar "||" 

\mark D
 \time 2/4 
% vc still 3/4

	e4 gis |
	a4 a8 gis |
	a8 c d f | 

\mark Dis
% both 2/4
	e4 \breathe e | 
	f e | 
	d c~ | 
	c f,~ | 
	f e | 
	d2 | 

	}

\score {
  <<
\new Staff { \set Staff.instrumentName = #"Violoncello" 
\set Staff.shortInstrumentName = #"c"
	\Cello  }
\new Staff { \set Staff.instrumentName = #"Posaune" 
\set Staff.shortInstrumentName = #"p"
	\Posaune  }

% % % % 	\set Score.skipBars = ##t
 >>
\layout { }

}

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


Re: Easy noteheads

2010-02-06 Thread Robert Clausecker
I'm sorry. There's no problem with lilypond, but possiby with my
SVG-program (Eyes of gnome, I don't know wich backend they use). Viewing
the file with Inkscape or Opera is no problem.

Yours, Robert



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


Re: vertical spacing

2010-02-06 Thread Ole Schmidt

>  \paper {
>before-title-spacing = #'((space . 20))
>  }

that worked, thanks!
I could not find that one in the docs btw
> 
> If you don't have a title between two \score blocks, then you would use
> "between-scores-system-spacing" (and not between-system-spacing, be
> careful of the name, which is similar but the first one is about
> spacing between two systems **if they are in different scores**).
> 
nor did I find that one...
> 
>> 
> I also changed the indentation (which software do you use to input .ly
> files, that produced this indentation?).
I use Jedit/Lilypondtool.
if you could give me a hint how to configure jedit properly I would be 
greatful:-)
> 
> PS: "Kurzfassung" as opus seems a bit odd in the result...  ;
I found that whole using-header-whithin-book complex and 
what-is-displayed-and-what-is-not-displayed
 somewhat confusing and "Opus" did work...


ole





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


Re: Minor - Major

2010-02-06 Thread Neil Puttock
On 6 February 2010 12:39, Éric Bouvéron  wrote:
> Hi,
> I whish to align the symbols major and minor with the chords names. There is
> no problem for minor, but I can't find a way to put the major symbol on the
> same level.

\set majorSevenSymbol = \markup { \lower #1.5 \whiteTriangleMarkup }

Regards,
Neil


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


Re: polymetric parts - ???BUG???

2010-02-06 Thread Werner
> That's too large.

OK

Just try to uncomment the 3-5th line from the end - lilypond will fail.

\version "2.13.12"

Cello = \relative c {
\clef bass
\key c 
\major
\time 3/4
c4 c c
c c c
% pos already 2/4
c c c
c c c
\bar "||"
% both 2/4
\time 2/4
c c
c c
c c
}



Posaune = \relative c {
\clef bass
\key c 
\major
\time 3/4
c4 c c
c c c
\bar "||" 
\time 2/4 
% vc still 3/4
c c
c c
c c
% both 2/4
c c
c c
c c
}

\score {
  <<
\new Staff \Cello
\new Staff \Posaune
>>
\layout {
  \context {
\Score
\remove "Timing_translator"
\remove "Default_bar_line_engraver"
  }
  \context {
\Staff
\consists "Timing_translator"
\consists "Default_bar_line_engraver"
  }
%\context { \RemoveEmptyStaffContext 
%  \override VerticalAxisGroup #'remove-first = ##t
%  }
  }
}







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


Re: polymetric parts - ???BUG???

2010-02-06 Thread Neil Puttock
On 6 February 2010 13:30, Werner  wrote:

> Just try to uncomment the 3-5th line from the end - lilypond will fail.

\RemoveEmptyStaffContext overwrites \Staff context settings, which
means the Timing_translator and Default_bar_line_engraver aren't
added.  See the warning at the bottom of this page:

http://lilypond.org/doc/v2.13/Documentation/notation/changing-context-default-settings#Changing-context-default-settings

Regards,
Neil


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


three questions in one

2010-02-06 Thread 胡海鹏 - Hu Haipeng
Hello,
  Here're three problems:
  1. The recent devel versions can't work properly. Under XP, if I press enter 
on the file attaached (and all other files), both 2.13.11 and 12 gives out 
abort message, saying whatever RAM can't be "read".
  2. When running 2.13.12, the warning before its abort tells me that 
skip_event_swallow_translator is changed. But when I look up it in IR, I can't 
get a clue. Also, when I look up the LM, the template only gives \new Dynamics 
without any tweaking. Does it mean this context has been added to LP's built-in 
functionality? I need to know it because there're some contexts I created as 
this kind, e.g., one for tempo and rehearsal marks, and one for functional 
chord indication markups.
  3. \RemoveEmptyRhythmicStaffContext seems not available. I still use 2.13.7. 
Was it added after it?

Regards
Haipeng

** calling.ly **
\version "2.13.7"
% it's actually modified from 2.11.42

\header {
  tagline = ##f
  dedication = \markup { \bold "DEDICATED TO MY CLASSMATES IN THE COLLEGE FOR 
ADULTS" }
  title = \markup { \fontsize #2 "Calling" }
  composer = \markup { \fontsize #3 \bold "Hu Haipeng" }
  copyright = "?2006, All Rights Reserved"
}

  upper = \relative c'' {
\clef treble \key fis \minor \time 2/2 \tempo 2=48
8\(^\markup { \column { \bold \italic "Andante Espressivo" \bold 
"Rubato Recitativo" } } 4.\) |
8\(<< { 16  } \\ { 
d,8 } >> 4.\) |
\time 3/2 8\( 
4 8 2\)\arpeggio |
\time 5/4 << { 8\(  4\arpeggio a8\arpeggio 
fis4. ~ fis4\) } \\ { s4 cis8\arpeggio b 2.\arpeggio } >> |
\time 2/2 8\( 4.\) |
8\(^\markup { \bold \italic "Stretto Appasionato" }  
  << { b16 a\upmordent } \\ { 8 } >> 4.\) 
|
\time 5/4 << { 8\(  ^\markup { \bold 
\italic "Rit." }  fis16->\>\arpeggio e cis8 ~ cis2\)\!\fermata } 
\\ { s2 2.\arpeggio\fermata } >> |
\time 2/2 << { 8\(^\markup { \bold \italic "A Tempo" }  
  b16 a fis4.\) } \\ { s2  } >> |
<< { 8\(^\markup { \bold \italic "Sostenuto" }b16->\arpeggio a fis4.\) } \\ { s2 \arpeggio } >> |
\time 3/2 << { a8->\(\>\arpeggio fis4.\)\! a8\(\>\arpeggio fis4. ~ 
fis2\)\!\fermata } \\ { 2\arpeggio 1\arpeggio } >> \bar "|."
  }

  lower = \relative c {
\clef bass \key fis \minor \time 2/2
8 
4. |
82\arpeggio |
8 
4 8 2\arpeggio |
8  4\arpeggio 2.\arpeggio |
8 4. |
82\arpeggio |
82.\arpeggio\fermata |
82 |
82->\arpeggio |
2\arpeggio 1\arpeggio\fermata \bar "|."
  }

  dynamics = {
s1\mf | s | s1. | \dimTextDim s4\> s4 s2.\!\p |
s1\mf\< | s | s2 s2.\!\f |
\dimHairpin s1\mp | s4\< s4 s2\!\> | s2\p s1\pp |
  }

  \score {
\new PianoStaff <<
\set PianoStaff.connectArpeggios = ##t
  \new Staff = "upper" \upper
  \new Dynamics = "dynamics" \dynamics
  \new Staff = "lower" { \lower }
>>
\header {
  piece = \markup { \bold "Composed on April 26, 2006" }
}
\layout {
  \context {
\type "Engraver_group"
\name Dynamics
\alias Voice
\consists "Output_property_engraver"
\consists "Skip_event_swallow_translator"
\consists "Axis_group_engraver"
\consists "Piano_pedal_engraver"
pedalSustainStrings = #'("Ped." "*Ped." "*")
pedalUnaCordaStrings = #'("una corda" "" "tre corde")
\consists "Script_engraver"
\consists "New_dynamic_engraver"
\consists "Dynamic_align_engraver"
\consists "Text_engraver"
\consists "Text_spanner_engraver"
\override VerticalAxisGroup #'minimum-Y-extent = #'(-1 . 1)
\override DynamicLineSpanner #'Y-offset = #0
\override TextScript #'font-size = #2
\override TextSpanner #'bound-details #'left #'stencil-align-dir-y = 
#CENTER
\override TextScript #'font-shape = #'italic
\override TextSpanner #'breakable = ##t
\override DynamicLineSpanner #'breakable = ##t
\override DynamicTextSpanner #'breakable = ##t
  }
  \context {
\PianoStaff
\accepts Dynamics
  }
  \context {
\Staff
\consists Span_arpeggio_engraver
  }
}
  }

  \score {
\new PianoStaff <<
  \new Staff = "upper" << \upper \dynamics >>
  \new Staff = "lower" << \lower \dynamics >>
>>
\midi { }
  }

 



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


Re: Centering of columnar text on page broken in 2.13.12

2010-02-06 Thread Neil Puttock
On 5 February 2010 02:50, Patrick McCarty  wrote:

> Is there a way we can fix "\column \center-align" but keep the bugfix
> for \fill-line?
>
> I'll admit that I did not check the regtests when I pushed that
> commit.  :-(  Sorry.

No problem, I think pushing Alexander's patch was the right decision.
I had checked the regtests, and nothing broke, so we obviously don't
have any test which combines \fill-line with \center-column.

I think this just reveals another case of issue #732.

Cheers,
Neil


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


Lilypond to MusicXML (was: Re: New Sibelius to LilyPond conversion suite)

2010-02-06 Thread Martin Tarenskeen


Everyone will agree having not only musicxml2ly but also a Lilypond to 
MusicXML converter would be cool.


I remember a similar discussion some time ago in the Mup mailing list. The 
Mup developers from Arkkra Enterprises were saying it would probably be 
less work to add musicxml export as an extra output option inside mup, 
while a musicxml-to-mup converter would be easier to realize with a 
separate application.


Could this also be true for Lilypond ? Would it be better/easier to have a 
--musicxml output option ( just like --png --ps and --pdf ) instead of a 
separate application that has to be written from scratch ? Maybe then the 
conversion can re-use some of the lilypond parsing code that is already 
available ?


I'm not a programmer ( or at least not a very good one ;-) ) but wanted to 
post the suggestion anyway. Maybe someone will be inspired to make a start 
with this difficult task ... :-)


--

Martin Tarenskeen


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


Re: Lilypond to MusicXML (was: Re: New Sibelius to LilyPond conversion suite)

2010-02-06 Thread Graham Percival
On Sat, Feb 06, 2010 at 04:18:54PM +0100, Martin Tarenskeen wrote:
> Could this also be true for Lilypond ? Would it be better/easier to have 
> a --musicxml output option ( just like --png --ps and --pdf ) instead of 
> a separate application that has to be written from scratch ? Maybe then 
> the conversion can re-use some of the lilypond parsing code that is 
> already available ?

Yes.  We already know that.  See the discussion on the issue
tracker.  LilyPond developers have already examined the issue and
posted a roadmap of how a programmer would go about writing this.

The problem is that nobody is interested in doing it.

- Graham


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


Re: polymetric parts - doc NR 1.6.2

2010-02-06 Thread Werner

> \RemoveEmptyStaffContext overwrites \Staff context settings, which
> means the Timing_translator and Default_bar_line_engraver aren't
> added.  See the warning at the bottom of this page:
> 
>
http://lilypond.org/doc/v2.13/Documentation/notation/changing-context-default-settings#Changing-context-default-settings
> 
> Regards,
> Neil
> 

Thanks. 

PLEASE
Add this warning to NR 1.6.2 
Hiding Staves


Werner




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


Re: polymetric parts - ???BUG???

2010-02-06 Thread Philippe Hezaine

Philippe Hezaine a écrit :


Note: version 2.12.2
Just for the record even anywhere you put a \break in your file
with an empty layout the right-margin is not taken in account.
set-global-staff-size doen't matter.
Possibly it bears a rapport to...
However I cannot try in 2.13


Ah! Yes! Sorry.
Excerpt from the doc 2.13.1 (I'm still a bit outdated.)

The option right-margin is defined but doesn’t set the right margin yet.
The value for the right margin has to be defined by adjusting the values
of left-margin and line-width.
Cheers.
--
  Phil.




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


luciosi...@aim.com

2010-02-06 Thread Bojan

 

 luciosi...@aim.com


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


"Long" fermata above two notes

2010-02-06 Thread luciosilla

Hello,
I've been trying to typeset a piece of music that has a "Long" fermata above
two notes.
It is used sometimes to indicate the place where the soloist should play the 
cadenza in a concerto. http://old.nabble.com/file/p27480522/Fermata11.bmp 
Does anyone have any hints on how to typeset this? 

Thanks,
Lucio
-- 
View this message in context: 
http://old.nabble.com/%22Long%22-fermata-above-two-notes-tp27480522p27480522.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


Re: The "Gigsaw": about polymetric

2010-02-06 Thread Philippe Hezaine

Philippe Hezaine a écrit :

Hi all,



i'm wondering if I can get rid of this issues:

1. The output is OK but I have many Avertissement : échec du contrôle de
mesure (barcheck) in the console because of the whole rests. Of course
the Gigsaw's process follows the same way. I read the answer of Mats
Bengtsson a few days ago about the same problem with polymetric bars.
But may be I'm missing something in the layout or the \score. If you
have time can you look at this file?
Sorry that isn't a minimal exemple. Deliberately the bar check are
commented. In this case it doesn't matter. In case I'm not wrong
wouldn't be an example for a feature request?


Wow! Here is a minimal example.
First i discovered that if I commented out all the block \midi I got rid
of these annoying messages. I was very astonished by this.
But I did need to get a midi file output!
Suddenly I have the idea to write different context inside the \midi
block. And voilà!
I hope all will be going right in the Gigsaw which isn't a tiny file.
It will take me a few time to test it.
Am I on the right way?
--
  Phil.

\version "2.12.2"

 #(ly:set-option 'delete-intermediate-files #t)

pulse = \drummode {

  \time 2/2

	8 r8 hhc8 r8 hhc8 r8 hhc8 r8 %|

	}

Polyun = \drummode {

  \time 7/8

	sna8 r8 r4 wbl8 r4 %|

  \time 6/8

	tomh8 r4 wbl8 r4 %|

  \time 5/8

	toml8 r4 wbl8 r8 %|

  \time 4/8

	tomfl8 r8 wbl8 r8 %|


	 }

Polydeux = \drummode {

  \time 7/8

	R1*7/8 %|

	}

Polytrois = \drummode {

  \time 7/8

	R1*7/8 %|

	 }

melodiques = \relative c {
%	\set Staff.midiInstrument = "standard kit"

 \time 4/4 

	R1 %|

	 }


 \score {
<<
	\new Staff
  <<
	\set Staff.instrumentName = "Melod"
	\new Voice { \melodiques }
  >>
			%%
  \new DrumStaff
 <<
	\set Staff.instrumentName = "Poly3"
	\new DrumVoice { \Polytrois }
   >>
			%%
  \new DrumStaff
 <<
	\set Staff.instrumentName = "Poly2"
	\new DrumVoice { \Polydeux }
   >>
			%%
  \new DrumStaff
  <<
	\set Staff.instrumentName = "Poly1"
	\new DrumVoice { \Polyun }
   >>
			%%
  \new DrumStaff
  <<
	\set DrumStaff.instrumentName = "Drums"
  	\set DrumStaff.midiInstrument = "standard kit"
	\new DrumVoice { \pulse }
  >>
			%%
>>

  \layout {
	\context {
	   \RemoveEmptyStaffContext
	   \override VerticalAxisGroup #'remove-first = ##t
		}

\context { \Score
\remove "Timing_translator"
\remove "Time_signature_engraver"
\remove "Default_bar_line_engraver"
	}

\context { \Staff
\consists "Timing_translator"
\consists "Default_bar_line_engraver"
\consists "Time_signature_engraver"
	}

	\context { \DrumStaff
\remove "Axis_group_engraver" 
\override VerticalAxisGroup #'remove-empty = ##t
	\override VerticalAxisGroup #'remove-first = ##t
\consists "Hara_kiri_engraver" 
\consists "Timing_translator"
\consists "Default_bar_line_engraver"
		}
	}

  \midi {
\context {
  \Score
  \remove "Timing_translator"
  tempoWholesPerMinute = #(ly:make-moment 120 4)
	 }

\context { \Staff
\consists "Timing_translator"
	 }

\context { \DrumStaff
\consists "Timing_translator"
	 }

   }
}

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


Re: vertical spacing

2010-02-06 Thread Xavier Scheuer
On 6 February 2010 13:11, Ole Schmidt  wrote:

> I could not find that one in the docs btw
>
> [...]
>
> nor did I find that one...

If you use version 2.13 then you should read the doc of version 2.13
http://lilypond.org/doc/v2.13/Documentation/notation/page-formatting

I suppose jEdit/LilyPondTool provides stable version of the doc (2.12).


> I use Jedit/Lilypondtool.
> if you could give me a hint how to configure jedit properly I would be
> greatful:-)

Mmh, normally it is already well configured.
I use it also (under Windows at least).

Just let it do it "the right way".  ;)

Xavier

--
Xavier Scheuer 


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


Re: Editing notes in a separate file

2010-02-06 Thread Carl Sorensen



On 2/6/10 1:53 PM, "Michael J. O'Donnell"  wrote:

> Carl,
> 
> Thanks for the note. One thing that I discovered in source, but can't find in
> manuals, is "not-first-page" (in titling-init.ly). I used it to define my own
> "part-not-first-page", since I like to format lots of things as bookparts (for
> completeness, I've included the way that I used the function in headers):

not-first-page is not in the reference because it's not a public function.
Non-public functions aren't documented because they can't be called.

I think your function would make a good LSR snippet.  I hope you'll submit
it!

> 
> I recall digging out some information on the durLog and dots representation of
> note durations, too. I'll try to find more specific pointers and send another
> note.
> 

Please do.

Thanks,

Carl



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


Re: polymetric parts - ???Another BUG???

2010-02-06 Thread Werner
\break fails
 
>
http://lilypond.org/doc/v2.13/Documentation/notation/changing-context-default-settings#Changing-context-default-settings


Sorry, if this problem maybe already was discussed here - somehow doesn't work
the search function on http://thread.gmane.org/gmane.comp.gnu.lilypond.general

>From one problem I just stepped in the next. For some occult :) reason \break
fails in the following file if I uncomment the outcommented lines (which I need
for another part in the (originally longer) piece.

Who can help?



\version "2.13.12"

\include "deutsch.ly"

Cello = \relative c {
  \clef bass
  \key c \major
\time 41/4
\cadenzaOn  
c4 des f gis ais des c gis a gis a b des c as d as e' as, f' 
\bar ""
  \break
\grace {e8[ f] } ges4 des f des e des des c 
\bar ""
\grace {e8[ f] } ges4 des f des e des des c c as f e c 
\cadenzaOff
\bar "||"
\time 3/4
  \break
c4 c c \break
c4 c c \break
}

Posaune = \relative c {
  \clef bass
  \key c \major
\time 41/4
\cadenzaOn
r4 r r r r r r r r r r r r r r r r r r r
  \bar ""
s4 s s s s s s s
  \bar ""
s4 s s s s s s s s s s s s
\cadenzaOff
\bar "||"
\time 3/4
  \break
c4 c c \break
c4 c c \break
}

\score {
  <<
\new Staff 
  \Cello 
\new Staff 
  \Posaune 
>>

\layout {
  \context {
\Score
% \remove "Timing_translator"
% \remove "Default_bar_line_engraver"
  }
  \context {
\Staff
% \consists "Timing_translator"
% \consists "Default_bar_line_engraver"
  }
}
}








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


Re: polymetric parts - doc NR 1.6.2

2010-02-06 Thread Trevor Daniels


Werner wrote Saturday, February 06, 2010 3:53 PM


\RemoveEmptyStaffContext overwrites \Staff context settings, 
which

means the Timing_translator and Default_bar_line_engraver aren't
added.  See the warning at the bottom of this page:


PLEASE
Add this warning to NR 1.6.2
Hiding Staves



OK.  Added a pointer to this warning from 1.6.2. In git.

Trevor




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


Re: "Long" fermata above two notes

2010-02-06 Thread Éric Bouvéron
You may try a trick, to put the fermatta between the two notes, using;
  tweak  #'extra-offset #'(-x . y)
and a markup for the glyph fermata

%%-
%%definition  double fermata up & down
dlbupfermata =  ^\markup { \huge \musicglyph #"scripts.ufermata" }
dldwnbfermata =  _\markup { \huge \musicglyph #"scripts.dfermata" }

\relative c'
{ c re8 mi mi2-\tweak #'extra-offset #'(-1 . 1.2) \dlbupfermata
d4 d8 [ e~ e2]-\tweak #'extra-offset #'(-1 . -1.2) \dldwnbfermata
r4 d8 (e~ e2)-\tweak #'extra-offset #'(-1 . 1.2) \dlbupfermata
}
%%-
instead of  \huge you may use \fontsize #5

Éric

2010/2/7 luciosilla 

>
> Hello,
> I've been trying to typeset a piece of music that has a "Long" fermata
> above
> two notes.
> It is used sometimes to indicate the place where the soloist should play
> the
> cadenza in a concerto. http://old.nabble.com/file/p27480522/Fermata11.bmp
> Does anyone have any hints on how to typeset this?
>
> Thanks,
> Lucio
> --
> View this message in context:
> http://old.nabble.com/%22Long%22-fermata-above-two-notes-tp27480522p27480522.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
>



-- 
Éric Bouvéron

G/F, 66 Kai Yuen street
North Point
Hong Kong S.A.R.

Tél: 2972 2567
   9046 3611

Skype: Wafaic

QUOS VULT PERDERE JUPITER DEMENTAT

Please consider reducing waste by not printing this email.
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Lyrics to single stave polyphony

2010-02-06 Thread eagle136

Hi,
I've been struggling with this for some time now - and am relatively new to
Lilypond ... all help really appreciated.

I have a piece for boys and girls on 2 staves with piano accpt.  Every so
often I wish e.g. the girls to divide into 2 parts and would like to keep on
the same stave:
  ...
  a2~a4 fs8 fs |   
  \mark \default  % [D]
  % split into two here
  <<
  { e2 ~ e4 s8 e8 | 
  fs g4 a8 ~ a4 s8 a16 a |
  }  
  \\
  { e,2 ~ e4 r8 e8 |
  fs8 e4 fs8 ~ fs4 r8 fs16 fs |
  }
  >>  
...

This works fine.

I now need to add lyrics.  All is OK until the split into 2 parts when no
lyrics are printed at all - though they get picked up by the music once the
split has been closed.

I have set the soprano voice in its own context:

sopranoVoicePart = \new Staff \with {
  instrumentName = "Girls"
  midiInstrument = "choir aahs"
} { \sopranoVoice }  % notes
\addlyrics { \verseOneSopranoVoice \verseTwoSopranoVoice }  % lyrics

How do I get the lyrics to be displayed when the split happens?

Thanks very much for any guidance you might be able to provide, other
examples I have looked at just don't seem to quite fit.

Thanks

Simon


-- 
View this message in context: 
http://old.nabble.com/Lyrics-to-single-stave-polyphony-tp27484869p27484869.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


Re: Lyrics to single stave polyphony

2010-02-06 Thread Kieren MacMillan
Hi Simon,

This issue has been discussed (and solved/explained) many times on the list.
Please look for "explicitly instantiating voices" in the documentation, 
particularly the v2.13 docs.

Cheers,
Kieren.

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


Re: "Long" fermata above two notes

2010-02-06 Thread luciosilla

thanks for your help, I tried your trick, but it seams to only "blow up" the
fermata mark.
I was was hoping for something more adequate, like stretching the fermata
mark or somehow expanding it, I don't know. But thanks once again.

Lucio 

-- 
View this message in context: 
http://old.nabble.com/%22Long%22-fermata-above-two-notes-tp27480522p27485182.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


Re: Lyrics to single stave polyphony

2010-02-06 Thread David Pounder


> --- Original Message ---
> From: eagle136 
> To: lilypond-user@gnu.org
> Sent: 7.2.10, 0:42:36
> Subject: Lyrics to single stave polyphony
> 

> I now need to add lyrics.  All is OK until the split into 2 parts when no
> lyrics are printed at all - though they get picked up by the music once the
> split has been closed.
> 
> I have set the soprano voice in its own context:
> 
> sopranoVoicePart = \new Staff \with {
>   instrumentName = "Girls"
>   midiInstrument = "choir aahs"
> } { \sopranoVoice }  % notes
> \addlyrics { \verseOneSopranoVoice \verseTwoSopranoVoice }  % lyrics
> 
> How do I get the lyrics to be displayed when the split happens?
> 

Hi Simon,

This trips most new users up. The polyphony construct \\ creates two new 
contexts named "1" and "2" - your lyrics are still being fed to your original 
context at this time. 

There's more than one way around it, but look at section 1.5.2 in the Notation 
Reference, particularly at the heading "Temporary Polyphonic Passages."

I would definitely recommend getting into the habit of always naming your 
contexts and using \lyricsto instead of \addlyrics for any non-trivial case.

Hope this helps.

David.
___
> 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


Solution for including a file only once

2010-02-06 Thread Michael J. O'Donnell
I *think* that I have the essential solution to include a file exactly
once, no matter how many times it is mentioned. That is, with the
following definition,

\includeIfAbsent "MyFile.ly"

should copy in MyFile.ly, just as though you had written

\include "MyFile.ly"

unless an inclusion (either through \include or through
\includeIfAbsent) has already started (and usually finished). If there
is a circular path of \includes, LilyPond appears to enter an infinite
loop, but \includeAbsent will break a cycle. That's why it's important
that I said "unless an inclusion ... has already *started*," rather than
"already happened."

The sweat here involved avoiding any preparatory code to enable the
mechanism. You need nothing more than the definition of includeIfAbsent.

I'm not sure how either \include or \includeIfAbsent behave inside a
context. It's probably not a good idea to use either one except at the
outermost level---inner stuff should usually be done with variables.
But, it would be cool if someone tested the possibility.

I will join the developer list, and introduce the idea there. I think
some such thing should probably be added as a standard function.

Notice that I let the file *calling* for inclusion control whether it
wants to allow multiple inclusions or not. Some systems, including the C
preprocessor, put a guard in the included file, disabling its inclusion
if it has already appeared. I think that I like this form (which
corresponds pretty well to "require" in some languages, but I've
forgotten which ones) better. I think that the guard within a file is
not hard to implement by a similar method.

There is a chance, very small I hope, that the string I used for a
file's guard could be introduced elsewhere, gumming things up. E.g., if
someone wants to have guards within the include files, as well as within
the including files, the names need to be different.

-

includeIfAbsent =

#(define-music-function (parser location fileName) (string?)

  (let ((guardName (string-append "Already Got " fileName)))

(if (not (defined? (string->symbol guardName)))
  (begin

(primitive-eval (list 'define (string->symbol guardName) #t))

#{ \include $fileName #}

  )

  #{ #}

)
  )
)



Cheerio,

Mike O'Donnell



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


Re: Best practice when typesetting transposing instruments.

2010-02-06 Thread Kirill
Thank you all for your replies.

As you might know, I am working on a Sibelius to LilyPond translator; and one of
the aims is to generate .ly sources that are as close as possible to what a
human would have written. Hence my asking about the best practices.

Gilles,
Love your double \transpose trick! Very clever.

Best,

Kirill Sidorov







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


"Wedge" and "staccatissimo"

2010-02-06 Thread Kirill
Hi LilyPond Gurus,

This is probably a very trivial question.
As you might know, I am working on a Sibelius to LilyPond translator.
LilyPond has a staccatissimo articulation -| which on paper looks like
a little wedge with a rounded top.
Sibelius has two similar-looking articulations, called "wedge" and
"staccatissimo". Now, the staccatissimo in LilyPond looks like the "wedge" in
Sibelius, and staccatissimo in Sibelius looks like a wedge but with a top that
is concave downward.

Is there any difference between the two?
Might I assume that both "wedge" and "staccatissimo" should be typeset as -| ?

I think the Wikipedia article about staccatissimo has a musical example typeset
with Sibelius:
http://en.wikipedia.org/wiki/Staccatissimo   (note the concave tops)





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


Re: "Long" fermata above two notes

2010-02-06 Thread Nick Payne

Here's a stretched out fermata using PostScript:

\version "2.13.12"

\relative c' {
c c^\markup {
\postscript #"/Emmentaler-20 findfont 4 scalefont setfont 2.5 1 
scale /scripts.ufermata glyphshow show"

}
}

Unfortunately, although Lilypond generates the ps file without error, 
Ghostscript barfs when converting the ps to pdf, and although the 
stretched fermata appears in the output, the notes don't. Also, the 
result isn't very satisfactory because the dot in the centre of the 
fermata has been stretched into an ellipse:


GNU LilyPond 2.13.12
Processing `test.ly'
Parsing...
Interpreting music...
Preprocessing graphical objects...
Solving 1 page-breaking chunks...[1: 1 pages]
Drawing systems...
Layout output to `test.ps'...
Converting to `./test.pdf'...
`gs -q -dSAFER -dDEVICEWIDTHPOINTS=595.28 -dDEVICEHEIGHTPOINTS=841.89 
-dCompatibilityLevel=1.4 -dNOPAUSE -dBATCH -r1200 -sDEVICE=pdfwrite 
-sOutputFile="./test.pdf" -c .setpdfwrite -f "test.ps"' failed (256)

error: failed files: "test.ly"

Nick

On 07/02/10 12:55, luciosilla wrote:

thanks for your help, I tried your trick, but it seams to only "blow up" the
fermata mark.
I was was hoping for something more adequate, like stretching the fermata
mark or somehow expanding it, I don't know. But thanks once again.
   
<>___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: "Long" fermata above two notes

2010-02-06 Thread Nick Payne
Well, the fix to that one was easy - don't use both glyphshow and show 
in the PostScript:


\version "2.13.12"

\relative c' {
c c^\markup {
\postscript #"/Emmentaler-20 findfont 4 scalefont setfont 2.5 1 
scale /scripts.ufermata glyphshow"

}
}

Nick

On 07/02/10 17:34, Nick Payne wrote:

Here's a stretched out fermata using PostScript:

\version "2.13.12"

\relative c' {
c c^\markup {
\postscript #"/Emmentaler-20 findfont 4 scalefont setfont 2.5 
1 scale /scripts.ufermata glyphshow show"

}
}

Unfortunately, although Lilypond generates the ps file without error, 
Ghostscript barfs when converting the ps to pdf, and although the 
stretched fermata appears in the output, the notes don't. Also, the 
result isn't very satisfactory because the dot in the centre of the 
fermata has been stretched into an ellipse:


GNU LilyPond 2.13.12
Processing `test.ly'
Parsing...
Interpreting music...
Preprocessing graphical objects...
Solving 1 page-breaking chunks...[1: 1 pages]
Drawing systems...
Layout output to `test.ps'...
Converting to `./test.pdf'...
`gs -q -dSAFER -dDEVICEWIDTHPOINTS=595.28 -dDEVICEHEIGHTPOINTS=841.89 
-dCompatibilityLevel=1.4 -dNOPAUSE -dBATCH -r1200 -sDEVICE=pdfwrite 
-sOutputFile="./test.pdf" -c .setpdfwrite -f "test.ps"' failed (256)

error: failed files: "test.ly"

Nick

On 07/02/10 12:55, luciosilla wrote:
thanks for your help, I tried your trick, but it seams to only "blow 
up" the

fermata mark.
I was was hoping for something more adequate, like stretching the 
fermata

mark or somehow expanding it, I don't know. But thanks once again.



___
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: "Long" fermata above two notes

2010-02-06 Thread Tom Dickson
Would it be possible to modify or use slurs and then manually position a dot 
near it?

-tom

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