Re: is MultiMeasureRest breakable?

2013-05-05 Thread David Kastrup
"Keith OHara"  writes:

> On Sat, 04 May 2013 19:21:23 -0700, Kieren MacMillan
>  wrote:
>
>> What I mean is, if the barline in another [polymetric] staff falls
>> in the middle of a MultiMeasureRest, could Lilypond [automatically]
>> split the measure, perhaps putting a parenthesized MMR on the
>> following system?
>
> This came up not very long ago, but I had forgotten
> http://code.google.com/p/lilypond/issues/detail?id=2863
>
> So it is not the rests that are refusing to break across lines, but
> the bars themselves.
>
> The Bar_line_engraver does two jobs, printing barlines at the right
> places, and forbidding line-breaks at all other places.

Not really.  That is the job of the Forbid_line_break_engraver.

> You only want the first job.  The rule now is that a line can break
> when every staff has a bar (more specifically, whenever every
> Bar_line_engraver says it is okay); maybe that should be when *any*
> staff has a bar.

Not sure what the best behavior would be with multiple Timing contexts.
Maybe if you have those and they can rarely agree on a bar, the user
should explicitly remove the Forbid_line_break_engraver from the
contexts that should not be afflicted.

-- 
David Kastrup


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


Re: mdash in markup?

2013-05-05 Thread David Kastrup
James Harkins < jamshar...@gmail.com> writes:

> David Kastrup  gnu.org> writes:
>
>> > I see it now. It wasn't obvious to me that the special character
>> > aliases wouldn't work without enabling them in the paper block.
>> 
>> A list of ASCII aliases for special characters can be included:
>> 
>> \paper {
>>   #(include-special-characters)
>> }
>> [...]
>> 
>> It does not get much more obvious than that.
>
> It can.
>
> This bugs me because a/ I tend to read text and skim examples

You stop reading text in mid-sentence because it contains code?

> and (more importantly) b/ it's imprecise. Here, I was left to guess
> about the criticality of include-special- characters, and I guessed
> wrong.

Didn't you admit not even reading that sentence?  It does not state "A
list of ASCII aliases _is_ included" but rather "it _can_ be included".

> My point is, why should I have had to guess in the first place?

More like "why should you have to read in the first place".

> Lilypond's documentation is generally better than that. But here is a
> case where a feature is entirely inactive without a statement,

"A list of ASCII aliases for special characters can be included:"

And the feature _has_ to be inactive without a statement since it messes
with string interpretation.  Personally, I don't particularly like this
sort of global interface causing potential trouble in unrelated areas
that work on their own.

But there is no question that with the given interface, this feature
_must_ default to being off.

-- 
David Kastrup


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


Chord name exceptions

2013-05-05 Thread Nandi
I would like to have a predefined \hungarianChords command, which is
based on the \germanChords (H instead of B, uppercase sharp and flat
symbols), but which keeps the default setting E/D instead of E/d.  Also,
I'd need altered chords (es, fis etc.) to end in Hungarian "sz" like this:
esz, fisz etc., starting with capital letters in such cases like D/Fisz etc.
(or have the uppercase sharp/flat symbols).
I've read through the documentation about chordNameExceptions and
chordRootNamer, but couldn't figure out, how to achieve the desired changes.
Any help, please? Thanks in advance:
Nandi


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


Re: mdash in markup?

2013-05-05 Thread James Harkins
David Kastrup  gnu.org> writes:

> > This bugs me because a/ I tend to read text and skim examples
> 
> You stop reading text in mid-sentence because it contains code?

Nice try, but I won't take that bait.

> > and (more importantly) b/ it's imprecise. Here, I was left to guess
> > about the criticality of include-special- characters, and I guessed
> > wrong.
> 
> Didn't you admit not even reading that sentence?  It does not state "A
> list of ASCII aliases _is_ included" but rather "it _can_ be included".

If it goes so far as to say "it *can* be included," then it can go further 
to explain *how* to include it: "can be included by..."

