platform specific variables

2016-01-19 Thread Urs Liska
Hi all,

I'd be glad if Windows and Mac users could send me the output of the
following code:

testVariables =
#(define-scheme-function ()()
  (display PLATFORM)(newline)
  (display DOS)(newline)
  ; you may comment out the following if you don't want to
  ; show your working directory
  (display (ly-getcwd))(newline)
  (display (is-absolute? "/home/something"))(newline)
  (display (is-absolute? "C:\\Documents"))(newline)
  )

\testVariables


Thanks
Urs

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


Re: platform specific variables

2016-01-19 Thread Urs Liska
Hi Pierre,

thanks.

Am 19.01.2016 um 09:46 schrieb Pierre Perol-Schneider:
> Hi Urs,
>
> Win8:
>
> Starting lilypond-windows.exe 2.19.35 [Untitled]...
> windows
> #f
> c:\users\pierre\appdata\local\temp\frescobaldi-kkov6w\tmp6edst4
> #t
> #f

This looks strange to me, I have the impression it's wrong.

Could you please run this again?

#(display (ly-getcwd))
#(newline)
#(display (is-absolute? (ly-getcwd)))

Thanks
Urs


> Processing
> `c:/users/pierre/appdata/local/temp/frescobaldi-kkov6w/tmp6edst4/document.ly
> '
> Parsing...
> Success: compilation successfully completed
> Completed successfully in 0.4".
>
>
> Cheers,
> Pierre
>
> 2016-01-19 9:43 GMT+01:00 Urs Liska  >:
>
> Hi all,
>
> I'd be glad if Windows and Mac users could send me the output of the
> following code:
>
> testVariables =
> #(define-scheme-function ()()
>   (display PLATFORM)(newline)
>   (display DOS)(newline)
>   ; you may comment out the following if you don't want to
>   ; show your working directory
>   (display (ly-getcwd))(newline)
>   (display (is-absolute? "/home/something"))(newline)
>   (display (is-absolute? "C:\\Documents"))(newline)
>   )
>
> \testVariables
>
>
> Thanks
> Urs
>
> ___
> 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: platform specific variables

2016-01-19 Thread Pierre Perol-Schneider
Here it goes, using lilypond.exe:

Starting lilypond.exe 2.19.35 [testUrs.ly]...
Processing `C:/Users/Pierre/testUrs.ly'
Parsing...
C:\Users\Pierre
#f
Success: compilation successfully completed
Completed successfully in 0.5".


Using lilypond-windows.exe:

Starting lilypond-windows.exe 2.19.35 [testUrs.ly]...
Processing `C:/Users/Pierre/testUrs.ly'
Parsing...
C:\Users\Pierre
#f
Success: compilation successfully completed
Completed successfully in 0.5".

Cheers,
Pierre

2016-01-19 9:54 GMT+01:00 Urs Liska :

> Hi Pierre,
>
> thanks.
>
> Am 19.01.2016 um 09:46 schrieb Pierre Perol-Schneider:
>
> Hi Urs,
>
> Win8:
>
> Starting lilypond-windows.exe 2.19.35 [Untitled]...
> windows
> #f
> c:\users\pierre\appdata\local\temp\frescobaldi-kkov6w\tmp6edst4
> #t
> #f
>
>
> This looks strange to me, I have the impression it's wrong.
>
> Could you please run this again?
>
> #(display (ly-getcwd))
> #(newline)
> #(display (is-absolute? (ly-getcwd)))
>
> Thanks
> Urs
>
>
>
> Processing
> `c:/users/pierre/appdata/local/temp/frescobaldi-kkov6w/tmp6edst4/
> document.ly'
> Parsing...
> Success: compilation successfully completed
> Completed successfully in 0.4".
>
>
> Cheers,
> Pierre
>
> 2016-01-19 9:43 GMT+01:00 Urs Liska :
>
>> Hi all,
>>
>> I'd be glad if Windows and Mac users could send me the output of the
>> following code:
>>
>> testVariables =
>> #(define-scheme-function ()()
>>   (display PLATFORM)(newline)
>>   (display DOS)(newline)
>>   ; you may comment out the following if you don't want to
>>   ; show your working directory
>>   (display (ly-getcwd))(newline)
>>   (display (is-absolute? "/home/something"))(newline)
>>   (display (is-absolute? "C:\\Documents"))(newline)
>>   )
>>
>> \testVariables
>>
>>
>> Thanks
>> Urs
>>
>> ___
>> 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: platform specific variables

2016-01-19 Thread Matthias Böhringer

Am 19.01.2016 um 09:43 schrieb Urs Liska:

Hi all,

I'd be glad if Windows and Mac users could send me the output of the
following code:

testVariables =
#(define-scheme-function ()()
   (display PLATFORM)(newline)
   (display DOS)(newline)
   ; you may comment out the following if you don't want to
   ; show your working directory
   (display (ly-getcwd))(newline)
   (display (is-absolute? "/home/something"))(newline)
   (display (is-absolute? "C:\\Documents"))(newline)
   )

\testVariables


Thanks
Urs

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


Hi Urs,

here you go:

Starte lilypond-windows.exe 2.18.2 [test_urs.ly]...
»D:/Daten/LilyPond/test_urs.ly« wird verarbeitet
Analysieren...C:/Program Files 
(x86)/LilyPond/usr/share/lilypond/current/scm/ly-syntax-constructors.scm:56:23: 
In expression (apply (ly:music-function-extract fun) parser ...):
C:/Program Files 
(x86)/LilyPond/usr/share/lilypond/current/scm/ly-syntax-constructors.scm:56:23: 
Wrong number of arguments to #

Wurde mit dem Return-Code 1 beendet.

Starte lilypond-windows.exe 2.19.35 [test_urs.ly]...
»D:/Daten/LilyPond/test_urs.ly« wird verarbeitet
Analysieren...
windows
#f
D:\Daten\LilyPond
#t
#f

Kompilation erfolgreich beendet
Erfolgreich abgeschlossen in 31.8".

Hope this helps, Matthias
--
Matthias Böhringer
Brunnenstraße 6
72296 Schopfloch-Unteriflingen

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


Re: ly:one-page-breaking (was: ly:one-line-breaking)

