Re: v2.19.47 on Mac x86

2016-09-04 Thread Andrew Bernard
Hi Jacques,

This is puzzling. Have you explicitly turned off the rootless protection?
If not, have you got XCode installed? The question is, why does your system
work, rather than why does mine not work, in fact! :=) There are hundreds
of threads about this rootless problem on the internet. I am not a Mac
developer, so I don’t fully comprehend it, and I am not prepared to
sacrifice my Mac by adjusting the csrutl settings in recovery mode to turn
it all off.

Shoud this thread move to the devel list?

Andrew



On 5 September 2016 at 1:41:44 AM, Jacques Menu Muzhic (
imj-muz...@bluewin.ch) wrote:

Hello Andrew,

I run El Capitan 10.11.6:

menu@macbookprojm:~/Documents/LaTeX/PartitionsLilypond > uname -a
Darwin macbookprojm 15.6.0 Darwin Kernel Version 15.6.0: Mon Aug 29
20:21:34 PDT 2016; root:xnu-3248.60.11~1/RELEASE_X86_64 x86_64

and I get:

menu@macbookprojm:~ > sudo dtruss lilypond --version

...
…

Your configuration seems to have some other problem as far as I can guess.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: v2.19.47 on Mac x86 (Jacques Menu Muzhic)

2016-09-04 Thread Hans Aikema
On 04 Sep 2016, at 19:42, Cynthia Karl  wrote:
> 
> 
>> Message: 5
>> Date: Sun, 4 Sep 2016 17:41:42 +0200
>> From: Jacques Menu Muzhic 
>> To: Andrew Bernard 
>> Cc: Jacques Menu Muzhic , lilypond-user
>>  
>> Subject: Re: v2.19.47 on Mac x86
>> I run El Capitan 10.11.6:
>> 
>> menu@macbookprojm:~/Documents/LaTeX/PartitionsLilypond > uname -a
>> Darwin macbookprojm 15.6.0 Darwin Kernel Version 15.6.0: Mon Aug 29 20:21:34 
>> PDT 2016; root:xnu-3248.60.11~1/RELEASE_X86_64 x86_64
>> 
>> and I get:
>> 
>> menu@macbookprojm:~ > sudo dtruss lilypond --version
> 
> 
> I run El Capitan 10.11.6 and get the exact same output for “uname -a”.
> 
> I wanted to see what the difference was between v2.19.46 and v2.19.47, so I 
> ran them both on the following file:
> 
> bash-3.2$ cat 1note.ly
> \version "2.19.46"
> { c4 }
> 
> <….>