But no matter. I'll send a patch in a separate thread (because I can't 
attach a patch by gmane). Then, the next person to encounter this problem 
will be less likely to overlook the detail, and the question won't arise on 
the list.

> > My point is, why should I have had to guess in the first place?
> 
> More like "why should you have to read in the first place".

Nice try, but I won't take that bait.

I'm often guilty on the SC mailing list of implying that users are not 
taking enough responsibility for their own learning if they missed some 
detail in the documentation. Lately, I'm learning: if I'm tempted to lobby 
this sort of indictment, it's better if I just delete the message and let 
someone else answer. It saves me from some degree of stress.

> But there is no question that with the given interface, this feature
> _must_ default to being off.

Yes, indeed.

hjh


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


Remove flag

2013-05-05 Thread Peter O'Doherty

Hi list,

At certain points in a score I want to remove stem, beam and flags from 
notes, leaving only the note heads. Two questions: is there an easier 
way to do it than using these three \overides and why does the third 
override on the flags throw an error on version 2.16.0:


warning: cannot find property type-check for `flag-style' 
(backend-type?). perhaps a typing error?




\override Voice.Stem #'transparent = ##t

\override Voice.Beam #'transparent = ##t

\override Voice.Stem #'flag-style = #'no-flag


Many thanks,
Peter



--
//=
-> Peter O'Doherty
-> http://www.peterodoherty.net
-> m...@peterodoherty.net
//=

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


Re: Remove flag

2013-05-05 Thread Federico Bruni
2013/5/5 Peter O'Doherty 

>  Hi list,
>
> At certain points in a score I want to remove stem, beam and flags from
> notes, leaving only the note heads. Two questions: is there an easier way
> to do it than using these three \overides and why does the third override
> on the flags throw an error on version 2.16.0:
>
> warning: cannot find property type-check for `flag-style' (backend-type?).
> perhaps a typing error?
>
>
> \override Voice.Stem #'transparent = ##t
>
> \override Voice.Beam #'transparent = ##t
>
> \override Voice.Stem #'flag-style = #'no-flag
>
>
>
If you look at the Changes manual of 2.16 you see that:
"Flags are now treated as separate objects rather than as stem parts."

\overriide Flag #'transparent = ##t

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


Re: Remove flag

2013-05-05 Thread Robert Schmaus

Hi Peter,

Something *yet* easier than three overrides? Wow ...
I guess, you could pack them into a variable, like

AllOff = { \override ... }

and use the variable instead.
For yet easier solutions known to me, you'd have to use a 
computer-brain-interface ... but maybe, someone else has a better idea.


As for the error message, it seems that there is no property 
"flag-style" for the Stem object.

You can make the flags invisible by using

\override Flag #'transparent = ##t

Note that this will not make the beams invisible - that's a separate 
object to make transparent.
Note also that all those overrides will simply make the objects 
invisible, but the overall spacing will not change. I.e. there's space 
reserved for the flags &c. that one doesn't see ...


Best,
Robert



On 5 May 2013, at 11:32, Peter O'Doherty > wrote:



Hi list,

At certain points in a score I want to remove stem, beam and flags 
from notes, leaving only the note heads. Two questions: is there an 
easier way to do it than using these three \overides and why does the 
third override on the flags throw an error on version 2.16.0:


