Re: Aligning a tempo marking with a note

2015-11-20 Thread David Sumbler
The markings that have been discussed relate either to "dynamic" (e.g.
"mf" or "dim.), or to tempo (e.g. "Allegro", rit.").  

They also indicate either a state ("mf", "Allegro") or a continuous
change ("dim.", "rit.").  Both "mf" and "Allegro" could apply to a whole
piece lasting, say, half an hour, but "dim. and "rit." could not
sensibly do so.

There is a third classification that one might consider: does the mark
apply to the whole ensemble, or can it apply to just some of it?
Clearly, in conventional music tempo markings (whether immediate or
gradual) must apply to the whole ensemble, whereas dynamic markings of
either sort can apply to just some of the instruments.

For this reason it is natural that, whereas dynamic marks are shown
separately for each instrument, tempo markings (of both sorts) should
appear just once in a score (normally above the top stave).  This is one
reason I favour marking "rit." etc. by using \tempo: it automatically
puts the mark once in the score and once in each individual extracted
part.

The situation is slightly confused because the distinction is not so
clear in music written for one instrument (typically piano).  It is not
unreasonable to have "rit. e dim." in a piece of solo music.  However
even in a piano piece, one occasionally gets differential dynamics
between one "voice" and another.  But one would not usually find, say,
"rit." in the right hand and "accel." in the left (except in Nancarrow's
music!)

David


> > From: Kieren MacMillan 
> > To: Noeck 
> > Cc: Lilypond-User Mailing List 
> > Subject: Re: Aligning a tempo marking with a note
> > Date: Thu, 19 Nov 2015 18:24:58 -0500
> > 
> > Hi Joram,
> > 
> > > Well, they are closer than cresc and rit for example.
> > 
> > Definitely!  =)
> > 
> > > marks like 'Allegro' are valid for a whole piece or at least large parts 
> > > of it
> > 
> > Not really… A metronome marking is only valid until the next time the tempo 
> > changes in any way. That change could be immediate and extreme (e.g., 
> > “Molto Lento”) or immediate and not-so-extereme (e.g., “Poco meno mosso”) 
> > or gradual (e.g., “poco accel.”). The tempo is then reset, either 
> > explicitly (e.g., “Allegro”) or by reference (e.g., “A tempo”).
> > 
> > > A similar thing (not fully equivalent) is this: bar numbers and
> > > rehearsal marks. Both can be used to identify a point in time, the
> > > latter are for larger chunks, the former more fine grained.
> > 
> > I agree that the analogy is not fully equivalent.
> > 
> > Cheers,
> > Kieren.
> > 
> > 
> > Kieren MacMillan, composer
> > ‣ website: www.kierenmacmillan.info
> > ‣ email: i...@kierenmacmillan.info
> > 
> > 
> > 
> ___
> 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: guitar scale diagram - change root

2015-11-20 Thread Klaus Blum
Hi Bart, 

yes, that's no problem. 
In the attached file, I've added a parameter "start". It's an integer to
indicate the tone number to start with, i.e. 1 for the root etc. This might
be a start.

Recently, there has been another thread that might be interesting for you as
well:
http://lilypond.1069038.n5.nabble.com/Guitar-Fret-Diagram-scale-degree-below-string-td179664.html#a179739

Cheers, 
Klaus

ChangeRoot.ly
  


bart deruyter wrote
> I'm assembling a list of scales for my students. with scale diagrams. I've
> successfully implementend : http://lsr.di.unimi.it/LSR/Item?id=790 . But
> now I stumble on another problem.
> 
> The snippet for the scale diagram assumes that the lowest sounding note is
> the root of the scale. What if it isn't the case?
> I'd like to change the root to for example the second note in the list, or
> the third, whichever I'd need as root.
> 
> Can this be achieved by adding something to the snippet?





--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/guitar-scale-diagram-change-root-tp183837p183842.html
Sent from the User mailing list archive at Nabble.com.

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


RE:guitar scale diagram - change root

2015-11-20 Thread Stephen MacNeil
using the snippet given you would change the order and add the correct
position number

eg

((5 3) (5 5) becomes  ((5 3) (5 2 5) and the 5 is the new scale position --
so the root on 3rd fret (c) is before the second (b)


% cpenta= \markup\scale-diagramm #'((5 3) (5 5) (4 3) (4 5) (3 2)

%   (3 5) (2 3) (2 6) (1 3) (1 5) (1 8)) #5 #1.7

% becomes

cpenta=\markup\scale-diagramm #'((5 3) (5 2 5) (5 5 2) (4 3 3) (4 5 4) (3
5) (3 2 5) (2 3 2) (2 6 3) (1 3 4) (1 8) (1 5 5)) #5 #1.7


HTH

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


Re: Fwd: Slash chords

2015-11-20 Thread jmechmech
sorry, in french :

http://www.linuxmao.org/Lilypond+et+les+lead+sheets#Accords_avec_basse_diff_rente_de_la_fondamentale

  



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Fwd-Slash-chords-tp183832p183840.html
Sent from the User mailing list archive at Nabble.com.

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


Install problem

2015-11-20 Thread Peter Fender
Hi .

 

