Re: state-of-the-art multi-instrumental/transposing mechanism

2017-03-06 Thread David Kastrup
Kieren MacMillan  writes:

> Hi Urs,
>
>> it's too late for me right now to properly understand the issue
>
> 1. Thanks for responding anyway!  =)
> 2. Looks like you do understand most of the issue.
>
>> but I wanted to direct you to Jan-Peter's
>> https://github.com/openlilylib/snippets/tree/master/editorial-tools/auto-transpose,
>> not knowing if it's even *related* to your question.
>
> It is!
>
> In the modified snippet (below), I use \autotranspose. It works great
> EXCEPT the [abstracted] key signature part. If we could just figure
> out how to have the key signature properly displayed in the transposed
> part,

\key \default shows something wrong?

-- 
David Kastrup

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


Ties, \lyricsto and Score.skipTypesetting causes misaligned lyrics

2017-03-06 Thread caagr98
Using those three in combination seems to be a have a tendency to get 
the lyrics misaligned.


```
\version "2.18.2"
<<
\new Voice = "staff" {
\set Score.skipTypesetting = ##t
\set Score.skipTypesetting = ##f
a~
a
b
c
}
\new Lyrics \lyricsto "staff" {
a __ b c
}
>>
```

With this code, all the lyrics appear on the appropriate note:

Notes: a~a b c
Lyrics:A__ B C

If the `skipTypesetting = ##f` is moved one line down (after the tied 
A), I'd expect the first a, as well as its lyric, to not show (the 
underscore would be skipped as well), but the B and C would be unaffected:


N:a~|a b c
L:A_|  B C

Instead, the A lyric is skipped entirely (probably because the note it's 
attached to is skipped), leading to the following lyrics being moved 
backward to fill the gap.


N:a~|a b c
L:A_|B C

This doesn't only happen if you break halfway through a tie; *any* ties 
within the skipped region causes misaligning.


Is there some way to work around this?

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


?Changes to structure of latest pdf manuals

2017-03-06 Thread Peter Gentry
Having just download the pdf manuals for  \version "2.19.56" I have noticed
a change to the output of "Advanced Search".

 

Previuosly (at least up to \version "2.19.22") the advanced search facility
in Adobe would 

 

a.  search all pdf files in a given directory
b.  search the entire contents of all the target files
c.  display the name of the pdf being searched as matches are found.

 

Now however the searches are confined to the index and the displayed name is
"untitled

 






 

 

Is this worth correcting - I think it helps to see the file names..

 

 

 

 

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


RE: Re:tweaking clefs

2017-03-06 Thread Peter Gentry
 

 

From: Peter Gentry [mailto:peter.gen...@sunscales.co.uk] 
Sent: 05 March 2017 16:21
To: 'lilypond-user@gnu.org' 
Subject: Re:tweaking clefs

 

Timothy Lanfear supplied a simple understandable way of achieving my aims.  

 

However on reflection there is a drawback; the midi output is not correct.
Two identical midi outputs with the same name are produced but share the
same midi instrument 

 

This is not a serious issue(in the one instrument case)  as midi output at
best is only a good check of the harmonies or lack thereof.

Try as I may I cannot seem to provide a different midi instrument for the
two staves although the midi data components appear to be essential for a
successful layout .

 

The process will is good to input Basson music and display the equivalent
Bass Clarinet music but isn't much use when the aim is to produce music
transposed for a variety of instruments with midi output to quickly check
the entire score. This remains a multi step process.

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


Re: state-of-the-art multi-instrumental/transposing mechanism

2017-03-06 Thread Kieren MacMillan
Hi David,

> \key \default shows something wrong?

No… But I don’t want to have to manually add that in every part. And then if 
the location where the key signature changes, I would have to change it in 
every part. etc.

I see in the comments of the engraver that Jan-Peter has a “to-do” to handle 
this very issue — hopefully that implementation is not too far off.

Thanks,
Kieren.


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


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


Re: tweaking clefs

2017-03-06 Thread Timothy Lanfear