warning: cannot find property type-check for `flag-style' 
(backend-type?). perhaps a typing error?




\override Voice.Stem #'transparent = ##t

\override Voice.Beam #'transparent = ##t

\override Voice.Stem #'flag-style = #'no-flag


Many thanks,
Peter



--
//=
-> Peter O'Doherty
->http://www.peterodoherty.net
->m...@peterodoherty.net
//=
___
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


mcat: join midi files

2013-05-05 Thread Mike Blackstock
Here's a nice little utility that joins (concatenates) multiple midi files
into one file:

http://www.cap-lore.com/EnglishSuites/code/Transmog/mcat.html
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


scheme function help

2013-05-05 Thread Stjepan Horvat
I'm trying to figure out how and learn to create a function based on a
\displayMusic function.
for example:
\displayMusic { \mark "A" c'4 }
gives me
(make-music
  'SequentialMusic
  'elements
  (list (make-music (quote MarkEvent) (quote label) "A")
(make-music
  'NoteEvent
  'duration
  (ly:make-duration 2 0 1)
  'pitch
  (ly:make-pitch 0 0 0

so what i have gotten so far is that there is new (make-music (quote
MarkEvent) (quote label) "A") or (make-music 'MarkEvent 'label "A") in
front of c'
and i don't know how to put this line into it. I understand that i have to
use cons on 'elements to put the line in front of c.
Is there a way to figure out what "elements" do i have to use in my
function to work.
I'm going through
http://lilypond.org/doc/v2.12/Documentation/user/lilypond/Music-properties#Music-propertiesto
get an idea of how to get into it but #(display-scheme-music (first
(ly:music-property someNote 'elements))) doesn't work. I get an error
saying:
Wrong type argument in position 1 (expecting Music): # with
someNote = c'.
Help would be appreciated.

-- 
*Nesmotren govori kao da mačem probada, a jezik je mudrih iscjeljenje.
Izreke 12:18*
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Remove flag

2013-05-05 Thread Peter O'Doherty

Thanks a lot, Federico and Robert.


On 05/05/2013 12:49 PM, Robert Schmaus wrote:

Hi Peter,

Something *yet* easier than three overrides? Wow ...
I guess, you could pack them into a variable, like

AllOff = { \override ... }

and use the variable instead.
For yet easier solutions known to me, you'd have to use a 
computer-brain-interface ... but maybe, someone else has a better idea.


As for the error message, it seems that there is no property 
"flag-style" for the Stem object.

You can make the flags invisible by using

\override Flag #'transparent = ##t

Note that this will not make the beams invisible - that's a separate 
object to make transparent.
Note also that all those overrides will simply make the objects 
invisible, but the overall spacing will not change. I.e. there's space 
reserved for the flags &c. that one doesn't see ...


Best,
Robert



On 5 May 2013, at 11:32, Peter O'Doherty > wrote:



Hi list,

At certain points in a score I want to remove stem, beam and flags 
from notes, leaving only the note heads. Two questions: is there an 
easier way to do it than using these three \overides and why does the 
third override on the flags throw an error on version 2.16.0:


warning: cannot find property type-check for `flag-style' 
(backend-type?). perhaps a typing error?




\override Voice.Stem #'transparent = ##t

\override Voice.Beam #'transparent = ##t

\override Voice.Stem #'flag-style = #'no-flag


Many thanks,
Peter



--
//=
-> Peter O'Doherty
->http://www.peterodoherty.net
->m...@peterodoherty.net
//=
___
lilypond-user mailing list
lilypond-user@gnu.org 
https://lists.gnu.org/mailman/listinfo/lilypond-user



--
//=
-> Peter O'Doherty
-> http://www.peterodoherty.net
-> m...@peterodoherty.net
//=

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


Re: mdash in markup?

2013-05-05 Thread Urs Liska
I don't see any point in arguing if a given documentation is technically 
correct or complete.


Sometimes even correct documentation can be misleading or at least miss 
to draw attention to important points.
I feel that this is the case here too. An improvement of the 
documentation will definitely lead to less argumentation on the -user list.
And as James even offered to send a patch we should close that 
discussion now.


Urs

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


Problem with encoding unicode

2013-05-05 Thread Peter O'Doherty