> I then ran dtruss -c on both versions to see what the difference in system 
> calls was.
> 
> The following table shows the number of system calls which have a Count > 100 
> for the v2.19.47 version and the corresponding count for the v2.19.46 version:
> 
> CALL  COUNT LP46  COUNT LP47
> … …   …
> getattrlist   112 128
> stat  178 171
> stat64207 207
> sigaltstack   222 228
> sigprocmask   263 269
> select_nocancel   320 323
> lseek   57  123013
> read_nocancel 341   125474
> 
> I then did a count of the number of lseeks on file descriptors <= 13 (at 
> first glance there are no file descriptors greater than 12:
> 
> lseek(0xfiledes   v46 v47
> 
> lseek(0x0  1   23
> lseek(0x1  1 1
> lseek(0x2  1 1
> lseek(0x3  2 2
> lseek(0x4  0 0
> lseek(0x5  0 0
> lseek(0x6  2 2
> lseek(0x7 35   35
> lseek(0x8   8 122969
> lseek(0x9   3   3
> lseek(0xA   11
> lseek(0xB   33
> lseek(0xC   00
> 
> Hopefully, this information might be of use to someone trying to figure this 
> problem out.
> 
> The most salient questions would be:  what is filedes 8 used for?  And why is 
> this problem only occurring on Macs?
> 
> 
> 
> 
> 
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user

I did a dtrace on 2.19.47, using the default introductionary song that Lilypond 
uses as a starting sample (when starting the Lilypond app)

#!/usr/sbin/dtrace -s
syscall::lseek:entry /execname == "lilypond"/ { printf("lseek for %s ", 
execname); }
syscall::open*:entry /execname == "lilypond"/ { printf("%s %s", execname, 
copyinstr(arg0)); }


Searching within the created log-file of all dtrace hits for "open", so that 
only the open* entries are found shows that apparently the lseek-explosion 
occurs while lilypond is scanning the Mac OS X Fonts (this was not the first 
run of 2.19.47, so the initial font-scanning of the first run can not be blamed 
(unless the changes from 2.19.46 to 2.19.47 broke the font-caching system for 
Mac OS X of course)):

CC-ing lilypond-devel as this may provide useful information for them too


  0151   open:entry lilypond 
/Users/aikebah/Downloads/LilyPond2.19.47.app/Contents/Resources/bin/../lib/libintl.8.dylib
<..some additional open/open_nocancel calls left out..>
  0937  open_nocancel:entry lilypond 
/Users/aikebah/Downloads/LilyPond2.19.47.app/Contents/Resources/share/lilypond/current/fonts/otf
> LINE 283 0937  open_nocancel:entry lilypond 
/Users/aikebah/.lilypond-fonts.cache-2//33296e741d33efa1650f388486e232c6-i686-apple-darwin8.cache-7
> LINE 284 0937  open_nocancel:entry lilypond /Library/Fonts
> LINE 285 0937  open_nocancel:entry lilypond 
/Users/aikebah/.lilypond-fonts.cache-2//84c0f976e30e948e99073af70f4ae876-i686-apple-darwin8.cache-7
> LINE 286 0937  open_nocancel:entry lilypond 
/System/Library/Fonts
> LINE 287 0937  open_nocancel:entry lilypond 
/Users/aikebah/.lilypond-fonts.cache-2//b0a71e6bf6a8a1a908413a823d76e21f-i686-apple-darwin8.cache-7
> LINE 288 0937  open_nocancel:entry 

Fwd: Re: v2.19.47 on Mac x86

2016-09-04 Thread Patrick Karl




 Forwarded Message 
Subject:Re: v2.19.47 on Mac x86
Date:   Sun, 4 Sep 2016 15:16:03 -0500
From:   Patrick Karl 
To: Jacques Menu Muzhic 





Message: 5
Date: Sun, 4 Sep 2016 17:41:42 +0200
From: Jacques Menu Muzhic 
To: Andrew Bernard 
Cc: Jacques Menu Muzhic ,  lilypond-user

Subject: Re: v2.19.47 on Mac x86
I run El Capitan 10.11.6:

menu@macbookprojm:~/Documents/LaTeX/PartitionsLilypond > uname -a
Darwin macbookprojm 15.6.0 Darwin Kernel Version 15.6.0: Mon Aug 29
20:21:34 PDT 2016; root:xnu-3248.60.11~1/RELEASE_X86_64 x86_64

and I get:

menu@macbookprojm:~ > sudo dtruss lilypond --version


I run El Capitan 10.11.6 and get the exact same output for “uname -a”.

I wanted to see what the difference was between v2.19.46 and v2.19.47,
so I ran them both on the following file:

bash-3.2$ cat 1note.ly
\version "2.19.46"
{ c4 }

bash-3.2$ time lilypond 1note.ly
GNU LilyPond 2.19.46
Processing `1note.ly'
Parsing...
Interpreting music...
Preprocessing graphical objects...
Finding the ideal number of pages...
Fitting music on 1 page...
Drawing systems...
Layout output to `/tmp/lilypond-22EfXs'...
Converting to `1note.pdf'...
Deleting `/tmp/lilypond-22EfXs'...
Success: compilation successfully completed

real0m0.820s
user0m0.638s
sys0m0.093s


bash-3.2$ LP47=$l47
bash-3.2$ echo $LP47
/Users/pat/Downloads/LilyPond.app/Contents/Resources/bin/lilypond
bash-3.2$ time $LP47 1note.ly
GNU LilyPond 2.19.47
Processing `1note.ly'
Parsing...
Interpreting music...
Preprocessing graphical objects...
Finding the ideal number of pages...
Fitting music on 1 page...
Drawing systems...
Layout output to `/tmp/lilypond-B2ws6y'...
Converting to `1note.pdf'...
Deleting `/tmp/lilypond-B2ws6y'...
Success: compilation successfully completed

real1m2.364s
user0m46.848s
sys0m15.145s

I then ran dtruss -c on both versions to see what the difference in
system calls was.

The following table shows the number of system calls which have a Count

100 for the v2.19.47 version and the corresponding count for the

v2.19.46 version:

CALLCOUNT LP46COUNT LP47
………
getattrlist112128
stat178171
stat64207207
sigaltstack222228
sigprocmask263269
select_nocancel320323
lseek  57  123013
read_nocancel341  125474

I then did a count of the number of lseeks on file descriptors <= 13 (at
first glance there are no file descriptors greater than 12:

lseek(0xfiledesv46v47

lseek(0x0  1  23
lseek(0x1  11
lseek(0x2  11
lseek(0x3  22
lseek(0x4  00
lseek(0x5  0   0
lseek(0x6  22
lseek(0x7 35  35
lseek(0x8   8 122969
lseek(0x9   3   3
lseek(0xA   11
lseek(0xB   33
lseek(0xC   00

Hopefully, this information might be of use to someone trying to figure
this problem out.

The most salient questions would be:  what is filedes 8 used for? And
why is this problem only occurring on Macs?



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


Re: intercepting implicit/explicit page breaks

2016-09-04 Thread Knut Petersen

Hi Thomas!

I once made: [...]



Thanks a lot, that was exactly what I was looking for.

Knut

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


Re: to make a function with argument list or vector

2016-09-04 Thread Simon Albrecht

On 04.09.2016 20:47, Thomas Morley wrote:

Urs suggestion would lead to the following, which I'd recommend as well:

foo =
#(define-music-function (parser location lst)(number-list?)
   #{
 $@(map (lambda (i) #{ \repeat unfold $i { c2 } \bar "||" #}) lst) \bar "|."
   #})

\foo #'(5 7 10 8)


Nice!




2016-09-04 20:15 GMT+03:00, Simon Albrecht:

Hi Oxana,

I_guess_  the reason it doesn’t work is because the parser doesn’t
accept a Scheme expression instead of the number after \repeat
unfold.

Nope.


Oops… sorry!

Best, Simon

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


Re: 2 questions on choir staff

2016-09-04 Thread Craig Dabelstein
Hi Pierre,

Thanks for your advice.

Craig

On 4 September 2016 at 21:15, Pierre Perol-Schneider <
pierre.schneider.pa...@gmail.com> wrote:

> Hi Craig,
>
> How about :
>
> \version "2.19.36"
>
> \paper {
>   left-margin = 25
> }
>
> \score {
>   \new ChoirStaff  \with {
> %\consists "Instrument_name_engraver" %% <= why ?
> instrumentName = \markup {
>   \rotate #90 "SOLI"
> }
> shortInstrumentName = \markup {
>   \rotate #90 "SOLI" \hspace #3
> }
>   }
>   <<
> \new Staff = "alto" {
>   \set Staff.instrumentName = #"Alto"
>   \set Staff.shortInstrumentName = #"A."
>   \new Voice = "alto" {
> \repeat unfold 20 { c''1 }
>   }
> }
>
> \new Staff = "tenor"  {
>   \set Staff.instrumentName = #"Tenor"
>   \set Staff.shortInstrumentName = #"T."
>   \new Voice = "tenor" {
> \clef bass
> \repeat unfold 20 { c'1 }
>   }
> }
>
> \new Staff = "bass"  {
>   \set Staff.instrumentName = #"Bass"
>   \set Staff.shortInstrumentName = #"B."
>   \new Voice = "bass" {
> \clef bass
> \repeat unfold 20 { c1 }
>   }
> }
>   >>
>   \layout {
> \context {
>   \Score
>
> }
> \context {
>   \ChoirStaff
>   \override InstrumentName.self-alignment-X = #LEFT
>   \remove System_start_delimiter_engraver
> }
> \context {
>   \Staff
>   \override InstrumentName.self-alignment-X = #RIGHT
> }
>   }
> }
>
> Cheers,
> Pierre
>
> 2016-09-04 11:40 GMT+02:00 Craig Dabelstein :
>
>>
>> Hi Lilyponders,
>>
>> I have two questions in the following minimal example:
>> 1. How do you move the "SOLI" text to the left so that it doesn't overlap
>> the text?
>> 2. How do I keep the ChoirStaff context but remove the opening bracket?
>>
>> Thanks for your advice,
>>
>> Craig
>>
>> %%%
>>
>> \version "2.19.36"
>>
>> \paper {
>>   left-margin = 25
>> }
>>
>> \score {
>>   \new ChoirStaff  \with {
>> \consists "Instrument_name_engraver"
>> instrumentName = \markup {
>>   \rotate #90
>>   \line {
>> SOLI
>>   }
>> }
>> shortInstrumentName = \markup {
>>   \rotate #90
>>   \line {
>> SOLI
>>   }
>> }
>>   }
>>   <<
>> \new Staff = "alto" {
>>   \set Staff.instrumentName = #"Alto"
>>   \set Staff.shortInstrumentName = #"A."
>>   \new Voice = "alto" {
>> \repeat unfold 20 { c''1 }
>>   }
>> }
>>
>> \new Staff = "tenor"  {
>>   \set Staff.instrumentName = #"Tenor"
>>   \set Staff.shortInstrumentName = #"T."
>>   \new Voice = "tenor" {
>> \clef bass
>> \repeat unfold 20 { c'1 }
>>   }
>> }
>>
>> \new Staff = "bass"  {
>>   \set Staff.instrumentName = #"Bass"
>>   \set Staff.shortInstrumentName = #"B."
>>   \new Voice = "bass" {
>> \clef bass
>> \repeat unfold 20 { c1 }
>>   }
>> }
>>   >>
>> }
>>
>> %%end
>> *Craig Dabelstein*
>> e:craig.dabelst...@gmail.com
>> 
>> 
>>
>> ___
>> 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: to make a function with argument list or vector

2016-09-04 Thread Thomas Morley
Hi Оксана,

you try to output music from a recursively defined scheme-function.
As Urs already said use a music-function for music.
Also some mistakes:


2016-09-04 18:52 GMT+02:00 Оксана Крымина :

> \version "2.18.2"
> musSpisok = #(define-scheme-function (parser location llen)(list?)
> (if (not (null? llen))
> #{
>   \repeat unfold $(car llen) {c2} \bar ""  (


The last typed character, "(", is interpreted by LilyPond, usually as
Slur-start.
> \musSpisok #'(cdr llen))  )
   ^
Don't quote (cdr llen), if you want it evaluated.
> #})

But even corrected this would produce not what you want.

2016-09-04 20:26 GMT+02:00 Urs Liska :
>
>
> Am 4. September 2016 19:30:02 MESZ, schrieb "Оксана Крымина"
> :
>>Great! It works! It works!
>>Thank You!
>>
>
> The first thing is you had to use define-music-function because that returns
> *music*.
>
> Then you can return a *list* of music expressions with something like
>
> @(map
> (lambda (len)
> #{ \repeat unfold #len ... #})
> llen)
>
> (completely untested, on the phone)
> This iterates over your input list and produces the music using regular
> syntax.
>
> HTH
> Urs

Urs suggestion would lead to the following, which I'd recommend as well:

foo =
#(define-music-function (parser location lst)(number-list?)
  #{
$@(map (lambda (i) #{ \repeat unfold $i { c2 } \bar "||" #}) lst) \bar "|."
  #})

\foo #'(5 7 10 8)

>>2016-09-04 20:15 GMT+03:00, Simon Albrecht :
>>> Hi Oxana,
>>>
>>> I _guess_ the reason it doesn’t work is because the parser doesn’t
>>> accept a Scheme expression instead of the number after \repeat
>>unfold.

Nope. See above

>>> The solution is creating music via Scheme. As a first step, you can
>>> always use something like
>>>
>>> %%%
>>> \version "2.19.47"
>>> \displayMusic { \repeat unfold 2 { c'1 } }
>>> %%%
>>>
>>> to see what the music looks like on the Scheme level:
>>>
>>> ;
>>> (make-music
>>> 'SequentialMusic
>>> 'elements
>>> (list (make-music
>>> 'UnfoldedRepeatedMusic
>>> 'elements
>>> '()
>>> 'repeat-count
>>> 2
>>> 'element
>>> (make-music
>>> 'SequentialMusic
>>> 'elements
>>> (list (make-music
>>> 'NoteEvent
>>> 'duration
>>> (ly:make-duration 0)
>>> 'pitch
>>> (ly:make-pitch 0 0)))
>>> ;
>>>
>>> Now I built a music function using that information:
>>>
>>> %%%
>>> \version "2.18.2"
>>>
>>> createRepeats =
>>> #(define-music-function (parser location nums mus end) (list?
>>ly:music?
>>> ly:music?)
>>> (let ((repeater (lambda (n) (make-music
>>> 'SequentialMusic
>>> 'elements
>>> (list (make-music
>>> 'UnfoldedRepeatedMusic
>>> 'elements
>>> '()
>>> 'repeat-count
>>> n
>>> 'element
>>> mus)
>>> end)
>>> (make-sequential-music (map repeater nums
>>> \createRepeats #'(2 3 7) { c'1 } { \bar "||" }
>>> 
>>>
>>> If you have further questions, feel free to ask back.
>>>
>>> Best, Simon
>>>
>>> PS. In recent development versions, one may use nicer syntax:
>>>
>>> 
>>> \version "2.19.47"
>>>
>>> createRepeats =
>>> #(define-music-function (nums mus end) (list? ly:music? ly:music?)
>>> (let ((repeater (lambda (n) (make-music
>>> 'SequentialMusic
>>> 'elements
>>> (list (make-music
>>> 'UnfoldedRepeatedMusic
>>> 'elements
>>> '()
>>> 'repeat-count
>>> n
>>> 'element
>>> mus)
>>> end)
>>> (make-sequential-music (map repeater nums
>>> \createRepeats 2,3,7 { c'1 } { \bar "||" }
>>> 

Although working nicely, I like the sollution above best,

If you really, really want a recursion, try:

musSpisok =
#(define-music-function (parser location llen rl)(number-list? list?)
  (if (null? llen)
  #{ $@(reverse rl) \bar "|." #}
  #{
\musSpisok
  #(cdr llen)
  #(cons #{ \repeat unfold #(car llen) { c2 } \bar "||" #} rl)
  #}))

\musSpisok #'(5 7 10 8) #'()


Cheers,
  Harm

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


Re: to make a function with argument list or vector

2016-09-04 Thread Urs Liska


Am 4. September 2016 19:30:02 MESZ, schrieb "Оксана Крымина" 
:
>Great! It works! It works!
>Thank You!
>

The first thing is you had to use define-music-function  because that returns 
*music*.

Then you can return a *list* of music expressions with something like

@(map
   (lambda (len)
#{ \repeat unfold #len ... #})
   llen)

(completely untested, on the phone)
This iterates over your input list and produces the music using regular syntax. 

HTH
Urs



>2016-09-04 20:15 GMT+03:00, Simon Albrecht :
>> Hi Oxana,
>>
>> I _guess_ the reason it doesn’t work is because the parser doesn’t
>> accept a Scheme expression instead of the number after \repeat
>unfold.
>> The solution is creating music via Scheme. As a first step, you can
>> always use something like
>>
>> %%%
>> \version "2.19.47"
>> \displayMusic { \repeat unfold 2 { c'1 } }
>> %%%
>>
>> to see what the music looks like on the Scheme level:
>>
>> ;
>> (make-music
>>'SequentialMusic
>>'elements
>>(list (make-music
>>'UnfoldedRepeatedMusic
>>'elements
>>'()
>>'repeat-count
>>2
>>'element
>>(make-music
>>  'SequentialMusic
>>  'elements
>>  (list (make-music
>>  'NoteEvent
>>  'duration
>>  (ly:make-duration 0)
>>  'pitch
>>  (ly:make-pitch 0 0)))
>> ;
>>
>> Now I built a music function using that information:
>>
>> %%%
>> \version "2.18.2"
>>
>> createRepeats =
>> #(define-music-function (parser location nums mus end) (list?
>ly:music?
>> ly:music?)
>> (let ((repeater (lambda (n) (make-music
>>  'SequentialMusic
>>  'elements
>>  (list (make-music
>>  'UnfoldedRepeatedMusic
>>  'elements
>>  '()
>>  'repeat-count
>>  n
>>  'element
>>  mus)
>>end)
>> (make-sequential-music (map repeater nums
>> \createRepeats #'(2 3 7) { c'1 } { \bar "||" }
>> 
>>
>> If you have further questions, feel free to ask back.
>>
>> Best, Simon
>>
>> PS. In recent development versions, one may use nicer syntax:
>>
>> 
>> \version "2.19.47"
>>
>> createRepeats =
>> #(define-music-function (nums mus end) (list? ly:music? ly:music?)
>> (let ((repeater (lambda (n) (make-music
>>  'SequentialMusic
>>  'elements
>>  (list (make-music
>>  'UnfoldedRepeatedMusic
>>  'elements
>>  '()
>>  'repeat-count
>>  n
>>  'element
>>  mus)
>>end)
>> (make-sequential-music (map repeater nums
>> \createRepeats 2,3,7 { c'1 } { \bar "||" }
>> 
>>
>> On 04.09.2016 18:52, Оксана Крымина wrote:
>>> hello all!
>>>
>>> please, help me to write a function to convert several numbers like
>(5
>>> 7 10 8) to musical string like
>>>   \repeat unfold 5 {c2} \bar ""
>>>   \repeat unfold 7 {c2} \bar ""
>>>   \repeat unfold 10 {c2} \bar ""
>>>   \repeat unfold 8 {c2} \bar ""
>>>
>>> my code produces errors only:
>>> \version "2.18.2"
>>> musSpisok = #(define-scheme-function (parser location llen)(list?)
>>>  (if (not (null? llen))
>>> #{
>>>\repeat unfold $(car llen) {c2} \bar ""  (
>>> \musSpisok #'(cdr llen))  )
>>>  #})
>>>
>>> thanx,
>>> Oxana
>>>
>>> ___
>>> 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

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


Re:v2.19.47 on Mac x86 (Jacques Menu Muzhic)

2016-09-04 Thread Cynthia Karl

> Message: 5
> Date: Sun, 4 Sep 2016 17:41:42 +0200
> From: Jacques Menu Muzhic 
> To: Andrew Bernard 
> Cc: Jacques Menu Muzhic ,  lilypond-user
>   
> Subject: Re: v2.19.47 on Mac x86
> I run El Capitan 10.11.6:
> 
> menu@macbookprojm:~/Documents/LaTeX/PartitionsLilypond > uname -a
> Darwin macbookprojm 15.6.0 Darwin Kernel Version 15.6.0: Mon Aug 29 20:21:34 
> PDT 2016; root:xnu-3248.60.11~1/RELEASE_X86_64 x86_64
> 
> and I get:
> 
> menu@macbookprojm:~ > sudo dtruss lilypond --version


I run El Capitan 10.11.6 and get the exact same output for “uname -a”.

I wanted to see what the difference was between v2.19.46 and v2.19.47, so I ran 
them both on the following file:

bash-3.2$ cat 1note.ly
\version "2.19.46"
{ c4 }

bash-3.2$ time lilypond 1note.ly
GNU LilyPond 2.19.46
Processing `1note.ly'
Parsing...
Interpreting music...
Preprocessing graphical objects...
Finding the ideal number of pages...
Fitting music on 1 page...
Drawing systems...
Layout output to `/tmp/lilypond-22EfXs'...
Converting to `1note.pdf'...
Deleting `/tmp/lilypond-22EfXs'...
Success: compilation successfully completed

real0m0.820s
user0m0.638s
sys 0m0.093s


bash-3.2$ LP47=$l47
bash-3.2$ echo $LP47
/Users/pat/Downloads/LilyPond.app/Contents/Resources/bin/lilypond
bash-3.2$ time $LP47 1note.ly
GNU LilyPond 2.19.47
Processing `1note.ly'
Parsing...
Interpreting music...
Preprocessing graphical objects...
Finding the ideal number of pages...
Fitting music on 1 page...
Drawing systems...
Layout output to `/tmp/lilypond-B2ws6y'...
Converting to `1note.pdf'...
Deleting `/tmp/lilypond-B2ws6y'...
Success: compilation successfully completed

real1m2.364s
user0m46.848s
sys 0m15.145s

I then ran dtruss -c on both versions to see what the difference in system 
calls was.

The following table shows the number of system calls which have a Count > 100 
for the v2.19.47 version and the corresponding count for the v2.19.46 version:

CALLCOUNT LP46  COUNT LP47
…   …   …
getattrlist 112 128
stat178 171
stat64  207 207
sigaltstack 222 228
sigprocmask 263 269
select_nocancel 320 323
lseek 57  123013
read_nocancel   341   125474

I then did a count of the number of lseeks on file descriptors <= 13 (at first 
glance there are no file descriptors greater than 12:

lseek(0xfiledes v46 v47

lseek(0x01   23
lseek(0x11 1
lseek(0x21 1
lseek(0x32 2
lseek(0x40 0
lseek(0x50 0
lseek(0x62 2
lseek(0x7   35   35
lseek(0x8 8 122969
lseek(0x9 3   3
lseek(0xA 11
lseek(0xB 33
lseek(0xC 00

Hopefully, this information might be of use to someone trying to figure this 
problem out.

The most salient questions would be:  what is filedes 8 used for?  And why is 
this problem only occurring on Macs?





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


Re: to make a function with argument list or vector

2016-09-04 Thread Оксана Крымина
Great! It works! It works!
Thank You!

2016-09-04 20:15 GMT+03:00, Simon Albrecht :
> Hi Oxana,
>
> I _guess_ the reason it doesn’t work is because the parser doesn’t
> accept a Scheme expression instead of the number after \repeat unfold.
> The solution is creating music via Scheme. As a first step, you can
> always use something like
>
> %%%
> \version "2.19.47"
> \displayMusic { \repeat unfold 2 { c'1 } }
> %%%
>
> to see what the music looks like on the Scheme level:
>
> ;
> (make-music
>'SequentialMusic
>'elements
>(list (make-music
>'UnfoldedRepeatedMusic
>'elements
>'()
>'repeat-count
>2
>'element
>(make-music
>  'SequentialMusic
>  'elements
>  (list (make-music
>  'NoteEvent
>  'duration
>  (ly:make-duration 0)
>  'pitch
>  (ly:make-pitch 0 0)))
> ;
>
> Now I built a music function using that information:
>
> %%%
> \version "2.18.2"
>
> createRepeats =
> #(define-music-function (parser location nums mus end) (list? ly:music?
> ly:music?)
> (let ((repeater (lambda (n) (make-music
>  'SequentialMusic
>  'elements
>  (list (make-music
>  'UnfoldedRepeatedMusic
>  'elements
>  '()
>  'repeat-count
>  n
>  'element
>  mus)
>end)
> (make-sequential-music (map repeater nums
> \createRepeats #'(2 3 7) { c'1 } { \bar "||" }
> 
>
> If you have further questions, feel free to ask back.
>
> Best, Simon
>
> PS. In recent development versions, one may use nicer syntax:
>
> 
> \version "2.19.47"
>
> createRepeats =
> #(define-music-function (nums mus end) (list? ly:music? ly:music?)
> (let ((repeater (lambda (n) (make-music
>  'SequentialMusic
>  'elements
>  (list (make-music
>  'UnfoldedRepeatedMusic
>  'elements
>  '()
>  'repeat-count
>  n
>  'element
>  mus)
>end)
> (make-sequential-music (map repeater nums
> \createRepeats 2,3,7 { c'1 } { \bar "||" }
> 
>
> On 04.09.2016 18:52, Оксана Крымина wrote:
>> hello all!
>>
>> please, help me to write a function to convert several numbers like (5
>> 7 10 8) to musical string like
>>   \repeat unfold 5 {c2} \bar ""
>>   \repeat unfold 7 {c2} \bar ""
>>   \repeat unfold 10 {c2} \bar ""
>>   \repeat unfold 8 {c2} \bar ""
>>
>> my code produces errors only:
>> \version "2.18.2"
>> musSpisok = #(define-scheme-function (parser location llen)(list?)
>>  (if (not (null? llen))
>> #{
>>\repeat unfold $(car llen) {c2} \bar ""  (
>> \musSpisok #'(cdr llen))  )
>>  #})
>>
>> thanx,
>> Oxana
>>
>> ___
>> 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: to make a function with argument list or vector

2016-09-04 Thread Simon Albrecht

Hi Oxana,

I _guess_ the reason it doesn’t work is because the parser doesn’t 
accept a Scheme expression instead of the number after \repeat unfold.
The solution is creating music via Scheme. As a first step, you can 
always use something like


%%%
\version "2.19.47"
\displayMusic { \repeat unfold 2 { c'1 } }
%%%

to see what the music looks like on the Scheme level:

;
(make-music
  'SequentialMusic
  'elements
  (list (make-music
  'UnfoldedRepeatedMusic
  'elements
  '()
  'repeat-count
  2
  'element
  (make-music
'SequentialMusic
'elements
(list (make-music
'NoteEvent
'duration
(ly:make-duration 0)
'pitch
(ly:make-pitch 0 0)))
;

Now I built a music function using that information:

%%%
\version "2.18.2"

createRepeats =
#(define-music-function (parser location nums mus end) (list? ly:music? 
ly:music?)

   (let ((repeater (lambda (n) (make-music
'SequentialMusic
'elements
(list (make-music
'UnfoldedRepeatedMusic
'elements
'()
'repeat-count
n
'element
mus)
  end)
   (make-sequential-music (map repeater nums
\createRepeats #'(2 3 7) { c'1 } { \bar "||" }


If you have further questions, feel free to ask back.

Best, Simon

PS. In recent development versions, one may use nicer syntax:


\version "2.19.47"

createRepeats =
#(define-music-function (nums mus end) (list? ly:music? ly:music?)
   (let ((repeater (lambda (n) (make-music
'SequentialMusic
'elements
(list (make-music
'UnfoldedRepeatedMusic
'elements
'()
'repeat-count
n
'element
mus)
  end)
   (make-sequential-music (map repeater nums
\createRepeats 2,3,7 { c'1 } { \bar "||" }


On 04.09.2016 18:52, Оксана Крымина wrote:

hello all!

please, help me to write a function to convert several numbers like (5
7 10 8) to musical string like
  \repeat unfold 5 {c2} \bar ""
  \repeat unfold 7 {c2} \bar ""
  \repeat unfold 10 {c2} \bar ""
  \repeat unfold 8 {c2} \bar ""

my code produces errors only:
\version "2.18.2"
musSpisok = #(define-scheme-function (parser location llen)(list?)
 (if (not (null? llen))
#{
   \repeat unfold $(car llen) {c2} \bar ""  (
\musSpisok #'(cdr llen))  )
 #})

thanx,
Oxana

___
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


to make a function with argument list or vector

2016-09-04 Thread Оксана Крымина
hello all!

please, help me to write a function to convert several numbers like (5
7 10 8) to musical string like
 \repeat unfold 5 {c2} \bar ""
 \repeat unfold 7 {c2} \bar ""
 \repeat unfold 10 {c2} \bar ""
 \repeat unfold 8 {c2} \bar ""

my code produces errors only:
\version "2.18.2"
musSpisok = #(define-scheme-function (parser location llen)(list?)
(if (not (null? llen))
#{
  \repeat unfold $(car llen) {c2} \bar ""  (
\musSpisok #'(cdr llen))  )
#})

thanx,
Oxana

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


Re: lyric extender and rest

2016-09-04 Thread arnepe
The 4-language version of A. Adnan Saygun's "Yunus Emre" has those rests in
the lyrics, accompanying lots of cue notes for the various languages.
I copied this idea for a bilingual version of Johan Helmich Roman's "Te
Deum" which will be performed in Berlin this December, and it is not decided
yet whether we will sing it in Swedish or German.

cheers
Arne



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/lyric-extender-and-rest-tp194183p194201.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: v2.19.47 on Mac x86

2016-09-04 Thread Jacques Menu Muzhic
Hello Andrew,

I run El Capitan 10.11.6:

menu@macbookprojm:~/Documents/LaTeX/PartitionsLilypond > uname -a
Darwin macbookprojm 15.6.0 Darwin Kernel Version 15.6.0: Mon Aug 29 20:21:34 
PDT 2016; root:xnu-3248.60.11~1/RELEASE_X86_64 x86_64

and I get:

menu@macbookprojm:~ > sudo dtruss lilypond --version

GNU LilyPond 2.19.44

Copyright (c) 1996--2015 by
  Han-Wen Nienhuys 
  Jan Nieuwenhuizen 
  and others.

This program is free software.  It is covered by the GNU General Public
License and you are welcome to change it and/or distribute copies of it
under certain conditions.  Invoke as `lilypond --warranty' for more
information.

SYSCALL(args)= return
thread_selfid(0x0, 0x0, 0x0) = 124530 0
csops(0x0, 0x0, 0xBFFFE7E0)  = 0 0
issetugid(0x0, 0x0, 0xBFFFE7E0)  = 0 0
shared_region_check_np(0xBFFFC740, 0x0, 0xBFFFE7E0)  = 0 0
stat64("/usr/lib/dtrace/libdtrace_dyld.dylib\0", 0xBFFFDD78, 0xBFFFE7E0)
 = 0 0
open("/usr/lib/dtrace/libdtrace_dyld.dylib\0", 0x0, 0x0) = 3 0
pread(0x3, "\312\376\272\276\0", 0x1000, 0x0)= 4096 0
pread(0x3, "\316\372\355\376\a\0", 0x1000, 0x1000)   = 4096 0
fcntl(0x3, 0x61, 0xBFFFC250) = 0 0
mmap(0x0, 0x564, 0x5, 0x1, 0x3, 0x1000)  = 0x7A8000 0
munmap(0x7A8000, 0x564)  = 0 0
mmap(0x7A8000, 0x2000, 0x1, 0x12, 0x3, 0x1000)   = 0x7A8000 0
mmap(0x7AA000, 0x1000, 0x3, 0x12, 0x3, 0x3000)   = 0x7AA000 0
mmap(0x7AB000, 0x2F10, 0x1, 0x12, 0x3, 0x4000)   = 0x7AB000 0
close(0x3)   = 0 0
stat64("/usr/lib/dtrace/libdtrace_dyld.dylib\0", 0xBFFFE290, 0x1)   
 = 0 0
…

Your configuration seems to have some other problem as far as I can guess.

JM


> Le 4 sept. 2016 à 15:56, Andrew Bernard  a écrit :
> 
> Hi Jacques,
> 
> Sorry to be repetitive. What OS are you running?
> 
> On 10.11.6 El Capitan, this is the scenario:
> 
> sudo dtruss lilypond --version
> Password:
> 
> dtrace: failed to execute lilypond: dtrace cannot control executables signed 
> with restricted entitlements
> 
> It all about this hard to understand ‘rootless’ system that Apple have 
> introduced. It seems you have to adjust things with csrutil, but I cannot get 
> that to work.
> 
> Andrew
> 
> 
> 
> 
> On 4 September 2016 at 11:39:19 PM, Jacques Menu Muzhic 
> (imj-muz...@bluewin.ch ) wrote:
> 
>> Hello Andrew,
>> 
>> Here is what I got spying a running Frescobaldi instance when I closed an 
>> open file:
>> 
>> menu@macbookprojm:~/Documents/LaTeX/PartitionsLilypond > sudo dtruss -p 1273
>> 

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


Re: intercepting implicit/explicit page breaks

2016-09-04 Thread Thomas Morley
2016-09-04 16:31 GMT+02:00 Knut Petersen :
> Hi everybody!
>
> I use
>
> #(define (display-breaks grob)
>(if (and (grob::has-interface grob 'paper-column-interface)
> (eq? #t (ly:grob-property grob 'non-musical)))
>(if (eq? 1 (ly:item-break-dir grob))
>(let* ((moment (ly:grob-property grob 'when))(m moment)
>   (bar (ly:grob-property grob 'rhythmic-location))(b (car
> bar)))
>  (format out "~a new system at bar ~a~%" (format-moment m)
> b)
>  ))
>(ly:message "Need NonMusicalPaperColumn grob to determine line
> breaks.")))
>
> activated by
>
>  \override NonMusicalPaperColumn #'after-line-breaking = #display-breaks
>
> That reliably gives the moment and bar number of an implicit or explicit
> break,
> but I also need to know if this break is a PAGE break.
>
> I assume the information is not available at the time of the callback used
> above, but
> that isn't a problem as it would be used by a script after lilypond has
> finished.
>
> Any idea where/when to get that information from lilypond?
>
> thx,
>  Knut
>



I once made:

#(define* (print-pages-first-bar-numbers layout pages #:optional print-to-file)
;; If `print-to-file' is set #t the output is written to a file
;; otherwise usually displayed in Terminal
  (let* ((lines (map (lambda (page) (ly:prob-property page 'lines)) pages))
 ;; list of systems of each pages
 (sys
   (map
 (lambda (line)
   (append-map
 (lambda (l)
   (let ((system-grob (ly:prob-property l 'system-grob)))
 (if (not (null? system-grob))
 (list system-grob)
 system-grob))
   )
 line))
 lines))
 ;; list of rhythmic-locations of first sys
 ;; returning a BarNumber and a moment, the moment is usually zero
 (sys-rhythmic-location
   (map
 (lambda (s)
   (if (and (not (null? s)) (ly:grob? (car s)))
   (grob::rhythmic-location (car s))
   #f))
 sys))
 (start-bar-numbers
   (map
 (lambda (r-l)
   (if (pair? r-l)
   (car r-l)
   #f))
   sys-rhythmic-location))
 (formatted-output
   (map
 (lambda (page b-nr)
   (if b-nr
   (format #f "page ~a starts with BarNumber ~a\n" page b-nr)
   (format #f "page ~a contains no music\n" page))
   )
 (iota (length pages) 1 1)
 start-bar-numbers)))
(if (not (null? start-bar-numbers))
(if print-to-file
(let* ((output-name (ly:parser-output-name))
   (outfilename (format "~a-page-first-bars.log" output-name))
   (outfile (open-output-file outfilename)))
  (if (output-port? outfile)
  (begin
(format #t "\n\tprinting to ~a" outfilename)
(for-each
  (lambda (i) (display i outfile))
  formatted-output))
  (ly:warning
(_ "Unable to open output file ~a to print the information")
outfilename))
  (close-output-port outfile))
(for-each display formatted-output)

\paper {
  #(define (page-post-process layout pages)
(print-pages-first-bar-numbers layout pages #f))
}


{ c''1 \break d'' \pageBreak e'' }


Intended was to get the first BarNumber of every page, you may extend
it to get BarNumbers at line-break.
If you don't need to rely on the info of your initial code in order to
base some other action on it, post-processing sounds preferable to me.

Cheers,
  Harm

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


Re: v2.19.47 on Mac x86

2016-09-04 Thread Br. Samuel Springuel
It is possible to disable SIP (System Integrity Protection, the official 
name for Mac's "rootless" system).  You can find instructions here:


https://developer.apple.com/library/mac/documentation/Security/Conceptual/System_Integrity_Protection_Guide/ConfiguringSystemIntegrityProtection/ConfiguringSystemIntegrityProtection.html

Obviously Apple recommends not doing this as a general principle, but 
disabling it should enable you to run the traces you want to run in the 
same way you'd do that on any other Unix machine.

--
✝
Br. Samuel, OSB
St. Anselm’s Abbey
Washington, DC
(R. Padraic Springuel)

PAX ☧ ΧΡΙΣΤΟΣ

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


intercepting implicit/explicit page breaks

2016-09-04 Thread Knut Petersen

Hi everybody!

I use

#(define (display-breaks grob)
   (if (and (grob::has-interface grob 'paper-column-interface)
(eq? #t (ly:grob-property grob 'non-musical)))
   (if (eq? 1 (ly:item-break-dir grob))
   (let* ((moment (ly:grob-property grob 'when))(m moment)
  (bar (ly:grob-property grob 'rhythmic-location))(b (car bar)))
 (format out "~a new system at bar ~a~%" (format-moment m) b)
 ))
   (ly:message "Need NonMusicalPaperColumn grob to determine line 
breaks.")))

activated by

 \override NonMusicalPaperColumn #'after-line-breaking = #display-breaks

That reliably gives the moment and bar number of an implicit or explicit break,
but I also need to know if this break is a PAGE break.

I assume the information is not available at the time of the callback used 
above, but
that isn't a problem as it would be used by a script after lilypond has 
finished.

Any idea where/when to get that information from lilypond?

thx,
 Knut




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


Re: v2.19.47 on Mac x86

2016-09-04 Thread Andrew Bernard
Hi Jacques,

Sorry to be repetitive. What OS are you running?

On 10.11.6 El Capitan, this is the scenario:

sudo dtruss lilypond --version

Password:


dtrace: failed to execute lilypond: dtrace cannot control executables
signed with restricted entitlements

It all about this hard to understand ‘rootless’ system that Apple have
introduced. It seems you have to adjust things with csrutil, but I cannot
get that to work.

Andrew




On 4 September 2016 at 11:39:19 PM, Jacques Menu Muzhic (
imj-muz...@bluewin.ch) wrote:

Hello Andrew,

Here is what I got spying a running Frescobaldi instance when I closed an
open file:

menu@macbookprojm:~/Documents/LaTeX/PartitionsLilypond > sudo dtruss -p 1273
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: v2.19.47 on Mac x86

2016-09-04 Thread Jacques Menu Muzhic
Hello Andrew,

Here is what I got spying a running Frescobaldi instance when I closed an open 
file:

menu@macbookprojm:~/Documents/LaTeX/PartitionsLilypond > sudo dtruss -p 1273

SYSCALL(args)= return
workq_kernreturn(0x20, 0x0, 0x1) = 0 0
thread_selfid(0x0, 0x0, 0x0) = 85229 0
bsdthread_ctl(0x100, 0x8FF, 0xE8CF)  = 0 0
workq_kernreturn(0x20, 0x0, 0x1) = 0 0
bsdthread_ctl(0x100, 0x8FF, 0x0) = 0 0
thread_selfid(0x0, 0x0, 0x0) = 85234 0
bsdthread_ctl(0x100, 0x10FF, 0xE8CF) = 0 0
bsdthread_ctl(0x100, 0x10FF, 0x0)= 0 0
bsdthread_ctl(0x100, 0x0, 0xE8D3)= 0 0
bsdthread_ctl(0x100, 0x0, 0x0)   = 0 0
bsdthread_ctl(0x100, 0x0, 0x10957)   = 0 0
bsdthread_ctl(0x100, 0x0, 0x0)   = 0 0
workq_kernreturn(0x20, 0x0, 0x1) = 0 0
workq_kernreturn(0x20, 0x0, 0x1) = 0 0
kevent_qos(0x6, 0x7FFF8EC7B1E8, 0x1) = 0 0
kevent_qos(0x6, 0x7FFF78D81B08, 0x1) = 1 0
kevent_qos(0x6, 0x7FFF8EC7B1E8, 0x1) = 0 0
kevent_qos(0x6, 0x7FFF8EC7B1E8, 0x1) = 0 0
kevent_qos(0x6, 0x7FFF78D81A20, 0x1) = 0 0
kevent_qos(0x6, 0x0, 0x0)= 1 0
kevent_qos(0x6, 0x0, 0x0)= 1 0
workq_kernreturn(0x20, 0x0, 0x1) = 0 0
bsdthread_ctl(0x100, 0x0, 0x12C87)   = 0 0
workq_kernreturn(0x20, 0x0, 0x1) = 0 0
bsdthread_ctl(0x100, 0x8FF, 0x12C87) = 0 0
kevent_qos(0x6, 0x7FFF8EC7B1E8, 0x1) = 0 0
kevent_qos(0x6, 0x0, 0x0)= 1 0
bsdthread_ctl(0x100, 0x8FF, 0x0) = 0 0
bsdthread_ctl(0x100, 0x8FF, 0x0) = 0 0
kevent_qos(0x6, 0x0, 0x0)= 1 0
workq_kernreturn(0x20, 0x0, 0x1) = 0 0
bsdthread_ctl(0x100, 0x0, 0x12C8B)   = 0 0
workq_kernreturn(0x20, 0x0, 0x1) = 0 0
kevent_qos(0x6, 0x7FFF8EC7B1E8, 0x1) = 0 0
bsdthread_ctl(0x100, 0x8FF, 0x12C8B) = 0 0
kevent_qos(0x6, 0x0, 0x0)= 1 0
bsdthread_ctl(0x100, 0x8FF, 0x0) = 0 0
bsdthread_ctl(0x100, 0x8FF, 0x0) = 0 0
madvise(0x105366000, 0x3, 0x9)   = 0 0
stat64("/var/folders/jc/xrpy67_x6_vcjfzpzds_9_6mgn/T/frescobaldi-WJRNtP/tmpf0bsGM/document.pdf\0",
 0x7FFF5FBF61E0, 0x9)  = 0 0
access("/var/folders/jc/xrpy67_x6_vcjfzpzds_9_6mgn/T/frescobaldi-WJRNtP/tmpf0bsGM/document.pdf\0",
 0x1, 0x9) = -1 Err#13
lstat64("/var/folders/jc/xrpy67_x6_vcjfzpzds_9_6mgn/T/frescobaldi-WJRNtP/tmpf0bsGM/document.pdf\0",
 0x7FFF5FBF61E0, 0x9) = 0 0
getattrlist("/var/folders/jc/xrpy67_x6_vcjfzpzds_9_6mgn/T/frescobaldi-WJRNtP/tmpf0bsGM/document.pdf\0",
 0x7FFF5FBF4A08, 0x7FFF5FBF4670)  = 0 0
geteuid(0x1006A2948, 0x7FFF5FBF4A08, 0x7FFF5FBF4670) = 501 0
geteuid(0x1006A2948, 0x7FFF5FBF4A08, 0x7FFF5FBF4670) = 501 0
geteuid(0x1006A2948, 0x7FFF5FBF4A08, 0x7FFF5FBF4670) = 501 0
fsgetpath(0x7FFF5FBF36E0, 0x400, 0x7FFF5FBF3268) = 99 0
getattrlist("/private/var/folders/jc/xrpy67_x6_vcjfzpzds_9_6mgn/T/frescobaldi-WJRNtP/tmpf0bsGM/document.pdf\0",
 0x7FFF5FBF3F00, 0x7FFF5FBF3B30)  = 0 0
…


> Le 4 sept. 2016 à 14:26, Andrew Bernard  a écrit :
> 
> Hello Jacques,
> 
> Have you been able to run these commands on El Capitan? That’s the issue. The 
> ‘rootless’ envrionemnt prevents root from havng superuser powers. [I do not 
> appreciate this restriction of normal UNIX capabilities.]
> 
> 
> Andrew
> 
> 
> 
> On 4 September 2016 at 5:14:02 PM, Jacques Menu Muzhic (imj-muz...@bluewin.ch 
> ) wrote:
> 
>> Hello Andrew,
>> 
>> I found information at :
>> 
>> https://8thlight.com/blog/colin-jones/2015/11/06/dtrace-even-better-than-strace-for-osx.html
>>  
>> 
>> 
>> The dtruce and dtrace options lists are shown below. They require sudo right.

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


Re: lyric extender and rest

2016-09-04 Thread David Wright
On Sun 04 Sep 2016 at 03:54:02 (-0700), arnepe wrote:
> thanks Harm, 
> I didn't know that (or hadn't found it yet ...)

I don't know that you'll find it documented as such.
I'm not familiar with that idiom. Where do you find
rests in the lyrics like that?

Cheers,
David.

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


Visual Music Font Comparison

2016-09-04 Thread Thomas Morley
Hi all,

may be of interest:
http://elbsound.studio/music_font_comparison.php

Also, this thread at notat.io:
http://notat.io/viewtopic.php?f=4=178



Hope it wasn't posted before,
  Harm

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


Re: v2.19.47 on Mac x86

2016-09-04 Thread Andrew Bernard
Hello Jacques,

Have you been able to run these commands on El Capitan? That’s the issue.
The ‘rootless’ envrionemnt prevents root from havng superuser powers. [I do
not appreciate this restriction of normal UNIX capabilities.]


Andrew



On 4 September 2016 at 5:14:02 PM, Jacques Menu Muzhic (
imj-muz...@bluewin.ch) wrote:

Hello Andrew,

I found information at :

https://8thlight.com/blog/colin-jones/2015/11/06/dtrace-even-better-than-strace-for-osx.html

The dtruce and dtrace options lists are shown below. They require sudo
right.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: 2 questions on choir staff

2016-09-04 Thread Pierre Perol-Schneider
Hi Craig,

How about :

\version "2.19.36"

\paper {
  left-margin = 25
}

\score {
  \new ChoirStaff  \with {
%\consists "Instrument_name_engraver" %% <= why ?
instrumentName = \markup {
  \rotate #90 "SOLI"
}
shortInstrumentName = \markup {
  \rotate #90 "SOLI" \hspace #3
}
  }
  <<
\new Staff = "alto" {
  \set Staff.instrumentName = #"Alto"
  \set Staff.shortInstrumentName = #"A."
  \new Voice = "alto" {
\repeat unfold 20 { c''1 }
  }
}

\new Staff = "tenor"  {
  \set Staff.instrumentName = #"Tenor"
  \set Staff.shortInstrumentName = #"T."
  \new Voice = "tenor" {
\clef bass
\repeat unfold 20 { c'1 }
  }
}

\new Staff = "bass"  {
  \set Staff.instrumentName = #"Bass"
  \set Staff.shortInstrumentName = #"B."
  \new Voice = "bass" {
\clef bass
\repeat unfold 20 { c1 }
  }
}
  >>
  \layout {
\context {
  \Score

}
\context {
  \ChoirStaff
  \override InstrumentName.self-alignment-X = #LEFT
  \remove System_start_delimiter_engraver
}
\context {
  \Staff
  \override InstrumentName.self-alignment-X = #RIGHT
}
  }
}

Cheers,
Pierre

2016-09-04 11:40 GMT+02:00 Craig Dabelstein :

>
> Hi Lilyponders,
>
> I have two questions in the following minimal example:
> 1. How do you move the "SOLI" text to the left so that it doesn't overlap
> the text?
> 2. How do I keep the ChoirStaff context but remove the opening bracket?
>
> Thanks for your advice,
>
> Craig
>
> %%%
>
> \version "2.19.36"
>
> \paper {
>   left-margin = 25
> }
>
> \score {
>   \new ChoirStaff  \with {
> \consists "Instrument_name_engraver"
> instrumentName = \markup {
>   \rotate #90
>   \line {
> SOLI
>   }
> }
> shortInstrumentName = \markup {
>   \rotate #90
>   \line {
> SOLI
>   }
> }
>   }
>   <<
> \new Staff = "alto" {
>   \set Staff.instrumentName = #"Alto"
>   \set Staff.shortInstrumentName = #"A."
>   \new Voice = "alto" {
> \repeat unfold 20 { c''1 }
>   }
> }
>
> \new Staff = "tenor"  {
>   \set Staff.instrumentName = #"Tenor"
>   \set Staff.shortInstrumentName = #"T."
>   \new Voice = "tenor" {
> \clef bass
> \repeat unfold 20 { c'1 }
>   }
> }
>
> \new Staff = "bass"  {
>   \set Staff.instrumentName = #"Bass"
>   \set Staff.shortInstrumentName = #"B."
>   \new Voice = "bass" {
> \clef bass
> \repeat unfold 20 { c1 }
>   }
> }
>   >>
> }
>
> %%end
> *Craig Dabelstein*
> e:craig.dabelst...@gmail.com
> 
> 
>
> ___
> 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: lyric extender and rest

2016-09-04 Thread arnepe
thanks Harm, 
I didn't know that (or hadn't found it yet ...)

cheers
Arne



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/lyric-extender-and-rest-tp194183p194189.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: 2 questions on choir staff

2016-09-04 Thread Jacques Menu Muzhic
Iour velkom!

JM

> Le 4 sept. 2016 à 12:15, Craig Dabelstein  a 
> écrit :
> 
> Thanks Jacques. That's great.
> 
> I just managed to get rid of the bracket. It was systemStartDelimiter = 
> #'SystemStartBar
> 
> All the best,
> 
> Craig
> 
> 
> On 4 September 2016 at 20:11, Jacques Menu Muzhic  > wrote:
> Hello Craig,
> 
> 1.
> 
> instrumentName = \markup {\rotate #90 \column{" " \vspace #-4 \bold "SOLI" }}
> 
> 2.
> 
> What do you mean by removing te opening bracket?
> 
> JM
> 
>> Le 4 sept. 2016 à 11:40, Craig Dabelstein > > a écrit :
>> 
>> 
>> Hi Lilyponders,
>> 
>> I have two questions in the following minimal example:
>> 1. How do you move the "SOLI" text to the left so that it doesn't overlap 
>> the text?
>> 2. How do I keep the ChoirStaff context but remove the opening bracket?
>> 
>> Thanks for your advice,
>> 
>> Craig
>> 
>> %%%
>> 
>> \version "2.19.36"
>> 
>> \paper {
>>   left-margin = 25
>> }
>> 
>> \score {
>>   \new ChoirStaff  \with {
>> \consists "Instrument_name_engraver"
>> instrumentName = \markup {
>>   \rotate #90
>>   \line {
>> SOLI
>>   }
>> }
>> shortInstrumentName = \markup {
>>   \rotate #90
>>   \line {
>> SOLI
>>   }
>> }
>>   }
>>   <<
>> \new Staff = "alto" {
>>   \set Staff.instrumentName = #"Alto"
>>   \set Staff.shortInstrumentName = #"A."
>>   \new Voice = "alto" {
>> \repeat unfold 20 { c''1 }
>>   }
>> }
>> 
>> \new Staff = "tenor"  {
>>   \set Staff.instrumentName = #"Tenor"
>>   \set Staff.shortInstrumentName = #"T."
>>   \new Voice = "tenor" {
>> \clef bass
>> \repeat unfold 20 { c'1 }
>>   }
>> }
>> 
>> \new Staff = "bass"  {
>>   \set Staff.instrumentName = #"Bass"
>>   \set Staff.shortInstrumentName = #"B."
>>   \new Voice = "bass" {
>> \clef bass
>> \repeat unfold 20 { c1 }
>>   }
>> }
>>   >>
>> } 
>> 
>> %%end
>> Craig Dabelstein
>> e:craig.dabelst...@gmail.com 
>>    
>> ___
>> 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: lyric extender and rest

2016-09-04 Thread Thomas Morley
2016-09-04 11:26 GMT+02:00 arnepe :
> hello list,
>
> when - after a syllable with lyrics extender - follows a part starting with
> a "rest" in one of the stanzas (using \notemode within \lyricmode) the
> extender-line does not stop before the "rest", but underlines it as well.
>
> Using "" after the extender also shifts the "rest" by one syllable.
> Any solutions possible to get the line to stop before the "rest" ?
>
> cheers
> Arne
>
> see MWE attached (2.19.44,Win10)
> test_lyricswithrest.ly
> 



Why not simply
\markup { \tiny \raise #1 \rest #"8" }
instead of fiddling around with notemode?

Cheers,
  Harm

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


Re: 2 questions on choir staff

2016-09-04 Thread Craig Dabelstein
Thanks Jacques. That's great.

I just managed to get rid of the bracket. It was systemStartDelimiter =
#'SystemStartBar

All the best,

Craig


On 4 September 2016 at 20:11, Jacques Menu Muzhic 
wrote:

> Hello Craig,
>
> 1.
>
> instrumentName = \markup {\rotate #90 \column{" " \vspace #-4 \bold "SOLI"
> }}
>
> 2.
>
> What do you mean by removing te opening bracket?
>
> JM
>
> Le 4 sept. 2016 à 11:40, Craig Dabelstein  a
> écrit :
>
>
> Hi Lilyponders,
>
> I have two questions in the following minimal example:
> 1. How do you move the "SOLI" text to the left so that it doesn't overlap
> the text?
> 2. How do I keep the ChoirStaff context but remove the opening bracket?
>
> Thanks for your advice,
>
> Craig
>
> %%%
>
> \version "2.19.36"
>
> \paper {
>   left-margin = 25
> }
>
> \score {
>   \new ChoirStaff  \with {
> \consists "Instrument_name_engraver"
> instrumentName = \markup {
>   \rotate #90
>   \line {
> SOLI
>   }
> }
> shortInstrumentName = \markup {
>   \rotate #90
>   \line {
> SOLI
>   }
> }
>   }
>   <<
> \new Staff = "alto" {
>   \set Staff.instrumentName = #"Alto"
>   \set Staff.shortInstrumentName = #"A."
>   \new Voice = "alto" {
> \repeat unfold 20 { c''1 }
>   }
> }
>
> \new Staff = "tenor"  {
>   \set Staff.instrumentName = #"Tenor"
>   \set Staff.shortInstrumentName = #"T."
>   \new Voice = "tenor" {
> \clef bass
> \repeat unfold 20 { c'1 }
>   }
> }
>
> \new Staff = "bass"  {
>   \set Staff.instrumentName = #"Bass"
>   \set Staff.shortInstrumentName = #"B."
>   \new Voice = "bass" {
> \clef bass
> \repeat unfold 20 { c1 }
>   }
> }
>   >>
> }
>
> %%end
> *Craig Dabelstein*
> e:craig.dabelst...@gmail.com
> 
> 
> ___
> 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: 2 questions on choir staff

2016-09-04 Thread Jacques Menu Muzhic
Hello Craig,

1.

instrumentName = \markup {\rotate #90 \column{" " \vspace #-4 \bold "SOLI" }}

2.

What do you mean by removing te opening bracket?

JM

> Le 4 sept. 2016 à 11:40, Craig Dabelstein  a 
> écrit :
> 
> 
> Hi Lilyponders,
> 
> I have two questions in the following minimal example:
> 1. How do you move the "SOLI" text to the left so that it doesn't overlap the 
> text?
> 2. How do I keep the ChoirStaff context but remove the opening bracket?
> 
> Thanks for your advice,
> 
> Craig
> 
> %%%
> 
> \version "2.19.36"
> 
> \paper {
>   left-margin = 25
> }
> 
> \score {
>   \new ChoirStaff  \with {
> \consists "Instrument_name_engraver"
> instrumentName = \markup {
>   \rotate #90
>   \line {
> SOLI
>   }
> }
> shortInstrumentName = \markup {
>   \rotate #90
>   \line {
> SOLI
>   }
> }
>   }
>   <<
> \new Staff = "alto" {
>   \set Staff.instrumentName = #"Alto"
>   \set Staff.shortInstrumentName = #"A."
>   \new Voice = "alto" {
> \repeat unfold 20 { c''1 }
>   }
> }
> 
> \new Staff = "tenor"  {
>   \set Staff.instrumentName = #"Tenor"
>   \set Staff.shortInstrumentName = #"T."
>   \new Voice = "tenor" {
> \clef bass
> \repeat unfold 20 { c'1 }
>   }
> }
> 
> \new Staff = "bass"  {
>   \set Staff.instrumentName = #"Bass"
>   \set Staff.shortInstrumentName = #"B."
>   \new Voice = "bass" {
> \clef bass
> \repeat unfold 20 { c1 }
>   }
> }
>   >>
> } 
> 
> %%end
> Craig Dabelstein
> e:craig.dabelst...@gmail.com 
>    
> ___
> 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


2 questions on choir staff

2016-09-04 Thread Craig Dabelstein
Hi Lilyponders,

I have two questions in the following minimal example:
1. How do you move the "SOLI" text to the left so that it doesn't overlap
the text?
2. How do I keep the ChoirStaff context but remove the opening bracket?

Thanks for your advice,

Craig

%%%

\version "2.19.36"

\paper {
  left-margin = 25
}

\score {
  \new ChoirStaff  \with {
\consists "Instrument_name_engraver"
instrumentName = \markup {
  \rotate #90
  \line {
SOLI
  }
}
shortInstrumentName = \markup {
  \rotate #90
  \line {
SOLI
  }
}
  }
  <<
\new Staff = "alto" {
  \set Staff.instrumentName = #"Alto"
  \set Staff.shortInstrumentName = #"A."
  \new Voice = "alto" {
\repeat unfold 20 { c''1 }
  }
}

\new Staff = "tenor"  {
  \set Staff.instrumentName = #"Tenor"
  \set Staff.shortInstrumentName = #"T."
  \new Voice = "tenor" {
\clef bass
\repeat unfold 20 { c'1 }
  }
}

\new Staff = "bass"  {
  \set Staff.instrumentName = #"Bass"
  \set Staff.shortInstrumentName = #"B."
  \new Voice = "bass" {
\clef bass
\repeat unfold 20 { c1 }
  }
}
  >>
}

%%end
*Craig Dabelstein*
e:craig.dabelst...@gmail.com


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


lyric extender and rest

2016-09-04 Thread arnepe
hello list,

when - after a syllable with lyrics extender - follows a part starting with
a "rest" in one of the stanzas (using \notemode within \lyricmode) the
extender-line does not stop before the "rest", but underlines it as well.

Using "" after the extender also shifts the "rest" by one syllable.
Any solutions possible to get the line to stop before the "rest" ?

cheers
Arne

see MWE attached (2.19.44,Win10)
test_lyricswithrest.ly
  



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/lyric-extender-and-rest-tp194183.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: v2.19.47 on Mac x86

2016-09-04 Thread Jacques Menu Muzhic
Hello Andrew,

I found information at :


https://8thlight.com/blog/colin-jones/2015/11/06/dtrace-even-better-than-strace-for-osx.html
 


The dtruce and dtrace options lists are shown below. They require sudo right.

JM

--

menu@macbookprojm:~ > dtruss 
USAGE: dtruss [-acdefholLs] [-t syscall] { -p PID | -n name | command }

  -p PID  # examine this PID
  -n name # examine this process name
  -t syscall  # examine this syscall only
  -a  # print all details
  -c  # print syscall counts
  -d  # print relative times (us)
  -e  # print elapsed times (us)
  -f  # follow children
  -l  # force printing pid/lwpid
  -o  # print on cpu times
  -s  # print stack backtraces
  -L  # don't print pid/lwpid
  -b bufsize  # dynamic variable buf size
   eg,
   dtruss df -h   # run and examine "df -h"
   dtruss -p 1871 # examine PID 1871
   dtruss -n tar  # examine all processes called "tar"
   dtruss -f test.sh  # run test.sh and follow children
menu@macbookprojm:~ > dtrace

Usage: dtrace [-aACeFHlqSvVwZ] [-arch i386|x86_64] [-b bufsz] [-c cmd] [-D 
name[=def]]
[-I path] [-L path] [-o output] [-p pid] [-s script] [-U name]
[-x opt[=val]]

[-P provider [[ predicate ] action ]]
[-m [ provider: ] module [[ predicate ] action ]]
[-f [[ provider: ] module: ] func [[ predicate ] action ]]
[-n [[[ provider: ] module: ] func: ] name [[ predicate ] action ]]
[-i probe-id [[ predicate ] action ]] [ args ... ]

predicate -> '/' D-expression '/'
   action -> '{' D-statements '}'

-arch Generate programs and Mach-O files for the specified architecture

-a  claim anonymous tracing state
-A  generate plist(5) entries for anonymous tracing
-b  set trace buffer size
-c  run specified command and exit upon its completion
-C  run cpp(1) preprocessor on script files
-D  define symbol when invoking preprocessor
-e  exit after compiling request but prior to enabling probes
-f  enable or list probes matching the specified function name
-F  coalesce trace output by function
-h  generate a header file with definitions for static probes
-H  print included files when invoking preprocessor
-i  enable or list probes matching the specified probe id
-I  add include directory to preprocessor search path
-l  list probes matching specified criteria
-L  add library directory to library search path
-m  enable or list probes matching the specified module name
-n  enable or list probes matching the specified probe name
-o  set output file
-p  grab specified process-ID and cache its symbol tables
-P  enable or list probes matching the specified provider name
-q  set quiet mode (only output explicitly traced data)
-s  enable or list probes according to the specified D script
-S  print D compiler intermediate code
-U  undefine symbol when invoking preprocessor
-v  set verbose mode (report stability attributes, arguments)
-V  report DTrace API version
-w  permit destructive actions
-W  wait for specified process and exit upon its completion
-x  enable or modify compiler and tracing options
-Z  permit probe descriptions that match zero probes
menu@macbookprojm:~ > 


> Le 4 sept. 2016 à 03:04, Andrew Bernard  a écrit :
> 
> Hi Stan,
> 
> I have confirmed this and posted on the devel list. The suggestion was to run 
> a trace on it but on Mac El Capitan this is really hard to to the new 
> 'rootless' system where even root cannot trace things without going through 
> great complexity, which even as a UNIX developer myself I cannot figure out.
> 
> My request for Mac developers to give some advice on the devel list has so 
> far had nil response.
> 
> The time to compile a single note file is over forty seconds every time I 
> run. The 2.19.47 release is therefore unusable by any standard.
> 
> Previously, the leading edge releases have been very stable and always 
> anticipated. Recently, they have become problematic and buggy. I am not what 
> has led to this decline. Even Mr Kastrup himself has made a comment along the 
> same lines. In the past I have always recommended going with the latest dev 
> releases to people. This no longer seems like wise advice. Hopefully things 
> will revert to stability again in the future.
> 
> Are there any Mac developers on the user list here who know how to trace a 
> process on El Capitan?
> 
> Andrew
> 
> 
> On 4 September