2016-01-19 Thread Richard Shann
On Mon, 2016-01-18 at 22:51 -0500, Paul Morris wrote:
> > On Jan 9, 2016, at 1:30 PM, Richard Shann  wrote:
> > 
> > I was wondering if it would be possible to develop a variant of "all on
> > one line", namely "all on one page", where the page height would be
> > automatically adjusted to fit the music, leaving the width as set.
> 
> I’m glad to report that I’ve made some real progress.  

> The code in the attached patch delivers the basic functionality, with a few 
> "known issues".  

> Namely the tagline and any footnotes are not included, 

> and bookparts trigger default page breaking for some reason. 

>  I haven’t tested it extensively but titles (etc.), top level markups, 
> multiple scores, 

> all seem to work just fine.

That's great news! For the application to Denemo taglines and footnotes
are not wanted anyway as it is for creating a score to play from
on-screen.
 I guess it will be some time before this code gets into a release?



> The approach is to temporarily set the page-height to the largest size 
> possible, 

What is the largest size possible? I tried playing around with some
sizes, and some didn't work ...



> do the line breaking and page layout for that page height, then get the 
> vertical position on the page and the height of the lowest system (or top 
> level markup), and use that to calculate and then set the final page height 
> so that it fits the content of the page.

A crude version of this is what will be in the impending Denemo release
- Denemo creates the SVG output and counts the pages and then re-runs
LilyPond at a larger page size.

Richard





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


Re: tuplet number

2016-01-19 Thread David Kastrup
Stanton Sanderson  writes:

>> On Jan 18, 2016, at 5:07 PM, Malte Meyn  wrote:
>> 
>> 
>> 
>>> Am 18.01.2016 um 23:52 schrieb Mark Stephen Mrotek:
>>> In 2.18,
>>> 
>>> Tuplet - no number\override TupletNumber #'stencil = ##f
>> 
>> Setting the stencil to ##f is exactly what \omit does ;) (\omit already
>> exists in 2.18).
>
> A third option to your first two, which proves quite useful in my case- 
> \once \undo \omit 

Well, only as of version 2.19.28 (before that \once would have been
ignored which would seem inconvenient but no showstopper for this use
case):

commit 314743a9769d8094d23cd45eb307b1485b41cb44
Author: David Kastrup 
Date:   Tue Sep 15 20:50:13 2015 +0200

Issue 4609/4: Move \once action from iterators to listeners

This ends the dependency of the events generated for \once\unset and
\once\set on the current context (bad for recording and replaying events
like with the part combiner and quoted music).  It also implements
\once\revert and makes every \once\override and \once\revert impervious
to any other overrides and reverts that may happen at the same time.