On 06/03/17 12:02, Peter Gentry wrote:


*From:*Peter Gentry [mailto:peter.gen...@sunscales.co.uk]
*Sent:* 05 March 2017 16:21
*To:* 'lilypond-user@gnu.org' 
*Subject:* Re:tweaking clefs

Timothy Lanfear supplied a simple understandable way of achieving my 
aims.


However on reflection there is a drawback; the midi output is not 
correct. Two identical midi outputs with the same name are produced 
but share the same midi instrument




The example I posted does produce a midi file with both bassoon and 
clarinet. Here is the terminal output from timidity.


timidity tmp.midi
Requested buffer size 32768, fragment size 8192
ALSA pcm 'default' set buffer size 32768, period size 8192 bytes
Playing tmp.midi
MIDI file: tmp.midi
Format: 1  Tracks: 3  Divisions: 384
Sequence:
Text: creator:
Text: GNU LilyPond 2.19.56
Instrument: bassoon
Instrument: clarinet
Playing time: ~12 seconds
Notes cut: 0
Notes lost totally: 0

--
Timothy Lanfear, Bristol, UK.

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


Scheme finction fo get markup from scheme list of strings?

2017-03-06 Thread Dmytro O. Redchuk
Hello list,

let's say I have the following list:

#(define verse '(
"If you can keep your head when all about you"
"Are losing theirs and blaming it on you,"
"If you can trust yourself when all men doubt you,"
"But make allowance for their doubting too"
; ... etc
))

I would like to write a function to get the following markup for every
item in the list:

\line {
  \column {
"If you can keep your head when all about you"
  }
}
% etc...

Then I would feed it to \markuplist, I guess.

Please, from where would I start? --- feeling lost.

Thank you.

-- 
  Dmytro O. Redchuk

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


Re: state-of-the-art multi-instrumental/transposing mechanism

2017-03-06 Thread Jan-Peter Voigt

Hi Kieren,

I just compiled your example and saw the error. Maybe the transposition 
is (re)set after the auto-transposer acts - we'll see.

I am quite busy right now, but I hope I can have a look at it soon.

Best
Jan-Peter


Am 06.03.2017 um 13:11 schrieb Kieren MacMillan:

Hi David,


\key \default shows something wrong?


No… But I don’t want to have to manually add that in every part. And then if 
the location where the key signature changes, I would have to change it in 
every part. etc.

I see in the comments of the engraver that Jan-Peter has a “to-do” to handle 
this very issue — hopefully that implementation is not too far off.

Thanks,
Kieren.


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


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




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


RE: tweaking clefs

2017-03-06 Thread Peter Gentry
 

 

From: Timothy Lanfear [mailto:timo...@lanfear.me] 
Sent: 06 March 2017 12:28
To: Peter Gentry ; lilypond-user@gnu.org
Subject: Re: tweaking clefs

 

On 06/03/17 12:02, Peter Gentry wrote:



 

From: Peter Gentry [mailto:peter.gen...@sunscales.co.uk] 
Sent: 05 March 2017 16:21
To: 'lilypond-user@gnu.org  '
 
Subject: Re:tweaking clefs

 

Timothy Lanfear supplied a simple understandable way of achieving my aims.  

 

However on reflection there is a drawback; the midi output is not correct.
Two identical midi outputs with the same name are produced but share the
same midi instrument 

 


The example I posted does produce a midi file with both bassoon and
clarinet. Here is the terminal output from timidity.

timidity tmp.midi 
Requested buffer size 32768, fragment size 8192
ALSA pcm 'default' set buffer size 32768, period size 8192 bytes
Playing tmp.midi
MIDI file: tmp.midi
Format: 1  Tracks: 3  Divisions: 384
Sequence: 
Text: creator: 
Text: GNU LilyPond 2.19.56  
Instrument: bassoon
Instrument: clarinet
Playing time: ~12 seconds
Notes cut: 0
Notes lost totally: 0




