Re: eps image inclusion

2016-10-22 Thread Bernhard Kleine
Am 23.10.2016 um 06:29 schrieb Bernhard Kleine:
> Am 23.10.2016 um 00:11 schrieb Noeck:
>> Dear Bernhard,
>>
>> you put the markup containing the eps file in your header block. This
>> can not work. You can think of the \header block like setting variables.
>> Code without a 'variable =' before it breaks the header block syntax. It
>> is not like where you put the header in your code there it is on paper.
>> It just collects the information for a header that is printed later - in
>> your case where you write \score.
>>
>> You can either put it into a header variable like
>>
>> \header {
>>   composer = \markup { ... \epsfile ... }
>>   ...
>> }
>>
>> ...
>> Does that help you?
>>
>> Joram
>>
>>
> Dear Joram,
>
> I found that the dedication field is better suited to my needs since it
> allows the image before the title of the song. However, the title is
> glued to the bottom of the image. How to change that?
>
> Thank you very much
>
> Bernhard
>
I enlarge the image with white space, that has solved this issue.
Thanks again
Bernhard

-- 
spitzhalde9
D-79853 lenzkirch
bernhard.kle...@gmx.net
www.b-kleine.com, www.urseetal.net
-
thunderbird mit enigmail
GPG schlüssel: D5257409
fingerprint:
08 B7 F8 70 22 7A FC C1 15 49 CA A6 C7 6F A0 2E D5 25 74 09




signature.asc
Description: OpenPGP digital signature
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Error with \sustainOff

2016-10-22 Thread Bernhard Kleine
The following minimal piece does not compile properly. I looked in the
docu but could not find what is wrong.

Any help appreciated

Regards Bernhard


\version "2.19.49"
\language "deutsch"

global = {
  \key a \major
  \time 6/8
}

leftOne = \relative c' {
  \voiceFour
  \global
  \clef bass \stemUp \dynamicUp
  4.\sustainOn \sustainOff \sustainOn 4\< 8\! |
}
\score {
  \new StaffGroup
  <<
\new PianoStaff = "piano"
<<
  \new Staff = "left"
  <<
\new Voice \leftOne
  >>
>>
  >>
}


-- 
spitzhalde9
D-79853 lenzkirch
bernhard.kle...@gmx.net
www.b-kleine.com, www.urseetal.net
-
thunderbird mit enigmail
GPG schlüssel: D5257409
fingerprint:
08 B7 F8 70 22 7A FC C1 15 49 CA A6 C7 6F A0 2E D5 25 74 09




signature.asc
Description: OpenPGP digital signature
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: eps image inclusion

2016-10-22 Thread Bernhard Kleine

Am 23.10.2016 um 00:11 schrieb Noeck:
> Dear Bernhard,
>
> you put the markup containing the eps file in your header block. This
> can not work. You can think of the \header block like setting variables.
> Code without a 'variable =' before it breaks the header block syntax. It
> is not like where you put the header in your code there it is on paper.
> It just collects the information for a header that is printed later - in
> your case where you write \score.
>
> You can either put it into a header variable like
>
> \header {
>   composer = \markup { ... \epsfile ... }
>   ...
> }
>
> ...
> Does that help you?
>
> Joram
>
>
Dear Joram,

I found that the dedication field is better suited to my needs since it
allows the image before the title of the song. However, the title is
glued to the bottom of the image. How to change that?

Thank you very much

Bernhard

-- 
spitzhalde9
D-79853 lenzkirch
bernhard.kle...@gmx.net
www.b-kleine.com, www.urseetal.net
-
thunderbird mit enigmail
GPG schlüssel: D5257409
fingerprint:
08 B7 F8 70 22 7A FC C1 15 49 CA A6 C7 6F A0 2E D5 25 74 09




signature.asc
Description: OpenPGP digital signature
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Notes on wrong side of stem in triads

2016-10-22 Thread Paul

On 10/18/2016 12:23 PM, David Kastrup wrote:


Mark Knoop  writes:

At 17:05 on 18 Oct 2016, Davide Liessi wrote:

I reproduced the issue with this:

\version "2.19.47"
\layout { #(layout-set-staff-size 19) }
{  }

Using #(set-global-staff-size 19) instead works as expected.
I couldn't find a bug report for this.
Any ideas?

Very weird, and certainly a bug. This works as expected also:

\version "2.19.47"
\layout { #(layout-set-staff-size 19.0001) }
{  }

Well, _that_ looks like the distance between noteheads is used as a
factor for deciding about the arrangement in a manner that is
numerically fragile.  Like looking whether their distance is smaller
than 1.0 staff line distances.


Indeed, the distance between note heads is calculated (via calls to 
Staff_symbol_referencer::get_position for each note head) and that 
distance determines whether a note head is moved to the other side of 
the stem.  See stem.cc line 553 and following where "dy" is the distance 
between note heads:

http://git.savannah.gnu.org/cgit/lilypond.git/tree/lily/stem.cc#n553

I tried editing line 565 (the comparison involving "dy" that leads to 
moving a note head) and if you remove the 0.1 "safety margin" this fixes 
the problem (while also breaking the placement for some notes that are 
only a second interval apart).  So it does appear to be a mysterious 
problem of numerical fragility.


Some weirdness: if you add \stemUp or \stemDown this fixes the problem, 
but only for chords where the command reverses the default direction of 
the stem.  (!?)


Also, the problem (at size 19 at least) seems to only happen for notes 
at certain staff positions, for example on treble staff, notes at E 
line, A space, C space, and F line (symmetrical pattern around center / 
zero point of staff).


That's as far as I've gotten.  (Won't have time to do any more for at 
least a week.)


-Paul


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


ANN: Abjad 2.19

2016-10-22 Thread josiah oberholtzer
Dear friends,

I'm pleased to announce that Abjad 2.19 is now available.

Abjad is a Python API for Formalized Score Control

Abjad helps composers build up complex pieces of music notation in an
iterative and incremental way. Use Abjad to create symbolic
representations of all the notes, rests, staves, tuplets, beams and
slurs
in any score. Because Abjad extends the Python programming language, you
can use Abjad to make systematic changes to your music as you work. And
because Abjad wraps the powerful LilyPond music notation package, you
can
use Abjad to control the typographic details of the symbols on the page.

- Docs: http://abjad.mbrsi.org/
- GitHub: https://github.com/abjad/abjad
- PyPI: https://pypi.python.org/pypi/Abjad/2.1
9

Details of the new release appear below.



## Improvements

- [#740] Proofread ‘For beginners’ section of docs. Thanks @delucis!
- [#741] LilyPond's log is displayed on LilyPond compilation error.
- [#749] Added `LilyPondCommand` to Abjad's global namespace.
- [#752] Taught `detach()` about different types of grace container.
- [#753] Taught `Dynamics` about _sforzando_ dynamic names.
- [#744] Refactoring and cleanup in `schemetools`. Thanks @ajyoon!
- [#745] Reimplemented Abjad's repr, storage format and object templating
system.
- [#755, #760, #761, #763] Cleaned-up class member ordering via a new
command-line script. Thanks @ajyoon!
- [#766] Abjad's `ajv` looks for `.ajv` config files in $HOME, the current
directory and any parent directory thereof. A [doctest] section can specify
imports to be run at the beginning of each doctest in `ajv doctest` via an
`imports` key.

## Changes

- [#745] `AbjadObject`'s `_storage_format_specification` and
`_repr_specification` properties are deprecated in favor of a new unified
`_get_format_specification()` method. The old properties will no longer be
supported in the next Abjad release: 2.20.

## Bugfixes

- [#762] Improved interaction between chords and ties. Thanks
@quesebifurcan!
- [#764] `IOManager.open_file()` respects Abjad's config when opening MIDI
files. Thanks @quesebifurcan!
- [#767] Fixed edge-cases in Graphviz attribute-handling and append/extend
behavior.
- [#774] NamedPitch.invert() guards against errors from multiply-augmented
or diminished intervals.



Special thanks to 2.19 contributors @delucis (Chris Swithinbank),
@ajyoon (Andrew
Yoon) and @quesebifurcan (Fredrik Wallberg) on Github, and to Jeffrey
Treviño for his constant and patient organization.



For installation instructions, see http://abjad.mbrsi.org/installation.html.

We hope you enjoy!

Trevor Bača
* mail: trevorb...@gmail.com
* home: http://www.trevorbaca.com/

Josiah Wolf Oberholtzer
* mail: josiah.oberholt...@gmail.com
* home: http://josiahwolfoberholtzer.com
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Tie settings question

2016-10-22 Thread David Nalesnik
On Sat, Oct 22, 2016 at 7:11 PM, David Nalesnik
 wrote:
> On Sat, Oct 22, 2016 at 6:55 PM, Karol Majewski  wrote:
>> Hi David, when a chord doesn't have a flag, then your code doesn't work. 
>> Just replace
>>
>> 8~
>>
>> with
>>
>> 4~
>>
>> and it won't compile. Perhaps there should be a condition in your code: "if 
>> a note has a a flag then set Flag.Y-extent to (4 . 0)". Or maybe there is a 
>> better way to fix this?
>
>
> Sure, expand the condition, like so:
>
> (if (and (> (length ties) 1) (ly:grob? flag))
>


It just dawned on me that you'd like the routine to still do something
if there is no flag, so try this:

evenTies =
#(lambda (grob)
   (let* ((ties (ly:grob-array->list (ly:grob-object grob 'ties)))
  (notehead (ly:spanner-bound (car ties) LEFT))
  (stem (ly:grob-object notehead 'stem))
  (flag (ly:grob-object stem 'flag)))
 (if (> (length ties) 1)
 (begin
  (if (ly:grob? flag)
  (ly:grob-set-property! flag 'Y-extent (cons 4 0)))
  (for-each
   (lambda (tie)
 (ly:grob-set-nested-property! tie '(details skyline-padding) 5))
   ties)

-DN

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


Re: Tie settings question

2016-10-22 Thread David Nalesnik
On Sat, Oct 22, 2016 at 6:55 PM, Karol Majewski  wrote:
> Hi David, when a chord doesn't have a flag, then your code doesn't work. Just 
> replace
>
> 8~
>
> with
>
> 4~
>
> and it won't compile. Perhaps there should be a condition in your code: "if a 
> note has a a flag then set Flag.Y-extent to (4 . 0)". Or maybe there is a 
> better way to fix this?


Sure, expand the condition, like so:

(if (and (> (length ties) 1) (ly:grob? flag))

DN

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


Re: Tie settings question

2016-10-22 Thread Karol Majewski
Hi David, when a chord doesn't have a flag, then your code doesn't work. Just 
replace

8~

with

4~

and it won't compile. Perhaps there should be a condition in your code: "if a 
note has a a flag then set Flag.Y-extent to (4 . 0)". Or maybe there is a 
better way to fix this?


 
> %%%
> 
> evenTies =
> #(lambda
>   (grob)
>   (let* ((ties (ly:grob-array->list (ly:grob-object grob 'ties)))
>  (notehead (ly:spanner-bound (car ties) LEFT))
>  (stem (ly:grob-object notehead 'stem))
>  (flag (ly:grob-object stem 'flag)))
> (if (> (length ties) 1)
> (begin
>  (ly:grob-set-property! flag 'Y-extent (cons 4 0))
>  (for-each
>   (lambda (tie)
> (ly:grob-set-nested-property! tie '(details skyline-padding) 5))
>   ties)
> 
> \layout {
>   \context {
> \Score
> \override TieColumn.before-line-breaking = #evenTies
>   }
> }
> 
> 
> \score {
> 
>   \relative c' {
> 8~
> 4
> c8~ c4.
>   }
> }
> 
> 




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


Re: eps image inclusion

2016-10-22 Thread Noeck
Dear Bernhard,

you put the markup containing the eps file in your header block. This
can not work. You can think of the \header block like setting variables.
Code without a 'variable =' before it breaks the header block syntax. It
is not like where you put the header in your code there it is on paper.
It just collects the information for a header that is printed later - in
your case where you write \score.

You can either put it into a header variable like

\header {
  composer = \markup { ... \epsfile ... }
  ...
}

or (my recommendation) you put it separately:

\markup { ... }

Does that help you?

Joram

Am 22.10.2016 um 23:10 schrieb Bernhard Kleine:
> \header {

this part is the problem
>   \markup {
> \general-align #Y #DOWN {
>   \epsfile #X #110 #"201610GerokVorWeihnachten-1.eps"
> }
>   }
until here

>   title = "Heilge Nacht, auf Engelschwingen"
>   subtitle = "Robert Prutz 1833"
>   composer = "Fr. H. Himmel 1765-1814"
> 
>   tagline = \markup {
> Gesetzt durch Bernhard Kleine mit
> \line { LilyPond \simple #(lilypond-version) (http://lilypond.org/) }
>   }
> }


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


Re: partcombine and tuplet bug (?)

2016-10-22 Thread David F.
I’ve hit this bug as well, but don’t have a workaround for it.  I’ve had to 
manually combine tuplets when voices share a note.  The issue there, besides 
the extra work and the way it muddies the source file, is that the shared note 
will be printed with two note heads and a single stem instead of a single note 
head and two stems.  Your example would look like:

musicC = { \tuplet 3/2 { r4 r 4 } d'2 }
musicD = { \tuplet 3/2 { r4 r 4 } c'2 }
\score { \partcombine \musicC \musicD }

In other places, I’ve been able to replace the tuplet in the second voice with 
s2, but for some reason that doesn’t work with this example.

partcombine similarly chokes on notes that should be beamed when voices share a 
note.  For that case, I can wrap the notes that should be beamed together with 
\partcombineApart … \partcomineAutomatic.  That trick does’t work for tuplets, 
though.

David

On Oct 22, 2016, at 8:44 AM, Kieren MacMillan  wrote:

> Hi all,
> 
> Any ideas why the tuplet isn’t bracketing properly in the following snippet, 
> and/or a workaround?
> 
> %%%  SNIPPET BEGINS
> \version "2.19"
> musicA = { \tuplet 3/2 { r4 r c' } d'2 }
> musicB = { \tuplet 3/2 { r4 r c' ~ } 2 }
> \score { \partcombine \musicA \musicB }
> %%%  SNIPPET ENDS
> 
> Thanks,
> 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


Odp: Re: Tie settings question

2016-10-22 Thread Karol Majewski
Aha, I get it. Thanks for the lesson. It seems I have to study scheme tutorial 
deeply...



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


partcombine and tuplet bug (?)

2016-10-22 Thread Kieren MacMillan
Hi all,

Any ideas why the tuplet isn’t bracketing properly in the following snippet, 
and/or a workaround?

%%%  SNIPPET BEGINS
\version "2.19"
musicA = { \tuplet 3/2 { r4 r c' } d'2 }
musicB = { \tuplet 3/2 { r4 r c' ~ } 2 }
\score { \partcombine \musicA \musicB }
%%%  SNIPPET ENDS

Thanks,
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: Tie settings question

2016-10-22 Thread David Nalesnik
On Sat, Oct 22, 2016 at 8:16 AM, David Nalesnik
 wrote:

>
> (2) As the log will tell you, "flag" is not defined.  I assume you
> arrived at this because of Harm's usage of "tie"
> below.  He's creating a local variable to refer to Tie grobs which
> he's already obtained, not relying on some existing correspondence
> between "tie" and a Tie grob..  (As such, he could have replaced 'tie'
> with another identifier, like "my-variable")
>
> You need "flag" to point to an actual Flag, which requires following
> pointers from your starting object -- a TieColumn -- to Tie.

I mean Flag, of course...

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


Re: How to engrave lowercase chord symbols

2016-10-22 Thread Thomas Morley
2016-10-22 14:32 GMT+02:00 David Kastrup :
> Thomas Morley  writes:
>>
>> Which input-syntax do you prefer for entering single bass-notes?
>
> These days I'd suggest  rather than c:1 .  A "true" accordion chord
> entry mode would likely provide capitalized pitch names like C, Dis,
> ... for the bass notes.  But for standard \chordmode, this seems
> easiest.

Then how about the below? Should work with both  and c:1
Always prints cis and ces not c#/cb, is this ok?
Be aware, it is not tested beyond the given example.

#(define-public (my-note-name->german-markup pitch lowercase?)
  (let* ((name (ly:pitch-notename pitch))
 (alt-semitones (inexact->exact (round (* (ly:pitch-alteration
pitch) 2
 (n-a (if (member (cons name alt-semitones) `((6 . -1) (6 . -2)))
  (cons 7 (+ 1 alt-semitones))
  (cons name alt-semitones)))
 (basic-list '("c" "d" "e" "f" "g" "a" "h" "b"))
 (list-to-use
   (if lowercase?
   basic-list
   (map string-upcase basic-list

(make-line-markup
 (list
  (string-append
   (list-ref list-to-use (car n-a))
   (if (or (equal? (car n-a) 2) (equal? (car n-a) 5))
   (list-ref '( "ses" "s" "" "is" "isis") (+ 2 (cdr n-a)))
   (list-ref '("eses" "es" "" "is" "isis") (+ 2 (cdr n-a)

\layout {
  \context {
\Score
chordNameFunction =
  #(lambda (in-pitches bass inversion context)
(if (= (length in-pitches) 1)
(my-note-name->german-markup (car in-pitches) #f)
(ignatzek-chord-names
  in-pitches bass inversion context)))
chordNoteNamer =
  #(lambda (pitch lowercase?)
  (my-note-name->german-markup pitch #f))
chordRootNamer =
  #(lambda (pitch lowercase?)
  (my-note-name->german-markup pitch #t))
  }
}

\new ChordNames \chordmode { cis:7 cis:m7 c:7/+c c:m7/+c  cis:1 }

Cheers,
  Harm

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


Re: Tie settings question

2016-10-22 Thread David Nalesnik
Hi Karol,

On Sat, Oct 22, 2016 at 7:33 AM, Karol Majewski  wrote:
> Now I try to change Flag.Y-extent value in chords to: \override Flag.Y-extent 
> = #'(4 . 0)
>
> Got this, but it doesn't work. What am I doing wrong?
>
> evenTies =
> #(lambda
>   (grob)
>   (let
> ((ties
> (ly:grob-array->list
>   (ly:grob-object grob 'ties
> (if
>   (>
> (length ties) 1)

(1) Use begin to group multiple expressions in the if clause

(2) As the log will tell you, "flag" is not defined.  I assume you
arrived at this because of Harm's usage of "tie"
below.  He's creating a local variable to refer to Tie grobs which
he's already obtained, not relying on some existing correspondence
between "tie" and a Tie grob..  (As such, he could have replaced 'tie'
with another identifier, like "my-variable")

You need "flag" to point to an actual Flag, which requires following
pointers from your starting object -- a TieColumn -- to Tie.  In the
code below, you can see how I might do it.

(3) 'Y-extent takes a number pair.

>   ((ly:grob-set-property! flag 'Y-extent 4 0)
>   (for-each
> (lambda
>   (tie)
>   (ly:grob-set-nested-property! tie '(details skyline-padding) 5)) 
> ties)

%%%

evenTies =
#(lambda
  (grob)
  (let* ((ties (ly:grob-array->list (ly:grob-object grob 'ties)))
 (notehead (ly:spanner-bound (car ties) LEFT))
 (stem (ly:grob-object notehead 'stem))
 (flag (ly:grob-object stem 'flag)))
(if (> (length ties) 1)
(begin
 (ly:grob-set-property! flag 'Y-extent (cons 4 0))
 (for-each
  (lambda (tie)
(ly:grob-set-nested-property! tie '(details skyline-padding) 5))
  ties)

\layout {
  \context {
\Score
\override TieColumn.before-line-breaking = #evenTies
  }
}


\score {

  \relative c' {
8~
4
c8~ c4.
  }
}



Hope this helps,
David

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


Re: Tie settings question

2016-10-22 Thread Karol Majewski
Now I try to change Flag.Y-extent value in chords to: \override Flag.Y-extent = 
#'(4 . 0)

Got this, but it doesn't work. What am I doing wrong?

evenTies =
#(lambda
  (grob)
  (let
((ties
(ly:grob-array->list
  (ly:grob-object grob 'ties
(if
  (>
(length ties) 1)
  ((ly:grob-set-property! flag 'Y-extent 4 0)
  (for-each
(lambda
  (tie)
  (ly:grob-set-nested-property! tie '(details skyline-padding) 5)) 
ties)

\layout {
  \context {
\Score
\override TieColumn.before-line-breaking = #evenTies
  }
}


\score {

\relative c' {
  8~
  4
  c8~ c4.
}

}




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


Re: How to engrave lowercase chord symbols

2016-10-22 Thread David Kastrup
Thomas Morley  writes:

> 2016-10-22 12:43 GMT+02:00 Todor Vachkov :
>> Hello,
>>
>> My goal is to engrave music for accordion and I would like to have my chords
>> symbols as follows:
>>
>> Bass tone: allways uppercase: e.g. A E D
>>
>> Chords: allways lower case: e.g. major chords a e d; minor chords am em dm
>>
>> And together: A am E e D d7
>>
>> In Lilypond you can force the lowercase only for the minors:
>>
>> \set chordNameLowercaseMinor = ##t
>>
>> But I would like to have this possibility for the majors, sevens etc. as
>> well...The bass tone is always uppercase, which is fine.
>>
>> Can someone please help me? Thanks a lot in advance!
>
> Which input-syntax do you prefer for entering single bass-notes?

These days I'd suggest  rather than c:1 .  A "true" accordion chord
entry mode would likely provide capitalized pitch names like C, Dis,
... for the bass notes.  But for standard \chordmode, this seems
easiest.

> Please give a compiling example even when it does not what you want.
>
> Otherwise, how about:
>
> \layout {
>   \context {
> \Score
> chordNoteNamer = #note-name->markup
> chordRootNamer =
>   #(lambda (pitch lowercase?) (note-name->markup pitch #t))
>   }
> }
>
> \new ChordNames \chordmode { c:7 c:m7 c:7/+c c:m7/+c  }

-- 
David Kastrup

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


Re: How to engrave lowercase chord symbols

2016-10-22 Thread David Kastrup
Todor Vachkov  writes:

> Hello,
>
> My goal is to engrave music for accordion and I would like to have my
> chords symbols as follows:
>
> Bass tone: allways uppercase: e.g. *A E D*
>
> Chords: allways lower case: e.g. *major* chords *a e d*; *minor* chords *am
> em dm*
>
> And together: *A am E e D d7*
>
> In Lilypond you can force the lowercase only for the minors:
>
> \set chordNameLowercaseMinor = ##t
>
> But I would like to have this possibility for the majors, sevens etc. as
> well...The bass tone is always uppercase, which is fine.
>
> Can someone please help me? Thanks a lot in advance!

This is not helpful per se, but you'll probably find that the way
LilyPond's ChordName context places the chord names does not work well
for annotating a bass part (it's fine for piano conventions).  You'll
likely be better off using text scripts even though those don't
transpose well (or at all).  Of course assuming that you _are_ going to
produce a whole bass staff.

So accordion standard bass notation has more than one open problem at
the current point of time.

I've been skirting duties here by mostly playing arrangements for free
bass (like  which I should
probably attempt to make a final take of some of these days).

-- 
David Kastrup

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


Re: How to engrave lowercase chord symbols

2016-10-22 Thread Thomas Morley
2016-10-22 12:43 GMT+02:00 Todor Vachkov :
> Hello,
>
> My goal is to engrave music for accordion and I would like to have my chords
> symbols as follows:
>
> Bass tone: allways uppercase: e.g. A E D
>
> Chords: allways lower case: e.g. major chords a e d; minor chords am em dm
>
> And together: A am E e D d7
>
> In Lilypond you can force the lowercase only for the minors:
>
> \set chordNameLowercaseMinor = ##t
>
> But I would like to have this possibility for the majors, sevens etc. as
> well...The bass tone is always uppercase, which is fine.
>
> Can someone please help me? Thanks a lot in advance!

Which input-syntax do you prefer for entering single bass-notes?
Please give a compiling example even when it does not what you want.

Otherwise, how about:

\layout {
  \context {
\Score
chordNoteNamer = #note-name->markup
chordRootNamer =
  #(lambda (pitch lowercase?) (note-name->markup pitch #t))
  }
}

\new ChordNames \chordmode { c:7 c:m7 c:7/+c c:m7/+c  }

Cheers,
  Harm

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


How to engrave lowercase chord symbols

2016-10-22 Thread Todor Vachkov
Hello,

My goal is to engrave music for accordion and I would like to have my
chords symbols as follows:

Bass tone: allways uppercase: e.g. *A E D*

Chords: allways lower case: e.g. *major* chords *a e d*; *minor* chords *am
em dm*

And together: *A am E e D d7*

In Lilypond you can force the lowercase only for the minors:

\set chordNameLowercaseMinor = ##t

But I would like to have this possibility for the majors, sevens etc. as
well...The bass tone is always uppercase, which is fine.

Can someone please help me? Thanks a lot in advance!
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: No readline in scheme-sandbox

2016-10-22 Thread Thomas Morley
2016-10-22 11:13 GMT+02:00 David Kastrup :
> Thomas Morley  writes:
>
>> 2016-10-22 10:12 GMT+02:00 David Kastrup :
>>> Thomas Morley  writes:
>>>
 The first hit reads in sourcefiles/guile.changelog:

 guile (1.8.1-2) unstable; urgency=low

   * Add readline as build dependency, libreadline8 as dependency for
 libguile17 (thanks Ted Anderson).
   * Remove /etc/hints.
   * Remove curr from hints.

  -- Jan Nieuwenhuizen   Tue, 31 Oct 2006 00:47:35 +0100

 No idea whether it's important, it's far beyond my depth.
>>>
>>> That would point to readline support being compiled in.  libreadline8
>>> would likely be the current one.
>>>
>>> At any rate, David stated that calling the lilypond executable with full
>>> path left him with working readline support.
>>>
>>> Does
>>>
>>> which lilypond
>>>
>>> agree that the version called without explicit path is the same as with
>>> path?  If so, something in command line processing would appear to make
>>> use of the 0th argument for finding libraries.  That would warrant more
>>> examination.
>>>
>>> --
>>> David Kastrup
>>
>> which lilypond
>> returns in my case:
>> /home/hermann/bin/lilypond
>> which is the script for 2.18.2 I mentioned in my previous post.
>
> David stated:
>
> I find the following:
>
> 1)
>
> If I run 'lilypond scheme-sandbox' I get a message saying:
>
> /usr/local/lilypond/usr/share/lilypond/current/ly/scheme-
> sandbox.ly:3:2: error: GUILE signaled an error for the expression
> beginning here
> #
>  (load-user-init)
> readline is not provided in this Guile installation
>
> In 'top' I can see that the actual running command is
> '/usr/local/lilypond/usr/bin/lilypond scheme-sandbox'.
>
> 2)
>
> If I run '/usr/local/lilypond/usr/bin/lilypond scheme-sandbox' directly
> from the command line, I get guile complete with readline.
>
>
> which sounds like he is _not_ running the wrapper script when stuff
> works but rather the executable without the wrapper.  So it would appear
> that what the wrapper does happens to interfere with finding the system
> readline library while LilyPond presumably does not provide one of its
> own.  Who is the main author of that wrapper?  Maybe he has an idea?
>
> --
> David Kastrup

The entire (unchanged) wrapper script reads:

#!/bin/sh
me=`basename $0`
export LD_LIBRARY_PATH="/home/hermann/lilypond/usr/lib"
exec "/home/hermann/lilypond/usr/bin/$me" "$@"

Commenting the line "export ..." works, though I can't imagine the consequences.
No idea who wrote the script, though.

Cheers,
  Harm

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


Re: No readline in scheme-sandbox

2016-10-22 Thread David Kastrup
Thomas Morley  writes:

> 2016-10-22 10:12 GMT+02:00 David Kastrup :
>> Thomas Morley  writes:
>>
>>> The first hit reads in sourcefiles/guile.changelog:
>>>
>>> guile (1.8.1-2) unstable; urgency=low
>>>
>>>   * Add readline as build dependency, libreadline8 as dependency for
>>> libguile17 (thanks Ted Anderson).
>>>   * Remove /etc/hints.
>>>   * Remove curr from hints.
>>>
>>>  -- Jan Nieuwenhuizen   Tue, 31 Oct 2006 00:47:35 +0100
>>>
>>> No idea whether it's important, it's far beyond my depth.
>>
>> That would point to readline support being compiled in.  libreadline8
>> would likely be the current one.
>>
>> At any rate, David stated that calling the lilypond executable with full
>> path left him with working readline support.
>>
>> Does
>>
>> which lilypond
>>
>> agree that the version called without explicit path is the same as with
>> path?  If so, something in command line processing would appear to make
>> use of the 0th argument for finding libraries.  That would warrant more
>> examination.
>>
>> --
>> David Kastrup
>
> which lilypond
> returns in my case:
> /home/hermann/bin/lilypond
> which is the script for 2.18.2 I mentioned in my previous post.

David stated:

I find the following:

1)

If I run 'lilypond scheme-sandbox' I get a message saying:

/usr/local/lilypond/usr/share/lilypond/current/ly/scheme-
sandbox.ly:3:2: error: GUILE signaled an error for the expression
beginning here
#
 (load-user-init)
readline is not provided in this Guile installation

In 'top' I can see that the actual running command is
'/usr/local/lilypond/usr/bin/lilypond scheme-sandbox'.

2)

If I run '/usr/local/lilypond/usr/bin/lilypond scheme-sandbox' directly
from the command line, I get guile complete with readline.


which sounds like he is _not_ running the wrapper script when stuff
works but rather the executable without the wrapper.  So it would appear
that what the wrapper does happens to interfere with finding the system
readline library while LilyPond presumably does not provide one of its
own.  Who is the main author of that wrapper?  Maybe he has an idea?

-- 
David Kastrup

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


Re: No readline in scheme-sandbox

2016-10-22 Thread Thomas Morley
2016-10-22 10:12 GMT+02:00 David Kastrup :
> Thomas Morley  writes:
>
>> The first hit reads in sourcefiles/guile.changelog:
>>
>> guile (1.8.1-2) unstable; urgency=low
>>
>>   * Add readline as build dependency, libreadline8 as dependency for
>> libguile17 (thanks Ted Anderson).
>>   * Remove /etc/hints.
>>   * Remove curr from hints.
>>
>>  -- Jan Nieuwenhuizen   Tue, 31 Oct 2006 00:47:35 +0100
>>
>> No idea whether it's important, it's far beyond my depth.
>
> That would point to readline support being compiled in.  libreadline8
> would likely be the current one.
>
> At any rate, David stated that calling the lilypond executable with full
> path left him with working readline support.
>
> Does
>
> which lilypond
>
> agree that the version called without explicit path is the same as with
> path?  If so, something in command line processing would appear to make
> use of the 0th argument for finding libraries.  That would warrant more
> examination.
>
> --
> David Kastrup

which lilypond
returns in my case:
/home/hermann/bin/lilypond
which is the script for 2.18.2 I mentioned in my previous post.

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


Re: dynamic marks on multiple lines between piano staves

2016-10-22 Thread Noeck
Hi Richard,

sorry for not reading your full mail - of course, you mentioned it.

Joram

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


Re: dynamic marks on multiple lines between piano staves

2016-10-22 Thread Richard Shann
On Fri, 2016-10-21 at 21:51 +0200, Noeck wrote:
> Hi,
> 
> Am 21.10.2016 um 10:25 schrieb Richard Shann:
> > <>^\markup\scale #'(1 . 1)\column{\line{1. \dynamic p
> > }\line{2. \dynamic f}
> > }
> 
> Why the \scale?

You chopped out the bit of my reply that commented on the redundancy of
the scale. It is typical of computer-generated syntax - but actually in
this case it's in there in case you should wish to scale the text (it
provides a hint to users how to do that).

Richard

> 
> Otherwise, my suggestion would have been very similar:
> 
> {
>   bes'
>   -\markup \column { \line { "1." \dynamic "p" }
>  \line { "2." \dynamic "f" } }
> }
> 
> Cheers,
> Joram
> 
> ___
> 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: dynamic marks on multiple lines between piano staves

2016-10-22 Thread Richard Shann
On Sat, 2016-10-22 at 00:59 +0200, Sirius Barras wrote:
> Dear Urs and Simon
> 
> 
> 
> I'm not sure to understand how to correctly use your solution: 
> 
> 
> 
> > <<
> >   \new Staff { c'1 }
> >   \new Dynamics { s1 \p }
> >   \new Dynamics { s1 \f }
> >   \new Staff { \clef bass c1 }
> > >>
> 
> 
> 
> My apologize if my question is naif, but in case I need to apply my
> dynamics not at the beginning but somewhere in the center of the
> piece, should I count the number of measures and change { s1 \p } in
> accord with it? If this is the case, then of course this type of
> solution make sense only when you have a complex and frequent
> dynamics. Or am I wrong?

well, I *think* it only makes sense if you need to have the dynamics
automatically aligned horizontally. It can also be used to position
dynamic markings at arbitrary musical moments. Either of these goals can
be achieved by tweaking positions however, but that is where the
trade-off comes in. But see Kieren's response which doesn't concur with
this - I'm no expert!

Richard

> 
> 
> Thank you, g.
> 
> 
> ___
> 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: dynamic marks on multiple lines between piano staves

2016-10-22 Thread Urs Liska


Am 22.10.2016 um 00:59 schrieb Sirius Barras:
> Dear Urs and Simon
>
> I'm not sure to understand how to correctly use your solution: 
>
> > <<
> >   \new Staff { c'1 }
> >   \new Dynamics { s1 \p }
> >   \new Dynamics { s1 \f }
> >   \new Staff { \clef bass c1 }
> > >>
>
> My apologize if my question is naif, but in case I need to apply my
> dynamics not at the beginning but somewhere in the center of the
> piece, should I count the number of measures and change { s1 \p } in
> accord with it? If this is the case, then of course this type of
> solution make sense only when you have a complex and frequent
> dynamics. Or am I wrong?

No, you're correct.
That's why I raised the question of how many instances of that case you
expect to have.

Urs

>
> Thank you, g.
>

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


Re: No readline in scheme-sandbox

2016-10-22 Thread David Kastrup
Thomas Morley  writes:

> The first hit reads in sourcefiles/guile.changelog:
>
> guile (1.8.1-2) unstable; urgency=low
>
>   * Add readline as build dependency, libreadline8 as dependency for
> libguile17 (thanks Ted Anderson).
>   * Remove /etc/hints.
>   * Remove curr from hints.
>
>  -- Jan Nieuwenhuizen   Tue, 31 Oct 2006 00:47:35 +0100
>
> No idea whether it's important, it's far beyond my depth.

That would point to readline support being compiled in.  libreadline8
would likely be the current one.

At any rate, David stated that calling the lilypond executable with full
path left him with working readline support.

Does

which lilypond

agree that the version called without explicit path is the same as with
path?  If so, something in command line processing would appear to make
use of the 0th argument for finding libraries.  That would warrant more
examination.

-- 
David Kastrup

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


Re: No readline in scheme-sandbox

2016-10-22 Thread Thomas Morley
2016-10-22 9:16 GMT+02:00 Thomas Morley :
> 2016-10-22 0:37 GMT+02:00 Thomas Morley :
>> 2016-10-22 0:17 GMT+02:00 David Kastrup :
>>> Thomas Morley  writes:
>>>
 2016-10-21 23:30 GMT+02:00 David Kastrup :
> Thomas Morley  writes:
>
>> I mostly use self-compiled LilyPond which seems to work as it should.
>> I'd call it a bug not to have access to all guile-modules in released
>> version.
>
> libreadline is not a Guile module.  It can be loaded at runtime by
> Guile.
>
> Maybe check whether installing libreadline5 or libreadline6 helps: it
> may be that Gub compiled with a certain libreadline version in mind that
> is not installed.
>
> --
> David Kastrup

 I currently have the following 3 installed:
 libreadline5
 libreadline6
 libreadline6-dev

 Should I try removing one?
>>>
>>> No.  All but the -dev ones can be installed in parallel without problem.
>>> You can have only one -dev one usually.
>>>
>>> --
>>> David Kastrup
>>
>> Ok.
>>
>> I have GUB-git on my computer, although never tried to compile it on
>> my weak laptop I did:
>>
>> ~/gub (master)$ git grep "libreadline"
>> sourcefiles/guile.changelog:  * Add readline as build dependency,
>> libreadline8 as dependency for
>> sourcefiles/guile.changelog:  * guile.hint (requires): Update to
>> libncurses8, libreadline6.
>> sourcefiles/guile.changelog:  * Compile against libreadline5 and
>> libncurses6.  This fixes readline,
>> sourcefiles/guile.changelog:  * guile.hint: require libreadline5 and
>> libncurses6.
>>
>> The first hit reads in sourcefiles/guile.changelog:
>>
>> guile (1.8.1-2) unstable; urgency=low
>>
>>   * Add readline as build dependency, libreadline8 as dependency for
>> libguile17 (thanks Ted Anderson).
>>   * Remove /etc/hints.
>>   * Remove curr from hints.
>>
>>  -- Jan Nieuwenhuizen   Tue, 31 Oct 2006 00:47:35 +0100
>>
>> No idea whether it's important, it's far beyond my depth.
>>
>> Cheers,
>>   Harm
>
> Another observation.
>
> If installing LilyPond via the precompiled installer, a script called
> "lilypond" for calling lilypond from the commandline is created in
> bin.
> Changing the line (in my case):
> export LD_LIBRARY_PATH="/home/hermann/lilypond/usr/lib"
> to
> export LD_LIBRARY_PATH="/home/hermann/lilypond/usr/bin"
> seems to work.

Simply commenting the line works as well, afaict
Tbh, I've only a vague idea what this line is supposed to do.

>
>
> Cheers,
>   Harm

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


Re: No readline in scheme-sandbox

2016-10-22 Thread Thomas Morley
2016-10-22 0:37 GMT+02:00 Thomas Morley :
> 2016-10-22 0:17 GMT+02:00 David Kastrup :
>> Thomas Morley  writes:
>>
>>> 2016-10-21 23:30 GMT+02:00 David Kastrup :
 Thomas Morley  writes:

> I mostly use self-compiled LilyPond which seems to work as it should.
> I'd call it a bug not to have access to all guile-modules in released
> version.

 libreadline is not a Guile module.  It can be loaded at runtime by
 Guile.

 Maybe check whether installing libreadline5 or libreadline6 helps: it
 may be that Gub compiled with a certain libreadline version in mind that
 is not installed.

 --
 David Kastrup
>>>
>>> I currently have the following 3 installed:
>>> libreadline5
>>> libreadline6
>>> libreadline6-dev
>>>
>>> Should I try removing one?
>>
>> No.  All but the -dev ones can be installed in parallel without problem.
>> You can have only one -dev one usually.
>>
>> --
>> David Kastrup
>
> Ok.
>
> I have GUB-git on my computer, although never tried to compile it on
> my weak laptop I did:
>
> ~/gub (master)$ git grep "libreadline"
> sourcefiles/guile.changelog:  * Add readline as build dependency,
> libreadline8 as dependency for
> sourcefiles/guile.changelog:  * guile.hint (requires): Update to
> libncurses8, libreadline6.
> sourcefiles/guile.changelog:  * Compile against libreadline5 and
> libncurses6.  This fixes readline,
> sourcefiles/guile.changelog:  * guile.hint: require libreadline5 and
> libncurses6.
>
> The first hit reads in sourcefiles/guile.changelog:
>
> guile (1.8.1-2) unstable; urgency=low
>
>   * Add readline as build dependency, libreadline8 as dependency for
> libguile17 (thanks Ted Anderson).
>   * Remove /etc/hints.
>   * Remove curr from hints.
>
>  -- Jan Nieuwenhuizen   Tue, 31 Oct 2006 00:47:35 +0100
>
> No idea whether it's important, it's far beyond my depth.
>
> Cheers,
>   Harm

Another observation.

If installing LilyPond via the precompiled installer, a script called
"lilypond" for calling lilypond from the commandline is created in
bin.
Changing the line (in my case):
export LD_LIBRARY_PATH="/home/hermann/lilypond/usr/lib"
to
export LD_LIBRARY_PATH="/home/hermann/lilypond/usr/bin"
seems to work.


Cheers,
  Harm

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