It's also worth noting that if you are planning to use \once \revert, it
generally is a worthwhile idea to use \temporary \override (or
\temporary \omit in this case) before: in case that the value to revert
to is established in the context (or its context definition) itself
(which it isn't here, as opposed to TabStaff), the old value to revert
to will only be available on the context's property stack when having
used a \temporary override.

-- 
David Kastrup

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


Re: tuplet number

2016-01-19 Thread David Kastrup
Stanton Sanderson  writes:

> How does one revert  \omit TupletNumber to allow the number to appear for a 
> specific tuplet? In the following example, I would like to show the tupet 
> number in the second measure. Thanks in advance.
>
> Stan
>
> \version "2.19.35"
>  \relative c'' {
> c   \omit TupletNumber   \tuplet 3/2 {c4 b8} c4 c |
> c  % \omit TupletNumber   
> \tuplet 3/2 {c4 b8} c4 c |
> }

In 2.19.35 you can use

\once \undo \omit TupletNumber

-- 
David Kastrup

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


Re: platform specific variables

2016-01-19 Thread Pierre Perol-Schneider
Hi Urs,

Win8:

Starting lilypond-windows.exe 2.19.35 [Untitled]...
windows
#f
c:\users\pierre\appdata\local\temp\frescobaldi-kkov6w\tmp6edst4
#t
#f
Processing `c:/users/pierre/appdata/local/temp/frescobaldi-kkov6w/tmp6edst4/
document.ly'
Parsing...
Success: compilation successfully completed
Completed successfully in 0.4".


Cheers,
Pierre

2016-01-19 9:43 GMT+01:00 Urs Liska :

> Hi all,
>
> I'd be glad if Windows and Mac users could send me the output of the
> following code:
>
> testVariables =
> #(define-scheme-function ()()
>   (display PLATFORM)(newline)
>   (display DOS)(newline)
>   ; you may comment out the following if you don't want to
>   ; show your working directory
>   (display (ly-getcwd))(newline)
>   (display (is-absolute? "/home/something"))(newline)
>   (display (is-absolute? "C:\\Documents"))(newline)
>   )
>
> \testVariables
>
>
> Thanks
> Urs
>
> ___
> 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: platform specific variables

2016-01-19 Thread Davide Liessi
Hi.

Mac OS X 10.6.8, LilyPond 2.19.35

darwin
#f
/private/var/folders/XN/XNp3zsn1G-WeL9c1ocHiuE+++TI/-Tmp-/frescobaldi-XP9NDi/tmp13hDCN
#t
#f

Best wishes.
Davide

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


Re: platform specific variables

2016-01-19 Thread Urs Liska


Am 19.01.2016 um 09:43 schrieb Urs Liska:
> Hi all,
>
> I'd be glad if Windows and Mac users could send me the output of the
> following code:

Thanks to all, I have now enough information (and seemingly found a bug
...).

Urs

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


Re: Swedish letters in Lilypond lyrics?

2016-01-19 Thread Andrew Bernard
Isn’t it the OP’s point that this set is not rich enough to express Swedish?

Andrew


On 19/01/2016, 18:29, "Simon Albrecht"  wrote:

There are the text replacements, see NR A.13 (2.19.35).

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


Re: Top margin

2016-01-19 Thread Sharon Rosner
After a few hours of experiments (and re-reading the docs) I have arrived at
a solution:

It turns that the header (and footers I guess) is always vertically
positioned according to the top-margin setting. So setting the top-margin
will determine the space between the top edge of the page and the top of the
header.

The position of the top staff relative to the top margin can be set using
the top-system-spacing alist. So in order to have the top line of the top
staff at a constant distance from the edge, the following is needed:

\paper {
  ...
  % distance of top of header from page's top edge
  top-margin = 10\mm
  ...
  % distance of top line of top staff from page's top edge
  top-staff-margin = 24.5\mm

  % set the basic distance of the top staff from the top margin
  % this formula takes into account the above settings, the current staff
size, and adds
  % 2 staff spaces, since the reference position of the staff is its center
line
  top-system-spacing #'basic-distance = #(+ (/ (- top-staff-margin
top-margin) staff-space) 2) 
  top-system-spacing #'minimum-distance = 0
  % set large negative padding in order to ignore the skyline
  top-system-spacing #'padding = -50
  % do not stretch the distance
  top-system-spacing #'stretchability = 0
  ...
}

So, basically with this technique there's only two values that need to be
changed in order to change the actual top margins (header and music) -
top-margin and top-staff-margin.

> Similarly, you should be able to fix the location of the bottom staff by
> setting the stretchability of last-bottom-spacing to zero.  And a similar
> note about the basic-distance of last-bottom-spacing also applies.

Yes, I guess the same could be done for the bottom staff.

Sharon



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Top-margin-tp186119p186155.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: Compressing percent repeats.

2016-01-19 Thread Pierre Perol-Schneider
Hi Hwaen Ch'uqi,

Far from being perfect but it's a start:

\version "2.19.35"

compressPercent =
#(define-music-function (repeats notes) (integer? ly:music?)
  #{
\tag Orch {
%% Optional:
%\set countPercentRepeats = ##t
\repeat percent #repeats \absolute { #notes }
}
\tag Solo {
  \repeat percent 2 {
\set countPercentRepeats = ##t
\override PercentRepeatCounter.stencil = #(lambda (grob)
   (grob-interpret-markup grob
 (markup #:concat
   ( ;; Optional:
 #:fontsize -3 "x"
 (number->string repeats)
#notes
\applyContext #(lambda (c)
  (set! (ly:context-property
 (ly:context-find c 'Timing)
 'currentBarNumber)
   (+ (- repeats 2) (ly:context-property c
'currentBarNumber
  }
}
#})

soloInstrumentOne = \relative {
  c' c c c
  \compressPercent 8 \relative { c''4 c c c }
  \break
  c4 c c c
  \bar "|."
}

soloInstrumentTwo = \relative {
  \repeat unfold 10 { c''4 c c c }
}

%%% Orchestral score %%%
\score {
  \new StaffGroup <<
\new Staff
  \with { instrumentName = "Inst 1" }
  \keepWithTag Orch\soloInstrumentOne
\new Staff
  \with { instrumentName = "Inst 2" }
  \soloInstrumentTwo
  >>
}

%%% Solo score %%%
\score {
  \new Staff
\with { instrumentName = "Inst 1" }
\keepWithTag Solo\soloInstrumentOne
  }

HTH,
Cheers,
Pierre

2016-01-19 3:46 GMT+01:00 Hwaen Ch'uqi :

> Greetings All,
>
> I am generating parts from an orchestral score and am wondering if
> there is any way of handling percent repeats in the same manner as
> \compressFullBarRests does for multimeasure rests? That is, a number
> would be placed above, say, an isolated repeat informing the player
> how many times to repeat the measure; meanwhile, currentBarNumber
> would be automatically updated. I see from this thread
>
> https://lists.gnu.org/archive/html/lilypond-user/2014-02/msg00050.html
>
> that text could be placed manually (though not optimally) above the
> isolated repeat, and so too could I manually reset currentBarNumber,
> but that will surely prove to be time-consuming for a piece of this
> magnitude. Any help would be greatly appreciated.
>
> Hwaen Ch'uqi
>
> ___
> 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: Swedish letters in Lilypond lyrics?

2016-01-19 Thread karl
> On 19/01/2016, 18:29, "Simon Albrecht"  wrote:
> There are the text replacements, see NR A.13 (2.19.35).

Andrew Bernad:
> Isn’t it the OP’s point that this set is not rich enough to express Swedish?

ä Ä ö and Ö is missing.

///

BTW, does someone know why add-text-replacements in attached file 
doesn't work ?

 I got the syntax from:
http://www.gnu.org/software/guile/manual/html_node/String-Syntax.html#String-Syntax

 I found the codes for åäö in:
http://www.unicode.org/charts/PDF/U0080.pdf

Regards,
/Karl Hammar

---
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden
+46 173 140 57

\version "2.18.0"
%#(read-enable 'r6rs-hex-escapes)


\paper {
  #(include-special-characters)

  #(add-text-replacements!
'(
  (":a" . "\u00E4" )
  (":A" . "\u00C4" )
  (":o" . "\u00F6" )
  (":O" . "\u00D6" )
))

}

Ms = \relative c' { a4 b c a }
Ls = \lyricmode {
  åäöÅÄÖ
  \markup { \concat { \char ##x00E5 \char ##x00C5 \char ##x00E4 \char ##x00C4 \char ##x00F6 \char ##x00D6 } }
  &:a;&:A;&:o;&:O;
  fin.
}

\score {
  <<
\new Staff \context Voice = Vs { \Ms }
\lyricsto Vs { \context Lyrics = Ls { \Ls } }
  >>
}___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Compressing percent repeats.

2016-01-19 Thread Pierre Perol-Schneider
BTW, another hacky solution would be to use \compressFullBarRests and
simply change its stencil  with the 'percent' sign.
Not nice though.
~Pierre

2016-01-19 12:27 GMT+01:00 Pierre Perol-Schneider <
pierre.schneider.pa...@gmail.com>:

> Hi Hwaen Ch'uqi,
>
> Far from being perfect but it's a start:
>
> \version "2.19.35"
>
> compressPercent =
> #(define-music-function (repeats notes) (integer? ly:music?)
>   #{
> \tag Orch {
> %% Optional:
> %\set countPercentRepeats = ##t
> \repeat percent #repeats \absolute { #notes }
> }
> \tag Solo {
>   \repeat percent 2 {
> \set countPercentRepeats = ##t
> \override PercentRepeatCounter.stencil = #(lambda (grob)
>(grob-interpret-markup grob
>  (markup #:concat
>( ;; Optional:
>  #:fontsize -3 "x"
>  (number->string repeats)
> #notes
> \applyContext #(lambda (c)
>   (set! (ly:context-property
>  (ly:context-find c 'Timing)
>  'currentBarNumber)
>(+ (- repeats 2) (ly:context-property c
> 'currentBarNumber
>   }
> }
> #})
>
> soloInstrumentOne = \relative {
>   c' c c c
>   \compressPercent 8 \relative { c''4 c c c }
>   \break
>   c4 c c c
>   \bar "|."
> }
>
> soloInstrumentTwo = \relative {
>   \repeat unfold 10 { c''4 c c c }
> }
>
> %%% Orchestral score %%%
> \score {
>   \new StaffGroup <<
> \new Staff
>   \with { instrumentName = "Inst 1" }
>   \keepWithTag Orch\soloInstrumentOne
> \new Staff
>   \with { instrumentName = "Inst 2" }
>   \soloInstrumentTwo
>   >>
> }
>
> %%% Solo score %%%
> \score {
>   \new Staff
> \with { instrumentName = "Inst 1" }
> \keepWithTag Solo\soloInstrumentOne
>   }
>
> HTH,
> Cheers,
> Pierre
>
> 2016-01-19 3:46 GMT+01:00 Hwaen Ch'uqi :
>
>> Greetings All,
>>
>> I am generating parts from an orchestral score and am wondering if
>> there is any way of handling percent repeats in the same manner as
>> \compressFullBarRests does for multimeasure rests? That is, a number
>> would be placed above, say, an isolated repeat informing the player
>> how many times to repeat the measure; meanwhile, currentBarNumber
>> would be automatically updated. I see from this thread
>>
>> https://lists.gnu.org/archive/html/lilypond-user/2014-02/msg00050.html
>>
>> that text could be placed manually (though not optimally) above the
>> isolated repeat, and so too could I manually reset currentBarNumber,
>> but that will surely prove to be time-consuming for a piece of this
>> magnitude. Any help would be greatly appreciated.
>>
>> Hwaen Ch'uqi
>>
>> ___
>> 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: Swedish letters in Lilypond lyrics?

2016-01-19 Thread Karin
Hi!

Thanks for the help! We can conclude that Lilypad does not support UTF-8. I 
opened with Notepad and save as (was ANSI!!) but chose UTF-8 and that 
solved the issue!



I would like the Lillypad to support UTF-8. Would be a good Christmas gift 
next year :-)



BR

Karin

- who finally learnt how to answer stuff "on-list"... Still a lot to 
learn ;-)


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


Re: Swedish letters in Lilypond lyrics?

2016-01-19 Thread karl
David Kastrup:
> k...@aspodata.se writes:
> > David Kastrup:
> >> k...@aspodata.se writes:
> > ...
> >> > BTW, does someone know why add-text-replacements in attached file 
> >> > doesn't work ?
> >> >  I got the syntax from:
> >> > http://www.gnu.org/software/guile/manual/html_node/String-Syntax.html#String-Syntax
> >> That's the Guile-2.0 manual.  LilyPond uses 1.8 at the moment.
> > Hmm, so basically it can't be done.
> Nonsense.  You just need to use octal escapes for the actual UTF-8 byte
> sequences.  And you'll probably need to revisit that input once
> Guile-2.0 actually gets used: I don't think there is an obvious
> "portable" way to do it.

So, if neither of the ;-commented out lines below work, what do I do?

\paper {
  #(include-special-characters)

  #(add-text-replacements!
'(
  ("100" . "hundred")
  ("dpi" . "dots per inch")
  ;(":a" . "\u00E4" )
  ;(":b" . "\x00\xE4" )
  ;(":c" . (list->string (\x00 \xE4)) )
  ;(":d" . $ \markup \char ##x00E4 $ )
))
}

Regards,
/Karl Hammar

---
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden
+46 173 140 57



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


Re: Swedish letters in Lilypond lyrics?

2016-01-19 Thread David Kastrup
k...@aspodata.se writes:

> David Kastrup:
>> k...@aspodata.se writes:
>> > David Kastrup:
>> >> k...@aspodata.se writes:
>> > ...
>> >> > BTW, does someone know why add-text-replacements in attached file 
>> >> > doesn't work ?
>> >> >  I got the syntax from:
>> >> > http://www.gnu.org/software/guile/manual/html_node/String-Syntax.html#String-Syntax
>> >> That's the Guile-2.0 manual.  LilyPond uses 1.8 at the moment.
>> > Hmm, so basically it can't be done.
>> Nonsense.  You just need to use octal escapes for the actual UTF-8 byte
>> sequences.  And you'll probably need to revisit that input once
>> Guile-2.0 actually gets used: I don't think there is an obvious
>> "portable" way to do it.
>
> So, if neither of the ;-commented out lines below work, what do I do?
>
> \paper {
>   #(include-special-characters)
>
>   #(add-text-replacements!
> '(
>   ("100" . "hundred")
>   ("dpi" . "dots per inch")
>   ;(":a" . "\u00E4" )
>   ;(":b" . "\x00\xE4" )
>   ;(":c" . (list->string (\x00 \xE4)) )
>   ;(":d" . $ \markup \char ##x00E4 $ )
> ))
> }

Uh, do you actually know what UTF-8 is?  \x00\xE4 would rather be
UTF-16BE.  The UTF-8 byte sequence is "\xc3\xa4" instead which works.
\x00 is not a valid number or character and you use it like a function
call because of failing to quote.  #\000 would be a character, but it
needs to be in octal, so we are talking here about
(list->string '(#\303 #\244))

$ is not a valid method to escape from Scheme into LilyPond but rather
the other way round.

#{ \markup \char ##x00e4 #} does not work since markup commands like
\char are only evaluated at markup interpretation time.

You can use (ly:char->utf8 #x00e4) instead.

-- 
David Kastrup

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


Re: Swedish letters in Lilypond lyrics?

2016-01-19 Thread Simon Albrecht

On 19.01.2016 22:34, David Kastrup wrote:

k...@aspodata.se writes:


David Kastrup:

k...@aspodata.se writes:

David Kastrup:

k...@aspodata.se writes:

...

BTW, does someone know why add-text-replacements in attached file
doesn't work ?
  I got the syntax from:
http://www.gnu.org/software/guile/manual/html_node/String-Syntax.html#String-Syntax

That's the Guile-2.0 manual.  LilyPond uses 1.8 at the moment.

Hmm, so basically it can't be done.

Nonsense.  You just need to use octal escapes for the actual UTF-8 byte
sequences.  And you'll probably need to revisit that input once
Guile-2.0 actually gets used: I don't think there is an obvious
"portable" way to do it.

So, if neither of the ;-commented out lines below work, what do I do?

\paper {
   #(include-special-characters)

   #(add-text-replacements!
 '(
   ("100" . "hundred")
   ("dpi" . "dots per inch")
   ;(":a" . "\u00E4" )
   ;(":b" . "\x00\xE4" )
   ;(":c" . (list->string (\x00 \xE4)) )
   ;(":d" . $ \markup \char ##x00E4 $ )
 ))
}

Uh, do you actually know what UTF-8 is?  \x00\xE4 would rather be
UTF-16BE.  The UTF-8 byte sequence is "\xc3\xa4" instead which works.
\x00 is not a valid number or character and you use it like a function
call because of failing to quote.  #\000 would be a character, but it
needs to be in octal, so we are talking here about
(list->string '(#\303 #\244))

$ is not a valid method to escape from Scheme into LilyPond but rather
the other way round.

#{ \markup \char ##x00e4 #} does not work since markup commands like
\char are only evaluated at markup interpretation time.

You can use (ly:char->utf8 #x00e4) instead.


So, forget my question :-)

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


Re: Swedish letters in Lilypond lyrics?

2016-01-19 Thread Simon Albrecht

On 19.01.2016 22:13, k...@aspodata.se wrote:

David Kastrup:

k...@aspodata.se writes:

David Kastrup:

k...@aspodata.se writes:

...

BTW, does someone know why add-text-replacements in attached file
doesn't work ?
  I got the syntax from:
http://www.gnu.org/software/guile/manual/html_node/String-Syntax.html#String-Syntax

That's the Guile-2.0 manual.  LilyPond uses 1.8 at the moment.

Hmm, so basically it can't be done.

Nonsense.  You just need to use octal escapes for the actual UTF-8 byte
sequences.  And you'll probably need to revisit that input once
Guile-2.0 actually gets used: I don't think there is an obvious
"portable" way to do it.

So, if neither of the ;-commented out lines below work, what do I do?


Well, the method used in ‘ly/text-replacements.ly’ (in the LilyPond 
source) is as simple as that:


\version "2.19.35"
\paper {
  #(include-special-characters)
  #(add-text-replacements!
'(
   ("&:a;" . "ä")
   ))
}
\markup "&:a;"

Now, I can’t recall any more if the rationale behind this was to use 
pure ASCII input; if you’re not bound to that, then it’s solved.
And David: The character map application gives me ‘\303\244’ as octal 
escape for ‘ä’, and I found that one can use them in C, but not how to 
use them in Guile (1.8). Can one?


Best, Simon

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


Re: Controlling hairpin length

2016-01-19 Thread Thomas Morley
2016-01-19 13:53 GMT+01:00 David Sumbler :
> On Tue, 2016-01-19 at 01:27 +0100, Thomas Morley wrote:
>> 2016-01-19 1:04 GMT+01:00 Thomas Morley :
>> > Hi David,
>> >
>> > 2016-01-18 22:56 GMT+01:00 David Sumbler :
>> >
>> >> After spending some hours trying to get to the bottom of this problem,
>> > [...]
>> >
>> > Well, I spend some hours creating the function(s) ;)
>> >
>> >> I narrowed it down to 3 different elements in my files
>> > [...]
>> >> I feel
>> >> that ideally an improvement in an area where Lilypond is somewhat
>> >> unsatisfactory (so far as the user is concerned) should not at the same
>> >> time break some other aspect(s) of the program's output,
>> >
>> > Indeed.
>> > Though I can't fix a problem which I didn't foresee or which wasn't 
>> > reported.
>> > Thus, thanks for your examples.
>> >
>> > Please replace
>> > #(define ((hairpin-minimum-length my-minimum) grob)
>> > ...
>> >
>> > with the code below:
>> >
>> > #(define ((hairpin-minimum-length my-minimum) grob)
>> >   (let* ((bound-left (ly:spanner-bound grob LEFT))
>> >  (bound-right (ly:spanner-bound grob RIGHT))
>> >  (sys (look-up-for-parent 'System Y grob))
>> >  (left-x-ext (ly:grob-extent bound-left sys X))
>> >  (right-x-ext (ly:grob-extent bound-right sys X)))
>> > (ly:grob-set-property! grob 'minimum-length
>> >   ;; keep 'minimum-length user-settable
>> >   (max (ly:grob-property-data grob 'minimum-length)
>> >;; nb, this calculation is only an approximation
>> >;; should work in most cases, though
>> >(+ my-minimum
>> >   (max (cdr left-x-ext) 0)
>> >   (max (cdr right-x-ext) 0))
>>
>> Probably even better:
>>
>> #(define ((hairpin-minimum-length my-minimum) grob)
>>   (let* ((bound-left (ly:spanner-bound grob LEFT))
>>  (bound-right (ly:spanner-bound grob RIGHT))
>>  (sys (look-up-for-parent 'System Y grob))
>>  (left-x-ext (ly:grob-extent bound-left sys X))
>>  (right-x-ext (ly:grob-extent bound-right sys X)))
>> (ly:grob-set-property! grob 'minimum-length
>>   ;; keep 'minimum-length user-settable
>>   (max (ly:grob-property-data grob 'minimum-length)
>>;; nb, this calculation is only an approximation
>>;; should work in most cases, though
>>(+ my-minimum
>>   (if (interval-sane? left-x-ext) (cdr left-x-ext) 0)
>>   (if (interval-sane? right-x-ext) (cdr right-x-ext) 0))
>>
>> >
>> > Please report back, whether it works now.
>> >
>> > Cheers,
>> >   Harm
>
> Thank you for accepting my comments about the usability of
> \myHairpinMinimumLength in the spirit that was intended.
>
> I can report that both of the new versions produce no errors.
>
> However, I am still having a problem with the following bar:
>
> g8\< g a g fs4\mf\> r\invP |
>
> where invP = \tweak stencil ##f \p
>
> This gives a "decrescendo too small" warning, with the all too familiar
> vertical line in place of a hairpin, if myHairpinMinimumLength is set to
> a value of less than 3.
>
> Yet in the very next bar:
>
> b,8\mp as\< b cs as--\> b\! r4 |
>
> the diminuendo is unnecessarily long (approximately 5.5 staff spaces
> with the variable set to #2), forcing the final two quavers apart.
>
> I note that in the comments you say "nb, this calculation is only an
> approximation; should work in most cases, though".  But from the above 2
> bars it appears that the printed length of a hairpin can be at least 2.5
> staff spaces shorter or longer than the requested length.  This means
> that the length of individual hairpins may need to be tweaked - which is
> the same problem that we have with the built in Hairpin.minimum-length .
>
> David
>

Well, `minimum-length' is a beasty thing ...

Please try the code below. I paste the complete one plus examples,
because it's changed more than only improve some calculations.
`myHairpinMinimumLength' is now an override reading `minimum-length'
from a separate override or taking the default.

\version "2.19.35"

\language "english"

%% a helper:
#(define (look-up-for-parent name-symbol axis grob)
"Return the parent of @var{grob}, specified by it's @var{name-symbol} in
axis @var{axis} of @var{grob}.  If @var{grob} is already equal to the grob
named @var{name-symbol} return @var{grob}.  If not found, look up for the next
parent."
 (let* ((parent (ly:grob-parent grob axis)))
 (cond
   ((not (ly:grob? parent))
(ly:error
   (_"Perhaps typing error for \"~a\" or \"~a\" is not in the parent-tree.")
   name-symbol name-symbol))
   ((equal? name-symbol (grob::name grob)) grob)
   ((not (equal? name-symbol (grob::name parent)))
(look-up-for-parent name-symbol axis parent))
   (else parent

#(define (my-hairpin-minimum-length grob)
"Sets @code{minimum-length} for @code{Hairpin}, if their left bound is not the
@code{NoteColumn}.
The 

Re: Swedish letters in Lilypond lyrics?

2016-01-19 Thread David Kastrup
k...@aspodata.se writes:

> David Kastrup:
>> k...@aspodata.se writes:
> ...
>> > BTW, does someone know why add-text-replacements in attached file 
>> > doesn't work ?
>> >
>> >  I got the syntax from:
>> > http://www.gnu.org/software/guile/manual/html_node/String-Syntax.html#String-Syntax
>> 
>> That's the Guile-2.0 manual.  LilyPond uses 1.8 at the moment.
>
> Hmm, so basically it can't be done.

Nonsense.  You just need to use octal escapes for the actual UTF-8 byte
sequences.  And you'll probably need to revisit that input once
Guile-2.0 actually gets used: I don't think there is an obvious
"portable" way to do it.

-- 
David Kastrup

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


Re: Swedish letters in Lilypond lyrics?

2016-01-19 Thread Simon Albrecht

On 19.01.2016 17:07, k...@aspodata.se wrote:

David Kastrup:

k...@aspodata.se writes:

...

BTW, does someone know why add-text-replacements in attached file
doesn't work ?

  I got the syntax from:
http://www.gnu.org/software/guile/manual/html_node/String-Syntax.html#String-Syntax

That's the Guile-2.0 manual.  LilyPond uses 1.8 at the moment.

Hmm, so basically it can't be done.


Except of course one would extend the list of aliases in LilyPond, which 
might not even be difficult.


Yours, Simon

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


Re: Lilypond and Jazz chords

2016-01-19 Thread Robert Schmaus



Hi Kieren and Ponders,


I’m very detail-oriented, so things that others might consider “little” often 
drive me quite crazy.  =)


Well, "little" is the wrong expression - "not painful enough to invest 
the time" is closer to the truth.




Quite possibly that is easy to fix though


Should be.


Turns out, it isn't that easy to fix, for me anyway. Maybe anyone can 
point me in the right direction ...


I checked the code of my jazz-include files, and this is where the 
chords are being defined:


chJazzMusic = {
  < c ees ges > -\markup \super #"o"
  < c d g >  -\markup \super #"sus2"
  < c f g >  -\markup \super #"sus4"

  % etc
}

chJazz = #(append (sequential-music-to-chord-exceptions chJazzMusic #t))

\layout {
  \context {
\Score
chordNameExceptions = #chJazz
\override ChordName.font-size = #4
\override ChordName.font-name = #"LilyJAZZText"
  }
}

Now, I assumed that I had to do something about the accidentals in that 
\context block, but apparently it's not that easy.


I checked this example from the LSR
http://lsr.di.unimi.it/LSR/Snippet?id=750
and I think, what I need to do is to set the chordRootNamer in that 
\context block. There even is a chord namer routine in my include file 
which looks like this:


#(define (chordNamer pitch)
(let* ((alt (ly:pitch-alteration pitch)))
(make-line-markup
 (list
  (make-simple-markup
   (vector-ref #("C" "D" "E" "F" "G" "A" "B")
(ly:pitch-notename pitch)))
  (if (= alt 0) ; alteration?
  (markup "") ; ... nope
  (if (= alt FLAT) ; ... otherwise
  (markup #:smaller #:flat ) ; flat
  (markup #:smaller #:sharp ) ; ... or sharp
  )
  )
  )
 )
)
)

That's what I need to change and use but right now, that code is not 
even called.

I think I need to add something like

chordRootNamer = #chordNamer

to the \context block but that doesn't work, it throws this error:

Interpreting music...[8][16]/Applications/Lilypond/v19/LilyPond 
2.19.18.app/Contents/Resources/share/lilypond/current/scm/chord-ignatzek-names.scm:212:9: 
In procedure chordNamer in expression (name-root root lowercase-root?):
/Applications/Lilypond/v19/LilyPond 
2.19.18.app/Contents/Resources/share/lilypond/current/scm/chord-ignatzek-names.scm:212:9: 
Wrong number of arguments to #

Exited with return code 1.

I don't really know what to change here ... can anyone give me directions?

Thanks,
Robert






LilyJazz […] does provide output that is superbly readable even in shady, dim 
conditions.


Agreed.

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


Fw: new important message

2016-01-19 Thread MarcM
Hello!

 

New message, please read 

 

m...@mouries.net





--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Fw-new-important-message-tp186208.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: Swedish letters in Lilypond lyrics?

2016-01-19 Thread karl
Karin:
> Thanks for the help! We can conclude that Lilypad does not support UTF-8. I 
> opened with Notepad and save as (was ANSI!!) but chose UTF-8 and that 
> solved the issue!

Ok, maybe then http://www.frescobaldi.org/ should be something for you:

http://www.microsoft.com/en-us/download/details.aspx?id=29
https://github.com/wbsoft/frescobaldi/releases/download/v2.18.2/Frescobaldi.Setup.2.18.2.exe

> I would like the Lillypad to support UTF-8. Would be a good Christmas gift 
> next year :-)

Great, we'll look forward to your gift next Christmas then :)

Regards,
/Karl Hammar

---
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden
+46 173 140 57



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


How to include unicode chars in scheme strings

2016-01-19 Thread karl
http://www.lilypond.org/doc/v2.18/Documentation/notation/special-characters#ascii-aliases

say I can do:

\paper {
  #(include-special-characters)

  #(add-text-replacements!
'(("100" . "hundred")
  ("dpi" . "dots per inch")))
}
\markup "A 100 dpi."

Fine, it works.

///

But what if I would like to include some random unicode code point
into that scheme string, like:

  #(add-text-replacements!
'(
  ("100" . "hundred")
  ("dpi" . "dots per inch")
  (":a" . "\u00E4" )
  (":A" . "\u00C4" )
  (":o" . "\u00F6" )
  (":O" . "\u00D6" )
))