-- 
Timothy Lanfear, Bristol, UK.
 
 
Apologies you are correct my midi playback is not good enough to hear the
two instruments even when one is cello. I used synthfont to confirm two
instruments present.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Scheme finction fo get markup from scheme list of strings?

2017-03-06 Thread David Kastrup
"Dmytro O. Redchuk"  writes:

> Hello list,
>
> let's say I have the following list:
>
> #(define verse '(
> "If you can keep your head when all about you"
> "Are losing theirs and blaming it on you,"
> "If you can trust yourself when all men doubt you,"
> "But make allowance for their doubting too"
> ; ... etc
> ))
>
> I would like to write a function to get the following markup for every
> item in the list:
>
> \line {
>   \column {
> "If you can keep your head when all about you"
>   }
> }
> % etc...
>
> Then I would feed it to \markuplist, I guess.
>
> Please, from where would I start? --- feeling lost.

I may be missing the point, but what's wrong with

#(define verse '(
"If you can keep your head when all about you"
"Are losing theirs and blaming it on you,"
"If you can trust yourself when all men doubt you,"
"But make allowance for their doubting too"
; ... etc
))

\markuplist \column-lines #verse


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


Re: Scheme finction fo get markup from scheme list of strings?

2017-03-06 Thread Dmytro O. Redchuk
2017-03-06 15:16 GMT+02:00 David Kastrup :
> I may be missing the point, but what's wrong with
Thank you, David, nothing wrong.

Sorry, i was unclear.

Actually i would like to have list of lists (list of verses) and place
those verses in some way depending of other settings.

I've tried to define markup command, but it can not be recursive.

I've tried to call #{ \markup ... #} from withing scheme, but got
empty document or "not a markup" error.

So, i've tried some wrong ways and now i would like to know what i
should try instead .)

What to try to have a (scheme? lilypond+scheme?) function to loop over
list of "verses" and output some "predefined" markup.

Thank you!

-- 
  Dmytro O. Redchuk

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


Re: need markup function for arrow at end of curve

2017-03-06 Thread Kieren MacMillan
Hi Pierre,

This is wonderful! Thanks.
(p.s. How did you do that so quickly?)

Is there an easy way to reverse the direction, so that it’s curving and 
pointing to the left?

> Regarding the length and the height, would they affect the curve and the 
> arrow or the curve only?

Ideally, I think the thickness would affect the curve and arrow, but the length 
and height would affect only the curve.

Thanks!
Kieren.


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


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


Re: Scheme finction fo get markup from scheme list of strings?

2017-03-06 Thread David Kastrup
"Dmytro O. Redchuk"  writes:

> 2017-03-06 15:16 GMT+02:00 David Kastrup :
>> I may be missing the point, but what's wrong with
> Thank you, David, nothing wrong.
>
> Sorry, i was unclear.
>
> Actually i would like to have list of lists (list of verses) and place
> those verses in some way depending of other settings.
>
> I've tried to define markup command, but it can not be recursive.
>
> I've tried to call #{ \markup ... #} from withing scheme, but got
> empty document or "not a markup" error.
>
> So, i've tried some wrong ways and now i would like to know what i
> should try instead .)
>
> What to try to have a (scheme? lilypond+scheme?) function to loop over
> list of "verses" and output some "predefined" markup.

_Now_ you are being unclear.  I can't figure out what you did, and
I can't figure out what you want to do.

-- 
David Kastrup

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


Re: Scheme finction fo get markup from scheme list of strings?

2017-03-06 Thread Jeffery Shivers
On Mon, Mar 6, 2017 at 9:57 AM, David Kastrup  wrote:
> "Dmytro O. Redchuk"  writes:
>
>> 2017-03-06 15:16 GMT+02:00 David Kastrup :
>>> I may be missing the point, but what's wrong with
>> Thank you, David, nothing wrong.
>>
>> Sorry, i was unclear.
>>
>> Actually i would like to have list of lists (list of verses) and place
>> those verses in some way depending of other settings.
>>

I think I understand what you want, if the following is correct:

At the least, you need a function to accept a list of markup-lists
(such as the "verse" you provided).