Hi,
Not all unicode characters are being correctly realised in my score. 
Something like \mark \markup { \char ##x03EE } will work but this throws 
an error:


\mark \markup { \char ##x1080B }
error:

programming error: FT_Get_Glyph_Name () error: invalid argument

continuing, cross fingers

programming error: Glyph has no name, but font supports glyph naming.

Skipping glyph U+1001080B, file 
/home/peter/lilypond/usr/share/lilypond/current/fonts/otf/CenturySchL-Roma.otf



Does anyone have any idea what the problem is?

Many thanks,
Peter

--
//=
-> Peter O'Doherty
-> http://www.peterodoherty.net
-> m...@peterodoherty.net
//=

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


Re: is MultiMeasureRest breakable?

2013-05-05 Thread Keith OHara
David Kastrup  gnu.org> writes:

> "Keith OHara"  oco.net> writes:
> > The Bar_line_engraver does two jobs, printing barlines at the right
> > places, and forbidding line-breaks at all other places.
> 
> Not really.  That is the job of the Forbid_line_break_engraver.
 
The manual, and experiment, and a non-bug that we thought was a bug
  http://code.google.com/p/lilypond/issues/detail?id=343
all say that Forbid_line_break_engraver concerns how suspended notes
affect breaking.  You can remove Forbid_line_break_engraver but LilyPond
will only break at the end of bars.







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


RE: scheme function help

2013-05-05 Thread Peter Gentry
I don't have any answers for you but only sympathy for a fellow struggler.

I have many years of experience with several languages but Scheme seems so 
idiosyncratic that it is difficult to learn. Each
particle of knowledge seems to be standalone and not transferable to a new 
situation nothing is intuitive.

I would plead for a better introduction to Scheme and the Lilypond interface 
especially ly: definitions more completed examples
would help.

Each tweak and frig appears as an individual the code may be cocmopolitan but 
to the tyro sounds like the tower of babel.

Lilpond is great but it is b* hard to learn.


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


Re: mcat: join midi files

2013-05-05 Thread Stjepan Horvat
Cool..

On Sun, May 5, 2013 at 2:14 PM, Mike Blackstock
wrote:

> Here's a nice little utility that joins (concatenates) multiple midi files
> into one file:
>
> http://www.cap-lore.com/EnglishSuites/code/Transmog/mcat.html
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
>


-- 
*Nesmotren govori kao da mačem probada, a jezik je mudrih iscjeljenje.
Izreke 12:18*
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: scheme function help

2013-05-05 Thread Madoka Machitani
Hi,

Let me first point out that you have to remember object type matters.
ly:music-property expects music object, not pitch object or anything else,
so you have to
give a music object to it, like this:

(display-scheme-music
 (car (ly:music-property #{ \mark "A" c'4 #}
 'elements)))

which gives
(make-music (quote MarkEvent) (quote label) "A")


Now, is it correct to assume you are trying to achieve something like this?
\insMark "a" musical-sequence

If so, the function would be:

insMark =
#(define-music-function (parser location mark mus)
   (markup? ly:music?)
   (set! (ly:music-property mus 'elements)
 (cons (make-music 'MarkEvent 'label mark)
   (ly:music-property mus 'elements)))
   mus)

This is a crude example and won't work with single note events like c'4

example:
\displayMusic \insMark "A" { c'4 }
=>
(make-music
  'SequentialMusic
  'elements
  (list (make-music (quote MarkEvent) (quote label) "A")
(make-music
  'NoteEvent
  'duration
  (ly:make-duration 2 0 1)
  'pitch
  (ly:make-pitch 0 0 0


BTW, have you read the extending manuagl?
http://lilypond.org/doc/v2.16/Documentation/extending/



On Sun, May 5, 2013 at 9:30 PM, Stjepan Horvat  wrote:

> I'm trying to figure out how and learn to create a function based on a
> \displayMusic function.
> for example:
> \displayMusic { \mark "A" c'4 }
> gives me
> (make-music
>   'SequentialMusic
>   'elements
>   (list (make-music (quote MarkEvent) (quote label) "A")
> (make-music
>   'NoteEvent
>   'duration
>   (ly:make-duration 2 0 1)
>   'pitch
>   (ly:make-pitch 0 0 0
>
> so what i have gotten so far is that there is new (make-music (quote
> MarkEvent) (quote label) "A") or (make-music 'MarkEvent 'label "A") in
> front of c'
> and i don't know how to put this line into it. I understand that i have to
> use cons on 'elements to put the line in front of c.
> Is there a way to figure out what "elements" do i have to use in my
> function to work.
> I'm going through
> http://lilypond.org/doc/v2.12/Documentation/user/lilypond/Music-properties#Music-propertiesto
>  get an idea of how to get into it but #(display-scheme-music (first
> (ly:music-property someNote 'elements))) doesn't work. I get an error
> saying:
> Wrong type argument in position 1 (expecting Music): # with
> someNote = c'.
> Help would be appreciated.
>
> --
> *Nesmotren govori kao da mačem probada, a jezik je mudrih iscjeljenje.
> Izreke 12:18*
>
> ___
> 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: Glissando to a rest

2013-05-05 Thread Mats Bengtsson


On 05/05/2013 12:01 AM, lilypond-user-requ...@gnu.org wrote:

This should work. You just have to make sure the space between the two notes
isn't too tight or the glissando won't print. In this case it happens if you
omit the \break.

\relative c''
{
   es4*1/2->\glissando
   \hideNotes
   es,
   \unHideNotes
   r4 r2 | \break
   es1
}
Here are two more alternatives where you don't have to play any tricks 
with the durations (the settings for Glissando are to ensure that the 
resulting glissando gets sufficient horizontal width, otherwise LilyPond 
complains that the right edge comes before the left edge and doesn't 
typeset the glissando at all, at least not in this example. The idea 
comes from http://lsr.dsi.unimi.it/LSR/Item?id=826).


\relative c''
\new Voice {
  \override Glissando #'minimum-length = #4
  \override Glissando #'springs-and-rods =
  #ly:spanner::set-spacing-rods
  es4->\glissando
  \grace{\hideNotes
  es,
  \unHideNotes}
  r4 r2 |
  es1
}

\relative c''
\new Staff {
  \override Glissando #'minimum-length = #4
  \override Glissando #'springs-and-rods =
  #ly:spanner::set-spacing-rods
  es4->\glissando

  << {\hideNotes
  es,
  \unHideNotes} \new Voice b' \rest>> r2 |
  es,1
}

   /Mats

--
=
Mats Bengtsson
Signal Processing
School of Electrical Engineering
Royal Institute of Technology (KTH)
SE-100 44  STOCKHOLM
Sweden
Phone: (+46) 8 790 8463 
Fax:   (+46) 8 790 7260
Email: mats.bengts...@ee.kth.se
WWW: http://www.ee.kth.se/~mabe
=


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


Re: Problem with encoding unicode

2013-05-05 Thread Nick Payne

On 06/05/13 00:46, Peter O'Doherty wrote:

\mark \markup { \char ##x1080B }
error:

programming error: FT_Get_Glyph_Name () error: invalid argument

continuing, cross fingers

programming error: Glyph has no name, but font supports glyph naming.

Skipping glyph U+1001080B, file 
/home/peter/lilypond/usr/share/lilypond/current/fonts/otf/CenturySchL-Roma.otf




This means there is no such glyph in the corresponding font - and the 
error message incorrectly pads the unicode value out to eight digits. 
The current development version gives a much better warning in the log:


warning: no glyph for character U+1080B in font 
`/usr/local/lilypond/usr/share/lilypond/current/fonts/otf/CenturySchL-Roma.otf'



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


Re: Chord name exceptions

2013-05-05 Thread Thomas Morley
2013/5/5 Nandi :
> I would like to have a predefined \hungarianChords command, which is
> based on the \germanChords (H instead of B, uppercase sharp and flat
> symbols), but which keeps the default setting E/D instead of E/d.  Also,
> I'd need altered chords (es, fis etc.) to end in Hungarian "sz" like this:
> esz, fisz etc., starting with capital letters in such cases like D/Fisz etc.
> (or have the uppercase sharp/flat symbols).
> I've read through the documentation about chordNameExceptions and
> chordRootNamer, but couldn't figure out, how to achieve the desired changes.
> Any help, please? Thanks in advance:
> Nandi

Hi,

although I've no clue about the hungarian language I come up with the
code below.

\version "2.16.2"

#(define
((chord-name->hungarian-markup-text-alteration B-instead-of-Bb)
  pitch lowercase?)

   (define (pitch-alteration-semitones pitch)
(inexact->exact (round (* (ly:pitch-alteration pitch) 2

   (define (conditional-string-downcase str condition)
(if condition
(string-downcase str)
str))

   (let* ((name (ly:pitch-notename pitch))
  (alt-semitones  (pitch-alteration-semitones pitch))
  (n-a (cond
  ((equal? (cons name alt-semitones) '(6 . -1))
 (cons 7 (+ 1 alt-semitones)))
  ((equal? (cons name alt-semitones) '(6 . -2))
 (cons 7 alt-semitones))
  (else (cons name alt-semitones
   )
 (make-line-markup
  (list
   (make-simple-markup
(conditional-string-downcase
  (vector-ref #("C" "D" "E" "F" "G" "A" "H" "B") (car n-a)) lowercase?))
   (let ((alteration (/ (cdr n-a) 2)))
 (cond
((and (= alteration FLAT) (or (= (car n-a) 5) (= (car n-a) 2)))
  (make-simple-markup "sz"))
((= alteration FLAT)
  (make-simple-markup "esz"))
((and (= alteration DOUBLE-FLAT)
  (= (car n-a) 7))
  (make-simple-markup "ebe"))
((and (= alteration DOUBLE-FLAT)
  (or (= (car n-a) 5)(= (car n-a) 2)))
  (make-simple-markup "szesz"))
((= alteration DOUBLE-FLAT)
  (make-simple-markup "eszesz"))
((= alteration SHARP)
  (make-simple-markup "isz"))
((= alteration DOUBLE-SHARP)
  (make-simple-markup "iszisz"))
(else empty-markup)))

hungarianChords =
  \set chordRootNamer = #(chord-name->hungarian-markup-text-alteration #f)

% Test ---

  \layout {
ragged-right = ##f
indent = 0
  }

  \layout {
\context {
\ChordNames
\hungarianChords
}
  }

myMajorChords = \chordmode{
  c cis d dis e eis f fis g gis a ais b bis c/dis
  \break
  c ces b bes a aes g ges f fes e ees d des c
  \break
  cisis disis eisis fisis gisis aisis bisis
  \break
  ceses deses eeses feses geses aeses beses
}

myMinorChords = \chordmode{
  c:m cis:m d:m dis:m e:m eis:m f:m fis:m g:m gis:m a:m ais:m b:m bis:m c:m/ges
  \break
  c:m ces:m b:m bes:m a:m aes:m g:m ges:m f:m fes:m e:m ees:m d:m des:m c:m
  \break
  cisis:m disis:m eisis:m fisis:m gisis:m aisis:m bisis:m
  \break
  ceses:m deses:m eeses:m feses:m geses:m aeses:m beses:m
}

\score {
  \new ChordNames {
\myMajorChords
  }
  \header {
piece = \markup
  \column \bold {
  "Major Chords (hungarian?)"
  \vspace #2
  }
  }
}

\score{
  \new ChordNames {
\myMinorChords
  }
  \header {
piece = \markup
  \column \bold {
  "Minor Chords (hungarian?)"
  \vspace #2
  }
  }
}


Not sure about all settings I've used.
If something's wrong, please shout.

HTH,
  Harm
<>___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


RE: Lyrics and Punctuations Alignment Issue?

2013-05-05 Thread Jun Wang

Since this issue is so common, I wonder if we could add this feature to the 
lilypond code base? I thought the requirement is following:
1. The feature should be turned on by default with list of ascii punctuations, 
like ",.?{}()! :2. The list of punctuation can be override/customized with any 
unicode character list. 3. The feature can be turned off by override/set the 
punctuation list to empty.
Is it feasible? If it is ok,  I would like to help, but with my limited 
lilypond and Scheme knowledge, I wonder If I could make it.
ThanksJun
Date: Sun, 5 May 2013 06:24:26 -0700
From: tsan...@rogers.com
Subject: Re: Lyrics and Punctuations Alignment Issue?
To: david.nales...@gmail.com
CC: wj1...@hotmail.com; lilypond-user@gnu.org

David & Jun:
I complete the punctuation and parenthesis to the "align grob".  The following 
is the .ly UTF-8 file with test. I also attacha png file for your reference.
Thank you for your help,Ming
\version "2.17"

#(define (drop-punctuation-right str)
  (let ((punct-right '("." "," ";" ":" "?" "!" ")" "\"" "'" "。" "," ";" ":" "?" 
"!" ")" "]")))
(let loop ((elt punct-right))
  (if (null? elt)
  #f
  (if (string-suffix? (car elt) str)
  (string-drop-right str (string-length (car elt)))
  (loop (cdr elt)))

#(define (drop-all-punctuation-right str)
  (let ((core (drop-punctuation-right str)))
(if core
(drop-all-punctuation-right core)
str)))

#(define (drop-punctuation-left str)
  (let ((punct-left '("(" "\"" "'" "[" "(")))
(let loop ((elt punct-left))
  (if (null? elt)
  #f
  (if (string-prefix? (car elt) str)
  (string-drop str (string-length (car elt)))
  (loop (cdr elt)))

#(define (drop-all-punctuation-left str)
  (let ((core (drop-punctuation-left str)))
(if core
(drop-all-punctuation-left core)
str)))


#(define (align grob)
  (let* ((stil (ly:grob-property grob 'stencil))
 (stil-X (ly:stencil-extent stil X))
 (text (ly:grob-property grob 'text))
 ; determine X-extent of text stencil without punctuation at end
 (text-L (drop-all-punctuation-right text))
 (text-L-stil (grob-interpret-markup grob text-L))
 (text-L-stil-X (ly:stencil-extent text-L-stil X))
 (displacement (/ (- (cdr text-L-stil-X) (cdr stil-X)) 2))
 ; determine X-extent of text stencil without punctuation at start
 (text-R (drop-all-punctuation-left text))
 (text-R-stil (grob-interpret-markup grob text-R))
 (text-R-stil-X (ly:stencil-extent text-R-stil X))
 (displacement (+ displacement
  (/ (- (cdr stil-X) (cdr text-R-stil-X)) 2

 (- (ly:self-alignment-interface::aligned-on-x-parent grob)
displacement)))

\paper {
  ragged-right = ##f
}
\markup {" The following is lyric with  override LyricText "}
\relative c' {
  \time 3/4 e4 e4. e8
  d4 e d c d e
}

\addlyrics { \set stanza = "1. "
  \override LyricText #'X-offset = #align
  a "\"bb" ccc -- "\"" e f 'g h i'
}
%{
  \addlyrics { \set stanza = "2. "
  \override LyricText #'X-offset = #align
  "\"I" am so lone -- "ly,\"" said she
}
%}
\addlyrics { \set stanza = "3. "
  \override LyricText #'X-offset = #align
  [��  �O] (��  名) ��;  名。 啊:  明?  天!
}
\addlyrics { \set stanza = "4. "
  \override LyricText #'X-offset = #align
  "\"��"  "�O\"" (��  名) ��;  名. 啊:  明?  天!
}


\markup { " " }
\markup { " " }
\markup { " " }
\markup {"The following is normal lyric ie. no override LyricText 
.."}
\relative c' {
  \time 3/4 e4 e4. e8
  d4 e d c d e
}

\addlyrics { \set stanza = "1. "
  a bb ccc  e f 'g h' i
}
\addlyrics { \set stanza = "5. "
  [��  �O] (��  名) ��;  名。 啊:  明?  天!
}
\addlyrics { \set stanza = "6. "
  "\"��"  "�O\"" (��  名) ��;  名. 啊:  明?  天!
}
From: MING TSANG 
 To: David Nalesnik  
Cc: Jun Wang ; "lilypond-user@gnu.org" 
 
 Sent: Saturday, May 4, 2013 6:01:13 PM
 Subject: Re: Lyrics and Punctuations Alignment Issue?
   
David, 
Yes, left and right  UTF-8 parenthese -
 UTF-8.
Thanks,Ming
From: David Nalesnik 
 To: MING TSANG  
Cc: Jun Wang ; "lilypond-user@gnu.org" 
 
 Sent: Saturday, May 4, 2013 4:05:37 PM
 Subject: Re: Lyrics and Punctuations Alignment Issue?
   
Ming,


On Sat, May 4, 2013 at 11:16 AM, MING TSANG  wrote:


Jun, Thank you.  I add a few punctuation to your code.

David,  I don't know scheme. That's why I did a lousy job. I add few more 
punctuation to the Jun's latest code.  It works.

Thank you both. I have been looking
 this for a long time.
Nice to hear!  By the way, did you mean to add the parentheses at "a" and :b" 
to your lists?
-David 


  

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


Change Lyrics fontsize globaly

2013-05-05 Thread Andreas Stenberg

Hi!

Is there a easy way to change the fontsize of lyrics globaly. I'm 
working on projects with several files which are included in the final 
master file/ document and fidling around with fontsize comads for every 
single lyrics in every single file is starting to get bothersome. I dont 
know enough of the internals and i haven't the time to figure out hove 
to do this my self as I, as parttime leader of a church choire in midst 
of a proces of providing  new translations of an extensiv text material, 
have dead lines every other week.
The Lyrics fontsize shuold have to be changed globaly that is in the 
\paper block  in the master file producing the final document. I would 
be thank full to get something I quickly can copypaste into the last 
batch as I have a deadline looming over my shoulder and breathing down 
my neck about to bite me werry sn.


Yours Andreas Stenberg

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


Re: Problem with encoding unicode

2013-05-05 Thread Peter O'Doherty
Thanks. Is there a solution to the problem? It's happening in about 30% 
of the unicode.



On 05/05/2013 11:15 PM, Nick Payne wrote:

On 06/05/13 00:46, Peter O'Doherty wrote:

\mark \markup { \char ##x1080B }
error:

programming error: FT_Get_Glyph_Name () error: invalid argument

continuing, cross fingers

programming error: Glyph has no name, but font supports glyph naming.

Skipping glyph U+1001080B, file 
/home/peter/lilypond/usr/share/lilypond/current/fonts/otf/CenturySchL-Roma.otf




This means there is no such glyph in the corresponding font - and the 
error message incorrectly pads the unicode value out to eight digits. 
The current development version gives a much better warning in the log:


warning: no glyph for character U+1080B in font 
`/usr/local/lilypond/usr/share/lilypond/current/fonts/otf/CenturySchL-Roma.otf'





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



--
//=
-> Peter O'Doherty
-> http://www.peterodoherty.net
-> m...@peterodoherty.net
//=

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


Re: Problem with encoding unicode

2013-05-05 Thread Werner LEMBERG

> Not all unicode characters are being correctly realised in my score.
> Something like \mark \markup { \char ##x03EE } will work but this
> throws an error:
>
> \mark \markup { \char ##x1080B }
>
> [...]
>
> Thanks.  Is there a solution to the problem?  It's happening in
> about 30% of the unicode.

Well, get a proper font :-) To be serious: I have *a lot* of fonts on
my GNU/Linux box, and fontconfig selects a fallback font if a
particular glyph cannot be found, but I have no font which contains
U+1080B, CYPRIOT SYLLABLE KE.  Do you really need *this* character
from an ancient pre-Greek script which has been used from the 11th to
4th centuries BCE on Cyprus?


Werner

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