then lilypond fails. How should it be done ?

Regards,
/Karl Hammar

 I got the guile string syntax from:
http://www.gnu.org/software/guile/manual/html_node/String-Syntax.html#String-Syntax

 I found the codes for åäö in:
http://www.unicode.org/charts/PDF/U0080.pdf

---
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden
+46 173 140 57



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


Re: Swedish letters in Lilypond lyrics?

2016-01-19 Thread David Kastrup
k...@aspodata.se writes:

>> On 19/01/2016, 18:29, "Simon Albrecht"  wrote:
>> There are the text replacements, see NR A.13 (2.19.35).
>
> Andrew Bernad:
>> Isn’t it the OP’s point that this set is not rich enough to express Swedish?
>
> ä Ä ö and Ö is missing.
>
> ///
>
> BTW, does someone know why add-text-replacements in attached file 
> doesn't work ?
>
>  I got the syntax from:
> http://www.gnu.org/software/guile/manual/html_node/String-Syntax.html#String-Syntax

That's the Guile-2.0 manual.  LilyPond uses 1.8 at the moment.

-- 
David Kastrup

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


Re: Controlling hairpin length

2016-01-19 Thread David Sumbler
On Tue, 2016-01-19 at 01:27 +0100, Thomas Morley wrote:
> 2016-01-19 1:04 GMT+01:00 Thomas Morley :
> > Hi David,
> >
> > 2016-01-18 22:56 GMT+01:00 David Sumbler :
> >
> >> After spending some hours trying to get to the bottom of this problem,
> > [...]
> >
> > Well, I spend some hours creating the function(s) ;)
> >
> >> I narrowed it down to 3 different elements in my files
> > [...]
> >> I feel
> >> that ideally an improvement in an area where Lilypond is somewhat
> >> unsatisfactory (so far as the user is concerned) should not at the same
> >> time break some other aspect(s) of the program's output,
> >
> > Indeed.
> > Though I can't fix a problem which I didn't foresee or which wasn't 
> > reported.
> > Thus, thanks for your examples.
> >
> > Please replace
> > #(define ((hairpin-minimum-length my-minimum) grob)
> > ...
> >
> > with the code below:
> >
> > #(define ((hairpin-minimum-length my-minimum) grob)
> >   (let* ((bound-left (ly:spanner-bound grob LEFT))
> >  (bound-right (ly:spanner-bound grob RIGHT))
> >  (sys (look-up-for-parent 'System Y grob))
> >  (left-x-ext (ly:grob-extent bound-left sys X))
> >  (right-x-ext (ly:grob-extent bound-right sys X)))
> > (ly:grob-set-property! grob 'minimum-length
> >   ;; keep 'minimum-length user-settable
> >   (max (ly:grob-property-data grob 'minimum-length)
> >;; nb, this calculation is only an approximation
> >;; should work in most cases, though
> >(+ my-minimum
> >   (max (cdr left-x-ext) 0)
> >   (max (cdr right-x-ext) 0))
> 
> Probably even better:
> 
> #(define ((hairpin-minimum-length my-minimum) grob)
>   (let* ((bound-left (ly:spanner-bound grob LEFT))
>  (bound-right (ly:spanner-bound grob RIGHT))
>  (sys (look-up-for-parent 'System Y grob))
>  (left-x-ext (ly:grob-extent bound-left sys X))
>  (right-x-ext (ly:grob-extent bound-right sys X)))
> (ly:grob-set-property! grob 'minimum-length
>   ;; keep 'minimum-length user-settable
>   (max (ly:grob-property-data grob 'minimum-length)
>;; nb, this calculation is only an approximation
>;; should work in most cases, though
>(+ my-minimum
>   (if (interval-sane? left-x-ext) (cdr left-x-ext) 0)
>   (if (interval-sane? right-x-ext) (cdr right-x-ext) 0))
> 
> >
> > Please report back, whether it works now.
> >
> > Cheers,
> >   Harm

Thank you for accepting my comments about the usability of
\myHairpinMinimumLength in the spirit that was intended.

I can report that both of the new versions produce no errors.

However, I am still having a problem with the following bar:

g8\< g a g fs4\mf\> r\invP |

where invP = \tweak stencil ##f \p

This gives a "decrescendo too small" warning, with the all too familiar
vertical line in place of a hairpin, if myHairpinMinimumLength is set to
a value of less than 3.

Yet in the very next bar:

b,8\mp as\< b cs as--\> b\! r4 |

the diminuendo is unnecessarily long (approximately 5.5 staff spaces
with the variable set to #2), forcing the final two quavers apart.

I note that in the comments you say "nb, this calculation is only an
approximation; should work in most cases, though".  But from the above 2
bars it appears that the printed length of a hairpin can be at least 2.5
staff spaces shorter or longer than the requested length.  This means
that the length of individual hairpins may need to be tweaked - which is
the same problem that we have with the built in Hairpin.minimum-length .

David


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


Re: ly:one-page-breaking (was: ly:one-line-breaking)

2016-01-19 Thread Paul Morris
> On Jan 19, 2016, at 4:02 AM, Richard Shann  wrote:
> 
> That's great news! For the application to Denemo taglines and footnotes
> are not wanted anyway as it is for creating a score to play from
> on-screen.
> I guess it will be some time before this code gets into a release?

It depends on whether or not this is acceptable with the current known issues.  
(Some other pressing demands mean that I need to take a break from LilyPond 
work for some months, so I won’t have time to further improve upon this any 
time soon.)  In its current state it would already work for many of the more 
obvious use cases – like Denemo’s on-screen score or producing image files 
destined for other documents.

Should I put this up for code review or should we discuss this on the dev list? 
 …or in an issue tracker?


>> The approach is to temporarily set the page-height to the largest size 
>> possible, 
> 
> What is the largest size possible? I tried playing around with some
> sizes, and some didn't work …

I tried setting it to positive infinity, but that gave a programming error when 
there was a tagline.  I traced the error to Stencil::translate, which throws 
the error for any value greater than 1e6.  So I used 1e6 as the temporary 
page-height and everything is working fine.


>> do the line breaking and page layout for that page height, then get the 
>> vertical position on the page and the height of the lowest system (or top 
>> level markup), and use that to calculate and then set the final page height 
>> so that it fits the content of the page.
> 
> A crude version of this is what will be in the impending Denemo release
> - Denemo creates the SVG output and counts the pages and then re-runs
> LilyPond at a larger page size.

I think that should work pretty well for your use case.  I considered a similar 
approach before I worked out the current one.

-Paul



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


Re: Extent of hairpins

2016-01-19 Thread Kieren MacMillan
Hi David,

> How can I change the default so that hairpins normally stop at the left-hand 
> edge of the final note?

Adjust the bound-padding.

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: Swedish letters in Lilypond lyrics?

2016-01-19 Thread Hans Åberg

> On 19 Jan 2016, at 13:11, Karin  wrote:

> I would like the Lillypad to support UTF-8. Would be a good Christmas gift 
> next year :-)

On OS X, the editor in the LilyPond application works fine with UTF-8.



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


Displaying variables and parameter values

2016-01-19 Thread David Sumbler
Is there a way of displaying the current value of particular variables
and parameters during Lilypond compilation?

David


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


Re: Displaying variables and parameter values

2016-01-19 Thread Simon Albrecht

On 19.01.2016 16:20, David Sumbler wrote:

Is there a way of displaying the current value of particular variables
and parameters during Lilypond compilation?


Of course, e.g. with
#(format "Variable ‘foo’ currently has the value ~a\n" foo)
where foo is the variable, ~a references the next argument after the 
string and \n outputs a newline.

You should be able to insert this everywhere.

HTH, Simon

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


Re: Swedish letters in Lilypond lyrics?

2016-01-19 Thread Hans Åberg

> On 19 Jan 2016, at 13:11, Karin  wrote:

> I would like the Lillypad to support UTF-8. Would be a good Christmas gift 
> next year :-)

On OS X, the editor in the LilyPond application works fine with UTF-8.



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


Extent of hairpins

2016-01-19 Thread David Sumbler
I find that consecutive hairpins (e.g. {c\< d\>}) are too closely spaced
in standard Lilypond output.

Looking at Elaine Gould's wonderful book "Behind Bars", I notice that in
such cases her examples show one hairpin ending at the left-hand edge of
a note and the next beginning at the right-hand edge of the same note,
although she does not appear to say this - or if she does, it is a rare
example of ambiguity in the text.  (She says "good practice is to start
the hairpin on the left-hand edge of the note and to finish in on the
right-hand edge of a note"; looking at her examples, by "the right-hand
edge of a note" in this context she means the left-hand edge of the
following note, which is arguably the end of the duration of the first
note.)

This spacing gives a separation between consecutive hairpins of one
notehead width, centred on the note, which looks just about right to me.
Lilypond's default separation seems to be half of a notehead's width or
slightly less, centred on the note.  How can I alter this to increase
the separation to a full notehead's width?

When hairpins are not consecutive, but stand alone (without starting or
terminating dynamics), Lilypond appears to start a hairpin at the left
edge of the first note and end it at the right-hand edge of the last.
This has always looked wrong to me, and judging from p. 104 of her book,
it does to Elaine Gould too.  How can I change the default so that
hairpins normally stop at the left-hand edge of the final note?

David


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


Re: Displaying variables and parameter values

2016-01-19 Thread Urs Liska


Am 19.01.2016 um 16:20 schrieb David Sumbler:
> Is there a way of displaying the current value of particular variables
> and parameters during Lilypond compilation?

Of course. For example:

var = "three"

#(display var)
#(newline)

#(ly:message var)

varList = #'(one two three)
#(ly:message (format "~a" varList))

#(display varLIst)
#(newline)

HTH
Urs

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


Music Notation Style Guide

2016-01-19 Thread Luca Danieli
Just for those who yet don't know it, I've stumpled upon this beautiful Music 
Notation Style Guide published by the Indiana University Bloomington that can 
be of help to many people using Lilypond.
http://www.music.indiana.edu/departments/academic/composition/style-guide/
Luca  ___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Swedish letters in Lilypond lyrics?

2016-01-19 Thread karl
David Kastrup:
> k...@aspodata.se writes:
...
> > BTW, does someone know why add-text-replacements in attached file 
> > doesn't work ?
> >
> >  I got the syntax from:
> > http://www.gnu.org/software/guile/manual/html_node/String-Syntax.html#String-Syntax
> 
> That's the Guile-2.0 manual.  LilyPond uses 1.8 at the moment.

Hmm, so basically it can't be done.

Regards,
/Karl Hammar

---
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden
+46 173 140 57



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


Re: Extent of hairpins

2016-01-19 Thread David Sumbler
On Tue, 2016-01-19 at 10:22 -0500, Kieren MacMillan wrote:
> Hi David,
> 
> > How can I change the default so that hairpins normally stop at the 
> > left-hand edge of the final note?
> 
> Adjust the bound-padding.
> 
> Hope this helps!
> Kieren.

But surely this will affect both ends of the hairpin.

In the case of free-standing hairpins I would like to move the end of
the hairpin to align with the left-hand side of the note, but the start
of the hairpin is fine as it is.

In the case of consecutive hairpins, I want to affect the alignment of
the end of the first hairpin and the start of the second; or, if
hairpins were generally aligned in accordance with the preceding
paragraph, it would be simply a question of moving the start of the
second hairpin.

Can the ends not be controlled separately?

David


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


Re: Extent of hairpins

2016-01-19 Thread Kieren MacMillan
Hi,

> But surely this will affect both ends of the hairpin.

You’d think so, wouldn’t you?
But that hasn’t been my experience.
Try it, and let me know how it works.

> Can the ends not be controlled separately?

As I understand it:
#'X-offset will effect where the left-hand side begins
#'bound-padding will effect [only!?] where the right-hand side ends

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