And then, on top of that, you want to still be able to add properties
for *all* of them -- or do you mean, for *each* of them (meaning you
could set properties for one verse this way, another verse another
way, etc)?

In effect, instead of doing

\markup-list \column-lines #verse1
\markup-list \column-lines #verse2
% etc..

you'd like to do e.g.:

#(define verses '(verse1 verse2))
\all-the-markup-lists #verses

or even the latter part as:

#(all-the-markup-lists-in-scheme verses)

>> I've tried to define markup command, but it can not be recursive.
>>
>> I've tried to call #{ \markup ... #} from withing scheme, but got
>> empty document or "not a markup" error.
>>
>> So, i've tried some wrong ways and now i would like to know what i
>> should try instead .)
>>
>> What to try to have a (scheme? lilypond+scheme?) function to loop over
>> list of "verses" and output some "predefined" markup.
>
> _Now_ you are being unclear.  I can't figure out what you did, and
> I can't figure out what you want to do.
>
> --
> David Kastrup
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user



-- 

Jeffery Shivers
 jefferyshivers.com
 soundcloud.com/jefferyshivers

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


Re: Scheme finction fo get markup from scheme list of strings?

2017-03-06 Thread Dmytro O. Redchuk
2017-03-06 17:34 GMT+02:00 Jeffery Shivers :
> or even the latter part as:
>
> #(all-the-markup-lists-in-scheme verses)
Yes, like this.

Having defined N verses --- i wishto be able to decide how to display them.

One verse should be centered in \fill-line, two verses should be
placed in one \fill-line as a columns; may be some additional
"incapsulations" for verse number in column near to verse's column...

Actually i have a friend of mine who helps to type scores without any
knowledge of lilypond file structure --- i have provided her with a
template, and she simply puts voice notation inside voice files
(everything inside \relative c' { ... } or like that). [For some
reasons] she will not learn markup commands, but i really need her
help and she really wants to help :)

And she typed *a lot* (i could provide a link to site).

Regarding "what i have tried" --- to learn how to loop over lists and
create markups i've tried something like this:

; for a case when "verseList" is a list of string:
#(define (display-verses verses)
   (if (not (null? verses))
   (begin
(markup (car verses))
(display-verses (cdr verses)

\markuplist {
  #(display-verses verseList)
}

This throws "not a markup" --- and i guess i understand why (it should
be a markup function).

Then i've tried to create a markup function like this one, but it can
not be recursive (display-verses is undefined inside display-verses).

So, i've asked for help.

Probably, i should look iside some lilypond's .scm to get some lighting.

-- 
  Dmytro O. Redchuk

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


Re: need markup function for arrow at end of curve

2017-03-06 Thread Pierre Perol-Schneider
Hi Kieren,

2017-03-06 15:52 GMT+01:00 Kieren MacMillan :


> (p.s. How did you do that so quickly?)
>

Probably because I'm use to. ;)


> Is there an easy way to reverse the direction, so that it’s curving and
> pointing to the left?
>

That's easy :

\version "2.19"

 #(define-markup-command (curvedArrow layout props thk X-scale Y-scale)
(number? number? number?)
  (interpret-markup layout props
   (markup
(#:stencil
 (make-path-stencil
  '(M  3.01 -0.22
C  6.17  1.59  9.88  1.09 13.35  1.05
C 13.47  1.19 12.99  1.75 13.23  1.94
C 14.66  1.15 16.91  0.92 16.93  0.71
C 16.93  0.57 15.13  0.56 13.32 -0.37
C 13.17 -0.09 13.48  0.31 13.35  0.50
C 10.56  0.59  7.62  0.76  5.69  0.36
C  3.76 -0.04 -0.16 -2.02  3.01 -0.22
Z)
   thk X-scale Y-scale #t)


 %% Test:
 { c' -\markup\curvedArrow #.1 #-1 #1 }



> Ideally, I think the thickness would affect the curve and arrow, but the
> length and height would affect only the curve.


Ok, I'll try that later, maybe tonight.

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