I have downloaded 2.18.2 and installed it.  When I double click on the
shortcut created nothing happens.  If I right click (I'm on Windows 10) and
Run as Administrator I get a DOS window (blank) and a Welcome to Lilypond
file - which tells me to save it as test.ly to my desktop and then drop it
on the shortcut.  I've done that and nothing happens.  Any suggestions?

Thanks!
Peter

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


Re: Settings for automatic beam slope

2015-11-20 Thread Urs Liska
Hi Simon,

thank you for that, I think this is really helpful.

I think I see a pattern. This doesn't *completely* explain everything
but quite a lot.
Obviously the decision depends on whethere there are none, one or more
notes outside the staff (outside in this context beginning with the
notehead sitting *on* the outer staff line).

When there are no noteheads outside the staff the beam can be flat or
sloped. I think in many cases a slight slope would look better but
actually all the cases look acceptable to me.

In your example all instances with more than one note outside the staff
have sloped beams.
But all instances with exactly one note outside the staff have flat
beams. And this looks really ugly because that requires a quite
significant shift away from the staff of the beam.

On the other hand, if that single note would be sitting in the middle of
the group one would still want to have a flat beam. But in the cases of
your example (and my original music) it's nearly almost better to slope
such a beam when just one note is sitting outside the staff. It seems
some kind of penalty approach would be best here: If there's exactly one
note on the outermost stafffline or outside the staff then a sloped beam
should be a priority.

Urs

Am 20.11.2015 um 14:08 schrieb Simon Albrecht:
> \version "2.19.31"
> #(ly:set-option 'point-and-click #f)
> \layout {
>   \context {
> \Staff
> \omit TimeSignature
>   }
>   \context {
> \Score
> timing = ##f
>   }
> }
> gMajorScale = \relative { g a b c d e fis g }
>
> % change clef to test different positions on the staff
> global = { \clef treble }
>
> % take notes away from the end, except for the last note
> Ia = {
>   \bar "|"
>   b16[ d' b' g'  d' g' d'' b'  g' b' g'' d''] \bar "|"
>   b16[ d' b' g'  d' g' d'' b'  g' b' d''] \bar "|"
>   b16[ d' b' g'  d' g' d'' b'  g' d''] \bar "|"
>   b16[ d' b' g'  d' g' d'' b'  d''] \bar "|"
>   b16[ d' b' g'  d' g' d'' d''] \bar "|"
>   b16[ d' b' g'  d' g' d''] \bar "|"
>   b16[ d' b' g'  d' d''] \bar "|"
>   b16[ d' b' g'  d''] \bar "|"
>   b16[ d' b' d''] \bar "|"
>   b16[ d' d''] \bar "|"
>   b16[ d''] \bar "|"
> }
> Ib = \modalInversion b' b' \gMajorScale \Ia
> Ic = \retrograde \Ia
> Id = \retrograde \Ib
>
> % take notes away from the beginning, except for the first note
> IIa= {
>   \bar "|"
>   b16[ d' b' g'  d' g' d'' b'  g' b' g'' d''] \bar "|"
>   b16[ b' g'  d' g' d'' b'  g' b' g'' d''] \bar "|"
>   b16[ g'  d' g' d'' b'  g' b' g'' d''] \bar "|"
>   b16[ d' g' d'' b'  g' b' g'' d''] \bar "|"
>   b16[ g' d'' b'  g' b' g'' d''] \bar "|"
>   b16[ d'' b'  g' b' g'' d''] \bar "|"
>   b16[ b'  g' b' g'' d''] \bar "|"
>   b16[ g' b' g'' d''] \bar "|"
>   b16[ b' g'' d''] \bar "|"
>   b16[ g'' d''] \bar "|"
>   b16[ d''] \bar "|"
> }
> IIb = \modalInversion b' b' \gMajorScale \IIa
> IIc = \retrograde \IIa
> IId = \retrograde \IIb
>
> test =
> #(define-music-function (id) (string?)
>(let ((mus (ly:parser-lookup (string->symbol id
>  #{ \new Staff \with { instrumentName = $id } << \global $mus \\ $mus >> 
> #}))
>
> \bookpart {
>   \test Ia
>   \test Ib
>   \test Ic
>   \test Id
> }
>
> \bookpart {
>   \test IIa
>   \test IIb
>   \test IIc
>   \test IId
> }


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


Re: Install problem

2015-11-20 Thread Urs Liska


Am 20.11.2015 um 15:38 schrieb Peter Fender:
>
> Hi …
>
>  
>
> I have downloaded 2.18.2 and installed it.  When I double click on the
> shortcut created nothing happens.  If I right click (I’m on Windows
> 10) and Run as Administrator I get a DOS window (blank) and a Welcome
> to Lilypond file – which tells me to save it as test.ly to my desktop
> and then drop it on the shortcut.  I’ve done that and nothing
> happens.  Any suggestions?
>

You are the perfect candidate to beta-test my introduction that can
currently be found at

https://bookbranches.openlilylib.org/introduction/toolchain/index.html

Nearly the same wording ;-)

Actually the document starts at
https://bookbranches.openlilylib.org/introduction/
and the "next" link will point you to that.

Please go to that page and tell me if it helps you understanding what's
going on. (Only everything below 1. is relevant)

Thanks and HTH
Urs

>
> Thanks!
> Peter
>
>
>
> ___
> 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: Install problem

2015-11-20 Thread Kieren MacMillan
Hi Peter,

Welcome to the ‘Pond!

> Any suggestions?

Reading the Learning Manual is a good first step:


Hope this helps!
Kieren.


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


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


Re: Install problem

2015-11-20 Thread Urs Liska


Am 20.11.2015 um 16:10 schrieb Urs Liska:
> Please go to that page 

Sorry, forgot. That page links to a "Hello World" page, and that doesn't
exist yet.

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


Re: Gounod - Le Rendez Vous

2015-11-20 Thread Alberto Simões

Hey

On 20/11/2015 05:49, Abraham Lee wrote:
That being said, since there appears to be arguments for doing it both 
ways, I'd recommend that you pick one way and be consistent throughout 
the entire work.


Yes, of course. I will try and check which one looks better.


If you have updated files that haven't yet been committed to the repo 
you'd like me to look over, let me know when they are available.


No, not yet :) As it was not needed for the question, I did not commit.
Will post whenever it is updated.

Cheers
ambs

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


guitar scale diagram - change root

2015-11-20 Thread bart deruyter
Hi all,

I'm assembling a list of scales for my students. with scale diagrams. I've
successfully implementend : http://lsr.di.unimi.it/LSR/Item?id=790 . But
now I stumble on another problem.

The snippet for the scale diagram assumes that the lowest sounding note is
the root of the scale. What if it isn't the case?
I'd like to change the root to for example the second note in the list, or
the third, whichever I'd need as root.

Can this be achieved by adding something to the snippet?

grtz,

Bart

http://www.bartart3d.be/
On Twitter 
On Identi.ca 
On Google+ 
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Settings for automatic beam slope

2015-11-20 Thread Urs Liska
I have a question regarding beam slopes.

Consider the first of the attached images where the long beam is quite
ugly IMO. I would prefer to have the beam sloped similarly to the
shorter ones at the beginning at the example, something like shown in
the second attachment.
(Eventually it should look like the third attachment, but this can only
be achieved with my fix for the subdivided beams).

Of course I can achieve that easily with overriding Beam.positions but
a) I would like to have a global setting that makes LilyPond produce the
slope automatically and
b) I would like to know if LilyPond shouldn't produce a sloped beam by
default. Or is it an explicit decision to have that beam print
horizontally as in the first example?

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


Re: Fwd: Slash chords

2015-11-20 Thread Simon Albrecht

On 20.11.2015 10:56, Urs Liska wrote:

Dear Luca,

this is a question you should ask on the lilypond-user mailing list.
I have forwarded it there but I strongly suggest you subscribe at 
https://lists.gnu.org/mailman/listinfo/lilypond-user to automatically 
receive any replies.


Best
Urs

Am 20.11.2015 um 10:46 schrieb LilyPond blog contact form:


/From:/ Luca Fascione

/Message:/

Hello,
I've been using lilypond for a little while now and I rather like it.

I've been able to achieve most of what I want for my engraving needs, 
but I think I need some help to set up slash chords like in this example


http://www.apianotuner.com/img/RealBookSample.gif

I'm using the font New Real Book Chords distributed here 
https://musescore.org/node/7785, and I have setup exceptions to the 
Ignatzek rules to drive the font correctly, but I can't find a way to 
tell lilypond that the bass note should be set lowered (like in the 
gif above).


I have put a small repro case at the bottom of this message

Any help or indication you could spare would be greatly appreciated 
(I am a fairly accomplished software engineer and I'm not afraid of 
writing code to achieve this, although I have to confess I am a C++ 
guy, not a Guile/Scheme guy).


Thanks very much
Luca Fascione


example.ly



Too bad the code got messed up. Here is a (hopefully) clean version:
%%
\version "2.18.2"
% test for setting slash chords with realbookchords font

chExceptionMusic = {
  1-\markup { "7" }
  1-\markup { ">" }
}

chExceptions = #(append
  (sequential-music-to-chord-exceptions 
chExceptionMusic #t)

  ignatzekExceptions)

\score {
  \new StaffGroup <<
\chords {
  \override Score.ChordName.font-name = #"New Real Book Chords"
  \set chordNameExceptions = #chExceptions
  \set slashChordSeparator = "/"
  f2.:m c:7/e
}
\new Staff { \key aes \major \time 3/4 c'4 aes'2 c'4 bes'2 }
  >>
  \layout {}
}
%
and once attached, just in case.

Yours, Simon
\version "2.18.2"
% test for setting slash chords with realbookchords font

chExceptionMusic = {
  1-\markup { "7" }
  1-\markup { ">" }
}

chExceptions = #(append
  (sequential-music-to-chord-exceptions chExceptionMusic #t)
  ignatzekExceptions)

\score {
  \new StaffGroup <<
\chords {
  \override Score.ChordName.font-name = #"New Real Book Chords"
  \set chordNameExceptions = #chExceptions
  \set slashChordSeparator = "/"
  f2.:m c:7/e
}
\new Staff { \key aes \major \time 3/4 c'4 aes'2 c'4 bes'2 }
  >>
  \layout {}
}___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Settings for automatic beam slope

2015-11-20 Thread Andrew Bernard
Hi Urs,

Im my work I set almost every beam manually (fiddly and time consuming, but 
worthwhile).

Some useful functions I wrote:

setBeamPos =
#(define-music-function
  (left right)
  (number? number?)
  "Manually set beam position for next group."
  #{
\once \override Beam.positions = #(cons left right)
  #})

setBeamPosAll =
#(define-music-function
  (left right)
  (number? number?)
  "Manually set beam position for following groups."
  #{
\override Beam.positions = #(cons left right)
  #})

But how about the beam damping factor that can be set globally? Is that what 
you are seeking? Setting beam.damping globally as follows is useful for when 
you do actually want all flat beams, something I also need a lot:

\override Beam.damping = #+inf.0

I am not sure why your example is flat by default.

Andrew


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


Re: Settings for automatic beam slope

2015-11-20 Thread Urs Liska


Am 20.11.2015 um 12:19 schrieb Andrew Bernard:
> Hi Urs,
>
> Im my work I set almost every beam manually (fiddly and time
> consuming, but worthwhile).

Well, the usual discussion of automatic engraving. Of course we hope
that one day LilyPond will simply produce perfect output. But OTOH
"perfect" may be quite different things for different people ...

In the current case I don't have a serious problem with setting the beam
manually, but in general I prefer automatic solutions because setting
Beam.positions makes the music *completely* untransposable (or able to
use a different clef).

>
> Some useful functions I wrote:
>
> setBeamPos =
> #(define-music-function
>   (left right)
>   (number? number?)
>   "Manually set beam position for next group."
>   #{
> \once \override Beam.positions = #(cons left right)
>   #})
>
> setBeamPosAll =
> #(define-music-function
>   (left right)
>   (number? number?)
>   "Manually set beam position for following groups."
>   #{
> \override Beam.positions = #(cons left right)
>   #})
>

These are of course useful shorthands, but as said I want to understand
the default behaviour and automatic settings.

> But how about the beam damping factor that can be set globally? Is
> that what you are seeking? Setting beam.damping globally as follows is
> useful for when you do actually want all flat beams, something I also
> need a lot:
>
> \override Beam.damping = #+inf.0

This was what I tried first. But AFAICS this can only be used to make
steep beams flatter, not to make a completely horizontal beam steeper.

>
> I am not sure why your example is flat by default.

I *think* there's a general rule that flat beams are preferrable, but
somehow I have the impression that LilyPond falls back to horizontal
beams wheneve it doesn't manage to calculate a proper slope.

So that's part two of my question: Is that flat appearance intended, a
bug or simply a limitation of LilyPond's current automatic capabilities?

Urs

>
> Andrew
>
>
>
> ___
> 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: Settings for automatic beam slope

2015-11-20 Thread Simon Albrecht

Hello,

I made a test suite, which shows quite peculiar results:
– The problem typically appears with at least 7 (‘II’ series) or 9 (‘I’ 
series) notes under one beam, but sometimes also with 3 notes (ex. II 
and IIc)
– In each example, the problem occurs only for one of the voices. I 
couldn’t yet figure out the reason.


HTH, Simon

On 20.11.2015 10:40, Urs Liska wrote:

I have a question regarding beam slopes.

Consider the first of the attached images where the long beam is quite
ugly IMO. I would prefer to have the beam sloped similarly to the
shorter ones at the beginning at the example, something like shown in
the second attachment.
(Eventually it should look like the third attachment, but this can only
be achieved with my fix for the subdivided beams).

Of course I can achieve that easily with overriding Beam.positions but
a) I would like to have a global setting that makes LilyPond produce the
slope automatically and
b) I would like to know if LilyPond shouldn't produce a sloped beam by
default. Or is it an explicit decision to have that beam print
horizontally as in the first example?

Best
Urs


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


\version "2.19.31"
#(ly:set-option 'point-and-click #f)
\layout {
  \context {
\Staff
\omit TimeSignature
  }
  \context {
\Score
timing = ##f
  }
}
gMajorScale = \relative { g a b c d e fis g }

% change clef to test different positions on the staff
global = { \clef treble }

% take notes away from the end, except for the last note
Ia = {
  \bar "|"
  b16[ d' b' g'  d' g' d'' b'  g' b' g'' d''] \bar "|"
  b16[ d' b' g'  d' g' d'' b'  g' b' d''] \bar "|"
  b16[ d' b' g'  d' g' d'' b'  g' d''] \bar "|"
  b16[ d' b' g'  d' g' d'' b'  d''] \bar "|"
  b16[ d' b' g'  d' g' d'' d''] \bar "|"
  b16[ d' b' g'  d' g' d''] \bar "|"
  b16[ d' b' g'  d' d''] \bar "|"
  b16[ d' b' g'  d''] \bar "|"
  b16[ d' b' d''] \bar "|"
  b16[ d' d''] \bar "|"
  b16[ d''] \bar "|"
}
Ib = \modalInversion b' b' \gMajorScale \Ia
Ic = \retrograde \Ia
Id = \retrograde \Ib

% take notes away from the beginning, except for the first note
IIa= {
  \bar "|"
  b16[ d' b' g'  d' g' d'' b'  g' b' g'' d''] \bar "|"
  b16[ b' g'  d' g' d'' b'  g' b' g'' d''] \bar "|"
  b16[ g'  d' g' d'' b'  g' b' g'' d''] \bar "|"
  b16[ d' g' d'' b'  g' b' g'' d''] \bar "|"
  b16[ g' d'' b'  g' b' g'' d''] \bar "|"
  b16[ d'' b'  g' b' g'' d''] \bar "|"
  b16[ b'  g' b' g'' d''] \bar "|"
  b16[ g' b' g'' d''] \bar "|"
  b16[ b' g'' d''] \bar "|"
  b16[ g'' d''] \bar "|"
  b16[ d''] \bar "|"
}
IIb = \modalInversion b' b' \gMajorScale \IIa
IIc = \retrograde \IIa
IId = \retrograde \IIb

test =
#(define-music-function (id) (string?)
   (let ((mus (ly:parser-lookup (string->symbol id
 #{ \new Staff \with { instrumentName = $id } << \global $mus \\ $mus >> #}))

\bookpart {
  \test Ia
  \test Ib
  \test Ic
  \test Id
}

\bookpart {
  \test IIa
  \test IIb
  \test IIc
  \test IId
}

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


Fwd: Slash chords

2015-11-20 Thread Urs Liska
Dear Luca,

this is a question you should ask on the lilypond-user mailing list.
I have forwarded it there but I strongly suggest you subscribe at
https://lists.gnu.org/mailman/listinfo/lilypond-user to automatically
receive any replies.

Best
Urs

Am 20.11.2015 um 10:46 schrieb LilyPond blog contact form:
>
> /From:/ Luca Fascione
>
> /Message:/
>
> Hello,
> I've been using lilypond for a little while now and I rather like it.
>
> I've been able to achieve most of what I want for my engraving needs,
> but I think I need some help to set up slash chords like in this example
>
> http://www.apianotuner.com/img/RealBookSample.gif
>
> I'm using the font New Real Book Chords distributed here
> https://musescore.org/node/7785, and I have setup exceptions to the
> Ignatzek rules to drive the font correctly, but I can't find a way to
> tell lilypond that the bass note should be set lowered (like in the
> gif above).
>
> I have put a small repro case at the bottom of this message
>
> Any help or indication you could spare would be greatly appreciated (I
> am a fairly accomplished software engineer and I'm not afraid of
> writing code to achieve this, although I have to confess I am a C++
> guy, not a Guile/Scheme guy).
>
> Thanks very much
> Luca Fascione
>
> 
> example.ly
> 
> version 2.18.2
> % test for setting slash chords with realbookchords font
>
> chExceptionMusic = {
> c e g bes1-markup { 7 }
> c ees g1-markup {  }
> }
>
> chExceptions = #( append
> ( sequential-music-to-chord-exceptions chExceptionMusic #t)
> ignatzekExceptions)
>
> score {
> new StaffGroup 
> chords {
> override Score.ChordName #'font-name = #New Real Book Chords
> set chordNameExceptions = #chExceptions
> set slashChordSeparator = /
> f2.:m c:7/e
> }
> new Staff { key aes major time 3/4 c'4 aes'2 c'4 bes'2 }
> 
> layout {}
> }
>

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


Re: Install problem

2015-11-20 Thread lilyp...@andis59.se

OP is Original Poster.

When you answer please answer to the group. Don't just hit reply!
Depending on your email program you may have a Reply List otherwise use 
Reply all


// Anders

On 2015-11-20 16:46, Peter Fender wrote:


No pdf or log file, just nothing.

What’s an OP?

*From:*lilypond-user-bounces+peterfender=hotmail@gnu.org 
[mailto:lilypond-user-bounces+peterfender=hotmail@gnu.org] *On 
Behalf Of *lilyp...@andis59.se

*Sent:* 20 November 2015 15:34
*To:* lilypond-user@gnu.org
*Subject:* Re: Install problem

On my Windows 10 it works without "Run as Administrator"

The only thing that happens when you drop a .ly file on the shortcut 
is that it compiles the .ly file. If it's OK, then you will get a .pdf 
file otherwise it will create a .log file with the errors.


There will not be any dialog or anything that says that LilyPond is 
working!


Maybe a stupid question, but did the OP check for these files?

I recommend that the OP download and install Frescobaldi!
A very nice IDE for LilyPond!
http://frescobaldi.org/

// Anders

On 2015-11-20 16:26, Phil Holmes wrote:

I suspect this is a Windows 10 issue, and the clue to fixing it
may well be that nothing happens unless the shortcut is run as
Admin.  On my Vista box, I can right-click the shortcut, click
"Properties, "Advanced" and select "Run as administrator".  Could
you try that?


--
Phil Holmes

- Original Message -

*From:*Peter Fender 

*To:*lilypond-user@gnu.org 

*Sent:*Friday, November 20, 2015 2:38 PM

*Subject:*Install problem

Hi …

I have downloaded 2.18.2 and installed it.  When I double
click on the shortcut created nothing happens.  If I right
click (I’m on Windows 10) and Run as Administrator I get a DOS
window (blank) and a Welcome to Lilypond file – which tells me
to save it as test.ly to my desktop and then drop it on the
shortcut.  I’ve done that and nothing happens.  Any suggestions?

Thanks!
Peter



___
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



No virus found in this message.
Checked by AVG - www.avg.com 
Version: 2016.0.7227 / Virus Database: 4460/11034 - Release Date: 11/20/15



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


Re: Install problem

2015-11-20 Thread lilyp...@andis59.se

On my Windows 10 it works without "Run as Administrator"

The only thing that happens when you drop a .ly file on the shortcut is 
that it compiles the .ly file. If it's OK, then you will get a .pdf file 
otherwise it will create a .log file with the errors.


There will not be any dialog or anything that says that LilyPond is working!

Maybe a stupid question, but did the OP check for these files?

I recommend that the OP download and install Frescobaldi!
A very nice IDE for LilyPond!
http://frescobaldi.org/

// Anders

On 2015-11-20 16:26, Phil Holmes wrote:
I suspect this is a Windows 10 issue, and the clue to fixing it may 
well be that nothing happens unless the shortcut is run as Admin.  On 
my Vista box, I can right-click the shortcut, click "Properties, 
"Advanced" and select "Run as administrator".  Could you try that?


--
Phil Holmes

- Original Message -
*From:* Peter Fender 
*To:* lilypond-user@gnu.org 
*Sent:* Friday, November 20, 2015 2:38 PM
*Subject:* Install problem

Hi …

I have downloaded 2.18.2 and installed it.  When I double click on
the shortcut created nothing happens.  If I right click (I’m on
Windows 10) and Run as Administrator I get a DOS window (blank)
and a Welcome to Lilypond file – which tells me to save it as
test.ly to my desktop and then drop it on the shortcut.  I’ve done
that and nothing happens.  Any suggestions?

Thanks!
Peter


___
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


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


Re: Install problem

2015-11-20 Thread Phil Holmes
I suspect this is a Windows 10 issue, and the clue to fixing it may well be 
that nothing happens unless the shortcut is run as Admin.  On my Vista box, I 
can right-click the shortcut, click "Properties, "Advanced" and select "Run as 
administrator".  Could you try that?

--
Phil Holmes


  - Original Message - 
  From: Peter Fender 
  To: lilypond-user@gnu.org 
  Sent: Friday, November 20, 2015 2:38 PM
  Subject: Install problem


  Hi .

   

  I have downloaded 2.18.2 and installed it.  When I double click on the 
shortcut created nothing happens.  If I right click (I'm on Windows 10) and Run 
as Administrator I get a DOS window (blank) and a Welcome to Lilypond file - 
which tells me to save it as test.ly to my desktop and then drop it on the 
shortcut.  I've done that and nothing happens.  Any suggestions?

  Thanks!
  Peter



--


  ___
  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


Lilypond+Emacs

2015-11-20 Thread Amir Teymuri
Hello Lilypond communiy,

 

i am new to lilypond, i am trying to set up the lilypond mode in emacs, till now unsuccessfuly!

This is what i have tried so far:


	downloaded the lilypond extecutable sh file from the homepage and installed it by doing this command: 
	sh lilypond-2.18.2-1.linux.x86.sh
	


in the directory i downloaded the sh file. But in my /usr/local/lilypond/ there is only a usr directory and nothing more (no el files or such)

 

What i going wrong?

 

Thank you


sudo sh lilypond-2.18.2-1.linux-x86.sh 


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


Re: Lilypond+Emacs

2015-11-20 Thread Simon Albrecht

On 20.11.2015 16:40, Amir Teymuri wrote:

Hello Lilypond communiy,
i am new to lilypond, i am trying to set up the lilypond mode in 
emacs, till now unsuccessfuly!

This is what i have tried so far:

 1. downloaded the lilypond extecutable sh file from the homepage and
installed it by doing this command:
sh lilypond-2.18.2-1.linux.x86.sh

in the directory i downloaded the sh file. But in my 
/usr/local/lilypond/ there is only a usr directory and nothing more 
(no el files or such)


The .el files should be in lilypond/usr/share/emacs/site-lisp/.

HTH, Simon

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


Re: Install problem

2015-11-20 Thread lilyp...@andis59.se
Just remembered that I didn't use the default directory C:\Program Files 
(x86)\Lilypond

I used C:\lilypond instead.
So Phils idea of a rights issue is probably right!

// Anders

On 2015-11-20 16:34, lilyp...@andis59.se wrote:

On my Windows 10 it works without "Run as Administrator"

The only thing that happens when you drop a .ly file on the shortcut 
is that it compiles the .ly file. If it's OK, then you will get a .pdf 
file otherwise it will create a .log file with the errors.


There will not be any dialog or anything that says that LilyPond is 
working!


Maybe a stupid question, but did the OP check for these files?

I recommend that the OP download and install Frescobaldi!
A very nice IDE for LilyPond!
http://frescobaldi.org/

// Anders

On 2015-11-20 16:26, Phil Holmes wrote:
I suspect this is a Windows 10 issue, and the clue to fixing it may 
well be that nothing happens unless the shortcut is run as Admin.  On 
my Vista box, I can right-click the shortcut, click "Properties, 
"Advanced" and select "Run as administrator".  Could you try that?


--
Phil Holmes

- Original Message -
*From:* Peter Fender 
*To:* lilypond-user@gnu.org
*Sent:* Friday, November 20, 2015 2:38 PM
*Subject:* Install problem

Hi …

I have downloaded 2.18.2 and installed it.  When I double click
on the shortcut created nothing happens.  If I right click (I’m
on Windows 10) and Run as Administrator I get a DOS window
(blank) and a Welcome to Lilypond file – which tells me to save
it as test.ly to my desktop and then drop it on the shortcut. 
I’ve done that and nothing happens.  Any suggestions?


Thanks!
Peter


___
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




___
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: Install problem

2015-11-20 Thread Urs Liska
Frescobaldy is s good choice to begin with.

It *is* somewhat complex but if you don't rush and don't hesitate to ask it is 
feasible - and rewarding. 

Enter a minimal file in Frescobaldi:

{ c' }

and hit the compile button. If that produces a minimal score you've done the 
first step. 

Good luck
Urs

Am 20. November 2015 16:45:24 MEZ, schrieb Peter Fender 
:
>So mainly what I've worked out is that an IDE is probably the most
>straightforward way to go, so I've downloaded Frescobaldi.  This all
>feels
>too complex!  
>
> 
>
>I have some .ly files that I'm trying to read . but also some .ily
>files too
>. don't have a clue what I'm doing.  
>
> 
>
>From: lilypond-user-bounces+peterfender=hotmail@gnu.org
>[mailto:lilypond-user-bounces+peterfender=hotmail@gnu.org] On
>Behalf Of
>Urs Liska
>Sent: 20 November 2015 15:10
>To: lilypond-user@gnu.org
>Subject: Re: Install problem
>
> 
>
> 
>
>Am 20.11.2015 um 15:38 schrieb Peter Fender:
>
>Hi .
>
> 
>
>I have downloaded 2.18.2 and installed it.  When I double click on the
>shortcut created nothing happens.  If I right click (I'm on Windows 10)
>and
>Run as Administrator I get a DOS window (blank) and a Welcome to
>Lilypond
>file - which tells me to save it as test.ly to my desktop and then drop
>it
>on the shortcut.  I've done that and nothing happens.  Any suggestions?
>
>
>You are the perfect candidate to beta-test my introduction that can
>currently be found at
>
>
>https://bookbranches.openlilylib.org/introduction/toolchain/index.html
>
>Nearly the same wording ;-)
>
>Actually the document starts at 
> 
>https://bookbranches.openlilylib.org/introduction/
>and the "next" link will point you to that.
>
>Please go to that page and tell me if it helps you understanding what's
>going on. (Only everything below 1. is relevant)
>
>Thanks and HTH
>Urs
>
>
>
>
>
>Thanks!
>Peter
>
>
>
>
>
>
>___
>lilypond-user mailing list
>lilypond-user@gnu.org  
>https://lists.gnu.org/mailman/listinfo/lilypond-user
>
> 
>
>  _  
>
>No virus found in this message.
>Checked by AVG -   www.avg.com
>Version: 2016.0.7227 / Virus Database: 4460/11034 - Release Date:
>11/20/15

-- 
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Aw: Re: Lilypond+Emacs

2015-11-20 Thread Simon Albrecht

Hello Amir,

I’m not familiar with Emacs at all. Please always ‘reply all’, 
especially include the list.

Sorry to be no further help here.

Yours, Simon

On 20.11.2015 19:26, Amir Teymuri wrote:

Hello,
i have now uninstalled lilypond and reinstalled it again from the 
package repository, there is no directories named 
usr/share/emacs/site-lisp/ in the lilypond directory in my 
~/usr/share. I have put this in my init.el:
*(setq load-path (append (list (expand-file-name 
"~/usr/share/emacs/site-lisp")) load-path))

(autoload 'LilyPond-mode "lilypond-mode" "LilyPond Editing Mode" t)
(add-to-list 'auto-mode-alist '("\\.ly$" . LilyPond-mode))
(add-to-list 'auto-mode-alist '("\\.ily$" . LilyPond-mode))
(add-hook 'LilyPond-mode-hook (lambda () (turn-on-font-lock)))*
But if now i open an .ly file the text are colored, and i see a 
LilyPond at the top of minibuffer (as majormode), but there are no 
autocompletions (although there are auto-indentations), is this now 
the correct lilypond mode?

thanks
*Gesendet:* Freitag, 20. November 2015 um 17:14 Uhr
*Von:* "Simon Albrecht" 
*An:* "Amir Teymuri" , lilypond-user@gnu.org
*Betreff:* Re: Lilypond+Emacs
On 20.11.2015 16:40, Amir Teymuri wrote:
> Hello Lilypond communiy,
> i am new to lilypond, i am trying to set up the lilypond mode in
> emacs, till now unsuccessfuly!
> This is what i have tried so far:
>
> 1. downloaded the lilypond extecutable sh file from the homepage and
> installed it by doing this command:
> sh lilypond-2.18.2-1.linux.x86.sh
>
> in the directory i downloaded the sh file. But in my
> /usr/local/lilypond/ there is only a usr directory and nothing more
> (no el files or such)

The .el files should be in lilypond/usr/share/emacs/site-lisp/.

HTH, Simon



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


Aw: Re: Lilypond+Emacs

2015-11-20 Thread Amir Teymuri

Hello,

 

i have now uninstalled lilypond and reinstalled it again from the package repository, there is no directories named usr/share/emacs/site-lisp/ in the lilypond directory in my ~/usr/share. I have put this in my init.el:

(setq load-path (append (list (expand-file-name "~/usr/share/emacs/site-lisp")) load-path))
(autoload 'LilyPond-mode "lilypond-mode" "LilyPond Editing Mode" t)
(add-to-list 'auto-mode-alist '("\\.ly$" . LilyPond-mode))
(add-to-list 'auto-mode-alist '("\\.ily$" . LilyPond-mode))
(add-hook 'LilyPond-mode-hook (lambda () (turn-on-font-lock)))

 

But if now i open an .ly file the text are colored, and i see a LilyPond at the top of minibuffer (as majormode), but there are no autocompletions (although there are auto-indentations), is this now the correct lilypond mode?

 

thanks

 

Gesendet: Freitag, 20. November 2015 um 17:14 Uhr
Von: "Simon Albrecht" 
An: "Amir Teymuri" , lilypond-user@gnu.org
Betreff: Re: Lilypond+Emacs

On 20.11.2015 16:40, Amir Teymuri wrote:
> Hello Lilypond communiy,
> i am new to lilypond, i am trying to set up the lilypond mode in
> emacs, till now unsuccessfuly!
> This is what i have tried so far:
>
> 1. downloaded the lilypond extecutable sh file from the homepage and
> installed it by doing this command:
> sh lilypond-2.18.2-1.linux.x86.sh
>
> in the directory i downloaded the sh file. But in my
> /usr/local/lilypond/ there is only a usr directory and nothing more
> (no el files or such)

The .el files should be in lilypond/usr/share/emacs/site-lisp/.

HTH, Simon




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


Re: Install problem

2015-11-20 Thread Stan Sanderson
Re: Frescobaldi, my appreciation increases with every use. Even though I've 
been using it since Davide L. provided the files on MacPort, most of my use is 
at the elementary level. This explains how I accidentally discovered the "quick 
insert" capability just a day or two ago. I had seen it in the Tools but never 
took the time to look it up. Oh, how much time I could have saved if I had!

Thanks to Wilbert Berendsen for his original coding and all who have 
contributed to it.

Stan

> On Nov 20, 2015, at 11:36 AM, Urs Liska  wrote:
> 
> Frescobaldy is s good choice to begin with.
> 
> It *is* somewhat complex but if you don't rush and don't hesitate to ask it 
> is feasible - and rewarding. 
> 
> Enter a minimal file in Frescobaldi:
> 
> { c' }
> 
> and hit the compile button. If that produces a minimal score you've done the 
> first step. 
> 
> Good luck
> Urs
> 
> Am 20. November 2015 16:45:24 MEZ, schrieb Peter Fender 
> :
>> 
>> So mainly what I’ve worked out is that an IDE is probably the most 
>> straightforward way to go, so I’ve downloaded Frescobaldi.  This all feels 
>> too complex! 
>>  
>> 
>> I have some .ly files that I’m trying to read … but also some .ily files too 
>> … don’t have a clue what I’m doing. 
>>  
>> 
>> From: lilypond-user-bounces+peterfender=hotmail@gnu.org 
>> [mailto:lilypond-user-bounces+peterfender=hotmail@gnu.org] On Behalf Of 
>> Urs Liska
>> Sent: 20 November 2015 15:10
>> To: lilypond-user@gnu.org
>> Subject: Re: Install problem
>>  
>> 
>> 
>>  
>> 
>> Am 20.11.2015 um 15:38 schrieb Peter Fender:
>> Hi …
>>  
>> I have downloaded 2.18.2 and installed it.  When I double click on the 
>> shortcut created nothing happens.  If I right click (I’m on Windows 10) and 
>> Run as Administrator I get a DOS window (blank) and a Welcome to Lilypond 
>> file – which tells me to save it as test.ly to my desktop and then drop it 
>> on the shortcut.  I’ve done that and nothing happens.  Any suggestions?
>> 
>> 
>> You are the perfect candidate to beta-test my introduction that can 
>> currently be found at
>> 
>> https://bookbranches.openlilylib.org/introduction/toolchain/index.html
>> 
>> Nearly the same wording ;-)
>> 
>> Actually the document starts at 
>> https://bookbranches.openlilylib.org/introduction/
>> and the "next" link will point you to that.
>> 
>> Please go to that page and tell me if it helps you understanding what's 
>> going on. (Only everything below 1. is relevant)
>> 
>> Thanks and HTH
>> Urs
>> 
>> 
>> 
>> Thanks!
>> Peter
>> 
>> 
>> 
>> ___
>> lilypond-user mailing list
>> lilypond-user@gnu.org
>> https://lists.gnu.org/mailman/listinfo/lilypond-user
>>  
>> 
>> No virus found in this message.
>> Checked by AVG - www.avg.com
>> Version: 2016.0.7227 / Virus Database: 4460/11034 - Release Date: 11/20/15
> 
> -- 
> Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.
> ___
> 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


warning if line is too wide?

2015-11-20 Thread Malte Meyn

Hi list,

is it possible to be informed by LilyPond if a line in the pdf is too 
wide because of too many notes or \noBreak etc. (like LaTeX’ overfull 
hbox warnings)? Sometimes this would be useful (f. e. in cases where a 
line is only a little bit too wide).


Malte

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


cross-staff stems for only two of three staves

2015-11-20 Thread Malte Meyn

Hi list,

I would like to set cross staff stems in a three-staff piano score. With 
stems from the middle to lower or upper staff everything works fine but 
not the other way (from outer to middle staff). Does anyone have an idea 
how to fix that or work around?


\version "2.19.30"

\new PianoStaff \with {
  \consists #Span_stem_engraver
  \autoBeamOff
} <<
  \new Staff {
e'8 f'
\crossStaff e'' f'' % not ok
  }
  \new Staff {
d'8 \crossStaff e' % ok
d'' \crossStaff e'' % ok
  }
  \new Staff {
\crossStaff c'8 d' % not ok
c'' d''
  }
>>

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


Re: Fwd: Slash chords

2015-11-20 Thread Simon Albrecht

Hello Luca,

with the help of the french blog post jmechmech linked in his reply, I 
cooked up the following from your code:



\version "2.18.2"

#(define (lower-extension pitch chbass)
   "Return lowered markup for pitch note name."
   #{
 \markup \raise #-1.9 \halign #0.2
 #(note-name->markup pitch chbass)
   #})

chExceptionMusic = {
  1-\markup { "7" }
  %1-\markup { "<7/" \raise #-2.5 "B" } % for illustration 
purposes only

  1-\markup { ">" }
}

chExceptions = #(append
 (sequential-music-to-chord-exceptions chExceptionMusic #t)
 ignatzekExceptions)

\layout {
  \context {
\ChordNames
\override ChordName.font-name = #"New Real Book Chords"
chordNameExceptions = \chExceptions
slashChordSeparator = \markup {
  % the \hspace commands simulate kerning
  \hspace #-.7
  \fontsize #1 \lower #1.2 \rotate #-10 "/"
  \hspace #-.1
}
chordNoteNamer = #lower-extension
  }
}

\score {
  \new StaffGroup <<
\chords {
  f2.:m c4:7/e c2:maj7
}
\new Staff { \key aes \major \time 3/4 c'4 aes'2 c'4 bes'2 }
  >>
  \layout { }
}
%%

Does that do what you want? I couldn’t test it with the actual font, of 
course, only with LilyPond’s default Sans font. So you’ll likely have to 
adjust the numerical values in lines 6 and 27–29 to taste. See 
 
for documentation on the markup commands (you can also look them up in 
the index, section D of the Notation Reference).
You can fitfully use the \layout {} block in a stylesheet (i.e., a 
separate .ily file to \include everywhere you want this kind of chord 
names display).


HTH, Simon

On 20.11.2015 22:04, Luca Fascione wrote:
Actually, sorry for not thinking about this before, but writing it in 
LaTeX gave me an idea to illustrate what I'd like to achieve (roughly).


%%
\version "2.18.2"
% test for setting slash chords with realbookchords font

chExceptionMusic = {
  1-\markup { "7" }
  1-\markup { "<7/" \raise #-2.5 "B" } % for illustration 
purposes only

  1-\markup { ">" }
}

chExceptions = #( append
  ( sequential-music-to-chord-exceptions chExceptionMusic #t)
  ignatzekExceptions)

\score {
  \new StaffGroup <<
\chords {
\override Score.ChordName #'font-name = #"New Real Book Chords"
\set chordNameExceptions = #chExceptions
\set slashChordSeparator = "/"
f2.:m c4:7/e c2:maj7
}
\new Staff { \key aes \major \time 3/4 c'4 aes'2 c'4 bes'2 }
  >>
  \layout {}
}
%%

You can see I have hardcoded the form of Cmaj7 to render as Cmaj7/B, 
but the spacing feels like a step in the right direction (admittedly 
the kerning could use work, but it feels like a reasonable compromise)


I have attached the corresponding pdf I get, so you can see what I mean

Thanks,
Luca

On Sat, Nov 21, 2015 at 9:27 AM, Luca Fascione > wrote:


Thanks Simon!
I'm also attaching the small GIF from the other website for reference,
and the result I presently get from 2.18.2.

It seems this question has come up a long time ago but I couldn't
find a definitive resolution to it.

As I was saying, I am happy to contribute time to the coding if it
helps, but I could certainly use a bit of guidance as to where to
start.

Things are never this simple, but in LaTeX-speak it seems to me
all it's needed is to wrap the bass note in something more or less
like \raisebox{-1ex}{E} (and maybe mess a bit with the kerning of
the slash, hard to say without trying it out).

I've tried to look in the source (for 2.18.2) and I found that in
chord-ignatzek-names.scm, around line 210, it calls a routine
names make-line-markup, which might be near where the modification
needs to happen. But I have no idea how to override the behaviour
of that piece of code from my source file.

Thanks for your help
Luca

On Fri, Nov 20, 2015 at 11:36 PM, Simon Albrecht
> wrote:

On 20.11.2015 10:56, Urs Liska wrote:

Dear Luca,

this is a question you should ask on the lilypond-user
mailing list.
I have forwarded it there but I strongly suggest you
subscribe at
https://lists.gnu.org/mailman/listinfo/lilypond-user to
automatically receive any replies.

Best
Urs

Am 20.11.2015 um 10:46 schrieb LilyPond blog contact form:


/From:/ Luca Fascione

/Message:/

Hello,
I've been using lilypond for a little while now and I
rather like it.

I've been able to achieve most of what I want for my
engraving needs, but I think I need some help to set
  

Re: Strange error(?) message when invoking lilypond-book

2015-11-20 Thread David Kastrup
Speldosa  writes:

> I'm running OS X 10.11 and LilyPond version 2.18.2-1. I'm trying to invoke
> lilypond-book via terminal by typing the following (I've tried getting the
> path option to work, but I've given up after a gazillion tries):
>
> /Applications/LilyPond.app/Contents/Resources/bin/lilypond-book
> Test.lytex
>
> What I'm served with after running this command is the following:
>
> File "/Applications/LilyPond.app/Contents/Resources/bin/lilypond-book",
> line 590
> os.mkdir (global_options.output_dir, 0777)
> ^
> SyntaxError: invalid token
>
> Am I even supposed to see this? Is this a valid error message (in that case,
> it's not making a lot of sense)? I've been able to locate the origin in the
> source code, but that doesn't help me very much.
>
> Anybody got any ideas?

LilyPond does not support Python 3 yet.  Python 3 syntax for octal
numbers is 0o777 instead of 0777.  I would be surprised if this were the
only problem, though, so you better try to change the scripts to use
some Python 2 interpreter.

-- 
David Kastrup

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


Re: Fwd: Slash chords

2015-11-20 Thread Luca Fascione
Actually, sorry for not thinking about this before, but writing it in LaTeX
gave me an idea to illustrate what I'd like to achieve (roughly).

%%
\version "2.18.2"
% test for setting slash chords with realbookchords font

chExceptionMusic = {
  1-\markup { "7" }
  1-\markup { "<7/" \raise #-2.5 "B" } % for illustration purposes
only
  1-\markup { ">" }
}

chExceptions = #( append
  ( sequential-music-to-chord-exceptions chExceptionMusic #t)
  ignatzekExceptions)

\score {
  \new StaffGroup <<
\chords {
\override Score.ChordName #'font-name = #"New Real Book Chords"
\set chordNameExceptions = #chExceptions
\set slashChordSeparator = "/"
f2.:m c4:7/e c2:maj7
}
\new Staff { \key aes \major \time 3/4 c'4 aes'2 c'4 bes'2 }
  >>
  \layout {}
}
%%

You can see I have hardcoded the form of Cmaj7 to render as Cmaj7/B, but
the spacing feels like a step in the right direction (admittedly the
kerning could use work, but it feels like a reasonable compromise)

I have attached the corresponding pdf I get, so you can see what I mean

Thanks,
Luca

On Sat, Nov 21, 2015 at 9:27 AM, Luca Fascione  wrote:

> Thanks Simon!
> I'm also attaching the small GIF from the other website for reference,
> and the result I presently get from 2.18.2.
>
> It seems this question has come up a long time ago but I couldn't find a
> definitive resolution to it.
>
> As I was saying, I am happy to contribute time to the coding if it helps,
> but I could certainly use a bit of guidance as to where to start.
>
> Things are never this simple, but in LaTeX-speak it seems to me all it's
> needed is to wrap the bass note in something more or less like 
> \raisebox{-1ex}{E}
> (and maybe mess a bit with the kerning of the slash, hard to say without
> trying it out).
>
> I've tried to look in the source (for 2.18.2) and I found that in
> chord-ignatzek-names.scm, around line 210, it calls a routine names
> make-line-markup, which might be near where the modification needs to
> happen. But I have no idea how to override the behaviour of that piece of
> code from my source file.
>
> Thanks for your help
> Luca
>
> On Fri, Nov 20, 2015 at 11:36 PM, Simon Albrecht 
> wrote:
>
>> On 20.11.2015 10:56, Urs Liska wrote:
>>
>>> Dear Luca,
>>>
>>> this is a question you should ask on the lilypond-user mailing list.
>>> I have forwarded it there but I strongly suggest you subscribe at
>>> https://lists.gnu.org/mailman/listinfo/lilypond-user to automatically
>>> receive any replies.
>>>
>>> Best
>>> Urs
>>>
>>> Am 20.11.2015 um 10:46 schrieb LilyPond blog contact form:
>>>

 /From:/ Luca Fascione

 /Message:/

 Hello,
 I've been using lilypond for a little while now and I rather like it.

 I've been able to achieve most of what I want for my engraving needs,
 but I think I need some help to set up slash chords like in this example

 http://www.apianotuner.com/img/RealBookSample.gif

 I'm using the font New Real Book Chords distributed here
 https://musescore.org/node/7785, and I have setup exceptions to the
 Ignatzek rules to drive the font correctly, but I can't find a way to tell
 lilypond that the bass note should be set lowered (like in the gif above).

 I have put a small repro case at the bottom of this message

 Any help or indication you could spare would be greatly appreciated (I
 am a fairly accomplished software engineer and I'm not afraid of writing
 code to achieve this, although I have to confess I am a C++ guy, not a
 Guile/Scheme guy).

 Thanks very much
 Luca Fascione

 
 example.ly


>> Too bad the code got messed up. Here is a (hopefully) clean version:
>> %%
>> \version "2.18.2"
>> % test for setting slash chords with realbookchords font
>>
>> chExceptionMusic = {
>>   1-\markup { "7" }
>>   1-\markup { ">" }
>> }
>>
>> chExceptions = #(append
>>   (sequential-music-to-chord-exceptions chExceptionMusic
>> #t)
>>   ignatzekExceptions)
>>
>> \score {
>>   \new StaffGroup <<
>> \chords {
>>   \override Score.ChordName.font-name = #"New Real Book Chords"
>>   \set chordNameExceptions = #chExceptions
>>   \set slashChordSeparator = "/"
>>   f2.:m c:7/e
>> }
>> \new Staff { \key aes \major \time 3/4 c'4 aes'2 c'4 bes'2 }
>>   >>
>>   \layout {}
>> }
>> %
>> and once attached, just in case.
>>
>> Yours, Simon
>>
>
>


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


Re: Fwd: Slash chords

2015-11-20 Thread Luca Fascione
Thanks Simon!
I'm also attaching the small GIF from the other website for reference,
and the result I presently get from 2.18.2.

It seems this question has come up a long time ago but I couldn't find a
definitive resolution to it.

As I was saying, I am happy to contribute time to the coding if it helps,
but I could certainly use a bit of guidance as to where to start.

Things are never this simple, but in LaTeX-speak it seems to me all it's
needed is to wrap the bass note in something more or less like
\raisebox{-1ex}{E}
(and maybe mess a bit with the kerning of the slash, hard to say without
trying it out).

I've tried to look in the source (for 2.18.2) and I found that in
chord-ignatzek-names.scm, around line 210, it calls a routine names
make-line-markup, which might be near where the modification needs to
happen. But I have no idea how to override the behaviour of that piece of
code from my source file.

Thanks for your help
Luca

On Fri, Nov 20, 2015 at 11:36 PM, Simon Albrecht 
wrote:

> On 20.11.2015 10:56, Urs Liska wrote:
>
>> Dear Luca,
>>
>> this is a question you should ask on the lilypond-user mailing list.
>> I have forwarded it there but I strongly suggest you subscribe at
>> https://lists.gnu.org/mailman/listinfo/lilypond-user to automatically
>> receive any replies.
>>
>> Best
>> Urs
>>
>> Am 20.11.2015 um 10:46 schrieb LilyPond blog contact form:
>>
>>>
>>> /From:/ Luca Fascione
>>>
>>> /Message:/
>>>
>>> Hello,
>>> I've been using lilypond for a little while now and I rather like it.
>>>
>>> I've been able to achieve most of what I want for my engraving needs,
>>> but I think I need some help to set up slash chords like in this example
>>>
>>> http://www.apianotuner.com/img/RealBookSample.gif
>>>
>>> I'm using the font New Real Book Chords distributed here
>>> https://musescore.org/node/7785, and I have setup exceptions to the
>>> Ignatzek rules to drive the font correctly, but I can't find a way to tell
>>> lilypond that the bass note should be set lowered (like in the gif above).
>>>
>>> I have put a small repro case at the bottom of this message
>>>
>>> Any help or indication you could spare would be greatly appreciated (I
>>> am a fairly accomplished software engineer and I'm not afraid of writing
>>> code to achieve this, although I have to confess I am a C++ guy, not a
>>> Guile/Scheme guy).
>>>
>>> Thanks very much
>>> Luca Fascione
>>>
>>> 
>>> example.ly
>>>
>>>
> Too bad the code got messed up. Here is a (hopefully) clean version:
> %%
> \version "2.18.2"
> % test for setting slash chords with realbookchords font
>
> chExceptionMusic = {
>   1-\markup { "7" }
>   1-\markup { ">" }
> }
>
> chExceptions = #(append
>   (sequential-music-to-chord-exceptions chExceptionMusic
> #t)
>   ignatzekExceptions)
>
> \score {
>   \new StaffGroup <<
> \chords {
>   \override Score.ChordName.font-name = #"New Real Book Chords"
>   \set chordNameExceptions = #chExceptions
>   \set slashChordSeparator = "/"
>   f2.:m c:7/e
> }
> \new Staff { \key aes \major \time 3/4 c'4 aes'2 c'4 bes'2 }
>   >>
>   \layout {}
> }
> %
> and once attached, just in case.
>
> Yours, Simon
>


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


Strange error(?) message when invoking lilypond-book

2015-11-20 Thread Speldosa
I'm running OS X 10.11 and LilyPond version 2.18.2-1. I'm trying to invoke
lilypond-book via terminal by typing the following (I've tried getting the
path option to work, but I've given up after a gazillion tries):

/Applications/LilyPond.app/Contents/Resources/bin/lilypond-book
Test.lytex

What I'm served with after running this command is the following:

File "/Applications/LilyPond.app/Contents/Resources/bin/lilypond-book",
line 590
os.mkdir (global_options.output_dir, 0777)
^
SyntaxError: invalid token

Am I even supposed to see this? Is this a valid error message (in that case,
it's not making a lot of sense)? I've been able to locate the origin in the
source code, but that doesn't help me very much.

Anybody got any ideas?



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Strange-error-message-when-invoking-lilypond-book-tp183876.html
Sent from the User mailing list archive at Nabble.com.

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


Re: Fwd: Slash chords

2015-11-20 Thread Luca Fascione
Wow looks brilliant! I'm away from my computer at the moment but I'll test
later in the day and report, I think it's great!  Thanks a lot Simon!
Luca
On 21 Nov 2015 10:36, "Simon Albrecht"  wrote:

> Hello Luca,
>
> with the help of the french blog post jmechmech linked in his reply, I
> cooked up the following from your code:
>
> 
> \version "2.18.2"
>
> #(define (lower-extension pitch chbass)
>"Return lowered markup for pitch note name."
>#{
>  \markup \raise #-1.9 \halign #0.2
>  #(note-name->markup pitch chbass)
>#})
>
> chExceptionMusic = {
>   1-\markup { "7" }
>   %1-\markup { "<7/" \raise #-2.5 "B" } % for illustration
> purposes only
>   1-\markup { ">" }
> }
>
> chExceptions = #(append
>  (sequential-music-to-chord-exceptions chExceptionMusic #t)
>  ignatzekExceptions)
>
> \layout {
>   \context {
> \ChordNames
> \override ChordName.font-name = #"New Real Book Chords"
> chordNameExceptions = \chExceptions
> slashChordSeparator = \markup {
>   % the \hspace commands simulate kerning
>   \hspace #-.7
>   \fontsize #1 \lower #1.2 \rotate #-10 "/"
>   \hspace #-.1
> }
> chordNoteNamer = #lower-extension
>   }
> }
>
> \score {
>   \new StaffGroup <<
> \chords {
>   f2.:m c4:7/e c2:maj7
> }
> \new Staff { \key aes \major \time 3/4 c'4 aes'2 c'4 bes'2 }
>   >>
>   \layout { }
> }
> %%
>
> Does that do what you want? I couldn’t test it with the actual font, of
> course, only with LilyPond’s default Sans font. So you’ll likely have to
> adjust the numerical values in lines 6 and 27–29 to taste. See <
> http://lilypond.org/doc/v2.18/Documentation/notation/text-markup-commands>
> for documentation on the markup commands (you can also look them up in the
> index, section D of the Notation Reference).
> You can fitfully use the \layout {} block in a stylesheet (i.e., a
> separate .ily file to \include everywhere you want this kind of chord names
> display).
>
> HTH, Simon
>
> On 20.11.2015 22:04, Luca Fascione wrote:
>
>> Actually, sorry for not thinking about this before, but writing it in
>> LaTeX gave me an idea to illustrate what I'd like to achieve (roughly).
>>
>> %%
>> \version "2.18.2"
>> % test for setting slash chords with realbookchords font
>>
>> chExceptionMusic = {
>>   1-\markup { "7" }
>>   1-\markup { "<7/" \raise #-2.5 "B" } % for illustration
>> purposes only
>>   1-\markup { ">" }
>> }
>>
>> chExceptions = #( append
>>   ( sequential-music-to-chord-exceptions chExceptionMusic #t)
>>   ignatzekExceptions)
>>
>> \score {
>>   \new StaffGroup <<
>> \chords {
>> \override Score.ChordName #'font-name = #"New Real Book Chords"
>> \set chordNameExceptions = #chExceptions
>> \set slashChordSeparator = "/"
>> f2.:m c4:7/e c2:maj7
>> }
>> \new Staff { \key aes \major \time 3/4 c'4 aes'2 c'4 bes'2 }
>>   >>
>>   \layout {}
>> }
>> %%
>>
>> You can see I have hardcoded the form of Cmaj7 to render as Cmaj7/B, but
>> the spacing feels like a step in the right direction (admittedly the
>> kerning could use work, but it feels like a reasonable compromise)
>>
>> I have attached the corresponding pdf I get, so you can see what I mean
>>
>> Thanks,
>> Luca
>>
>> On Sat, Nov 21, 2015 at 9:27 AM, Luca Fascione > > wrote:
>>
>> Thanks Simon!
>> I'm also attaching the small GIF from the other website for reference,
>> and the result I presently get from 2.18.2.
>>
>> It seems this question has come up a long time ago but I couldn't
>> find a definitive resolution to it.
>>
>> As I was saying, I am happy to contribute time to the coding if it
>> helps, but I could certainly use a bit of guidance as to where to
>> start.
>>
>> Things are never this simple, but in LaTeX-speak it seems to me
>> all it's needed is to wrap the bass note in something more or less
>> like \raisebox{-1ex}{E} (and maybe mess a bit with the kerning of
>> the slash, hard to say without trying it out).
>>
>> I've tried to look in the source (for 2.18.2) and I found that in
>> chord-ignatzek-names.scm, around line 210, it calls a routine
>> names make-line-markup, which might be near where the modification
>> needs to happen. But I have no idea how to override the behaviour
>> of that piece of code from my source file.
>>
>> Thanks for your help
>> Luca
>>
>> On Fri, Nov 20, 2015 at 11:36 PM, Simon Albrecht
>> > wrote:
>>
>> On 20.11.2015 10:56, Urs Liska wrote:
>>
>> Dear Luca,
>>
>> this is a question you should ask on the lilypond-user
>> mailing list.
>> I have forwarded it there but I strongly suggest you
>> subscribe at
>> 

Re: Fwd: Slash chords

2015-11-20 Thread Luca Fascione
Hi Simon,
so this actually works rather well, I ended up taking the rotation out, as
with the actual font you get a better sense of the nib direction with the
original orientation of the solidus, nonetheless I do really like your
suggestion of using a slightly larger size, I find it does help a fair bit
with overall balance and blackness. I also messed with kerning a little

I have attached a test of the latest results, I find it looks ok (and it's
certainly good enough for my present purpose), but it could be better.

I think there are two issues at present: on the "top" of the solidus the
chords with sevenths have the slash too far to their right, the F minor has
it a touch loose, and the F major has it a touch tight. On the bottom of
the solidus, I like how B and G sit, I think A sits loose and E sits far
too tight, the present settings being somewhat of a compromise.

I suspect this is because lilypond, like TeX, thinks in boxes, and that,
combined a possibly not too accurate kerning table for the font, is not
working too well.

So the reason for this message is just to enquire as to the offchance of
being able to adjust the kerning of the bass notes on a per-note basis and
some way to do the same for the top.

(Note that this font is odd, in the the 7th symbol is raised in its
natural, baseline-referred form: you can see this in the overrides, where
asking for C7 actually yields C^7)

Anyways, in the off chance this is fixable, I'd be keen to hear how to do
so, in any event many thanks for your help so far, this is of enormous help

Cheers,
Luca


On Sat, Nov 21, 2015 at 10:36 AM, Simon Albrecht 
wrote:

> Hello Luca,
>
> with the help of the french blog post jmechmech linked in his reply, I
> cooked up the following from your code:
>
> 
> \version "2.18.2"
>
> #(define (lower-extension pitch chbass)
>"Return lowered markup for pitch note name."
>#{
>  \markup \raise #-1.9 \halign #0.2
>  #(note-name->markup pitch chbass)
>#})
>
> chExceptionMusic = {
>   1-\markup { "7" }
>   %1-\markup { "<7/" \raise #-2.5 "B" } % for illustration
> purposes only
>   1-\markup { ">" }
> }
>
> chExceptions = #(append
>  (sequential-music-to-chord-exceptions chExceptionMusic #t)
>  ignatzekExceptions)
>
> \layout {
>   \context {
> \ChordNames
> \override ChordName.font-name = #"New Real Book Chords"
> chordNameExceptions = \chExceptions
> slashChordSeparator = \markup {
>   % the \hspace commands simulate kerning
>   \hspace #-.7
>   \fontsize #1 \lower #1.2 \rotate #-10 "/"
>   \hspace #-.1
> }
> chordNoteNamer = #lower-extension
>   }
> }
>
> \score {
>   \new StaffGroup <<
> \chords {
>   f2.:m c4:7/e c2:maj7
> }
> \new Staff { \key aes \major \time 3/4 c'4 aes'2 c'4 bes'2 }
>   >>
>   \layout { }
> }
> %%
>
> Does that do what you want? I couldn’t test it with the actual font, of
> course, only with LilyPond’s default Sans font. So you’ll likely have to
> adjust the numerical values in lines 6 and 27–29 to taste. See <
> http://lilypond.org/doc/v2.18/Documentation/notation/text-markup-commands>
> for documentation on the markup commands (you can also look them up in the
> index, section D of the Notation Reference).
> You can fitfully use the \layout {} block in a stylesheet (i.e., a
> separate .ily file to \include everywhere you want this kind of chord names
> display).
>
> HTH, Simon
>
>


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


Re: Strange error(?) message when invoking lilypond-book

2015-11-20 Thread Speldosa
Thanks! Running the same terminal code with "python2" at the beginning did
the trick!



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Strange-error-message-when-invoking-lilypond-book-tp183876p183884.html
Sent from the User mailing list archive at Nabble.com.

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


SVG fonts

2015-11-20 Thread Andrew Bernard
I am attempting to produce SVG output from lilypond 2.19.31.

The score uses specific fonts, such as the following:

  \override DynamicText.font-name = "Noto Serif Bold Italic"

The current release produces a less than useful error when the SVG font cannot 
be found:

warning: cannot find SVG font #f

I have prepared a patch for this which now gives the name of the file that 
cannot be found.

To come to the next point, I have used fontforge to make an SVG version of Noto 
Serif Bold Italic, and placed it in the lilypond svg font directory as 
notoserif-bolditalic.svg (the name of which I was able to determine via the 
above mentioned warning patch I have developed).

But lilypond produces the following error with this SVG font installed:

Layout output to 
`exp-svg-font.svg'.../usr/share/guile/1.8/ice-9/regex.scm:121:22: In procedure 
vector-ref in expression (vector-ref match matchnum):
/usr/share/guile/1.8/ice-9/regex.scm:121:22: Wrong type argument in position 2: 
1

The score does not compile.

Hence, two questions.
Can you use fonts converted to SVG by fontforge in lilypond?
If so, what is this error?
Andrew



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


Re: SVG fonts

2015-11-20 Thread Andrew Bernard
More investigation on fonts for SVG.

The following errors out if the font-name property for DynamicText is set. The 
font-name specification for TextScript renders correctly.

\version "2.19.31"

{
  \override DynamicText.font-name = "Noto Serif Bold Italic"
  c''\p
  \override TextScript.font-name = "Noto Serif Bold Italic"
  c''^\markup { foo }
}

According to the NR DynamicText supports the font-interface, so one ought to 
e=be able to specify the font-name property.

error:

Layout output to 
`exp-svg-font.svg'.../usr/share/guile/1.8/ice-9/regex.scm:121:22: In procedure 
vector-ref in expression (vector-ref match matchnum):
/usr/share/guile/1.8/ice-9/regex.scm:121:22: Wrong type argument in position 2: 
1

In relation to my question in prior post as to whether fontforge can be used to 
generate SVG fonts for lilypond, I see that the emmentaler SVG fonts are 
created with font forge, so I assume this means it is the right tool for the 
job?

Andrew



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