Re: Pango warning

2016-10-30 Thread Jean Brefort
Le lundi 31 octobre 2016 à 17:16 +1100, Andrew Bernard a écrit :
> Any idea what this may mean?
>  
> As per usual, no line numbers or location info given in the message.
>  
> Preprocessing graphical objects...
> (lilypond.exe:9308): Pango-WARNING **: Invalid UTF-8 string passed to
> pango_layout_set_text()
>  
> (lilypond.exe:9308): Pango-WARNING **: Invalid UTF-8 string passed to
> pango_layout_set_text()
>  
> Andrew
>  
>  
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user

It just means what it says, there is at least one string which is not
correctly utf-8 encoded in the source file.

Jean

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


Pango warning

2016-10-30 Thread Andrew Bernard
Any idea what this may mean?

 

As per usual, no line numbers or location info given in the message.

 

Preprocessing graphical objects...

(lilypond.exe:9308): Pango-WARNING **: Invalid UTF-8 string passed to
pango_layout_set_text()

 

(lilypond.exe:9308): Pango-WARNING **: Invalid UTF-8 string passed to
pango_layout_set_text()

 

Andrew

 

 

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


Re: Making a Hairpin end close to the end of a Score

2016-10-30 Thread Jay Anderson
On Sun, Oct 30, 2016 at 5:35 PM, Christopher Heckman
 wrote:
> I stumbled on this hack, and it doesn't appear to be anywhere online.
>
> As is, you can't have a hairpin run until the very end of a score; it
> will stop before the last note. You also can't add \! to a \bar;
> Lilypond complains that it is not a musical event.
>
> The idea is to use \afterGrace, with an invisible grace note.
>
> \absolute {
> c'2\> \afterGrace d' { s16\! } |
> }
>
> MIDI translates this as you would expect, without an extra note at the end.
>
> However, this will not work if the hairpin starts on the last printed note.

I tend to use this:

c1\> s1*0\! |

-Jay

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


Making a Hairpin end close to the end of a Score

2016-10-30 Thread Christopher Heckman
I stumbled on this hack, and it doesn't appear to be anywhere online.

As is, you can't have a hairpin run until the very end of a score; it
will stop before the last note. You also can't add \! to a \bar;
Lilypond complains that it is not a musical event.

The idea is to use \afterGrace, with an invisible grace note.

\absolute {
c'2\> \afterGrace d' { s16\! } |
}

MIDI translates this as you would expect, without an extra note at the end.

However, this will not work if the hairpin starts on the last printed note.

--- Christopher Heckman

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


Re: Changing voice order...

2016-10-30 Thread Dan Eble
On Oct 28, 2016, at 05:01 , David Kastrup  wrote:
> 
> Well, there is still the question of what 1/2/3 should _mean_.
> Currently they are connected with \voiceOne, \voiceTwo,
> \voiceThree... and the meaning of those is "topmost", "lowest", "below
> topmost" ...
> 
> I find this both disturbing and hard to remember and so for me the
> question is what the most satisfactory way to change that would be in
> the long term.

Maybe let << \sopOne \\ \alto \\ \sopTwo >> work as it works and add a function 
to reorder?

e.g.\highToLow << \sopOne \\ \sopTwo \\ \alto >>
— 
Dan


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


Re: Question for a FLOSS licensing session

2016-10-30 Thread Carl Sorensen


On 10/30/16 5:40 AM, "Urs Liska"  wrote:

>
>
>Am 30.10.2016 um 20:26 schrieb Edward Ardzinski:
>> Does this matter to the average user?  Probably not.  But some here use
>>LP for more than I do.
>>
>> But I'm not sure why the programming should be separated from the
>>output? 
>
>Because that might lead to the situation that the license applying to
>LilyPond might prevent users from actually using it when they are not
>ready to open source their work.
>And that's definitely not the intention of the GPL.

I have a much different reading of these license terms than you do.

The license never requires that items created by the software be licensed
by the GPL -- only that new versions (or derivative works) of the software
be licensed by the GPL.

An input file created to work with Lilypond (even one that uses an
/include) is not a derivative work of LilyPond, IMO.  So there is no GPL
requirement for the license on that input file.

Now, if you distribute LilyPond along with your input file, you need to
make it clear that LilyPond is GPL.  But if you don't, the user of the
input file is responsible for getting their own copy of LilyPond.

And in the even more restrictive case, when you are just creating a pdf or
a midi or some other LilyPond output file, and that's all you want to
share with the public, you're covered.  This is not a derivative work.

To make what I consider an apt analogy, using gcc doesn't require any
programs you create to be GPL'd.  But making a new version of gcc must be
GPL'd.

Just my $.02

Thanks,

Carl


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


Shape note font failures

2016-10-30 Thread Jim Duke
I'm typesetting some A Capella music for congregational singing the uses the 
7-note (Aiken) shape note system.  I've found that based on the system size 
some of the half note heads for RE (d in the example) are indistinguishable 
from quarter notes.  Basically the interior of the note head is filling in.  
The following example reproduces the problem:

\version "2.18.2"

\score {
  \relative c' {
\aikenHeads
\override NoteHead.
c2 d2 e2 f2 g2 a2 b2 c2
  }
  \layout {
#(layout-set-staff-size 21)
  }
}

\score {
  \relative c' {
\aikenHeads
c2 d2 e2 f2 g2 a2 b2 c2
  }
  \layout {
#(layout-set-staff-size 22)
  }
}

The D in the first system (at staff size 21) has the note head filled in.  The 
D in the second system (with staff size 22) has the note head hollow as it 
should be.

I'm not sure how to proceed with fixing this.  I can artificially enlarge the 
note heads; but that is an unsatisfactory fix that I'd like to avoid if 
possible.  I'm afraid the real fix would involve a change in the font 
definitions.  It seems the pen size is a bit too large.  Is there a way short 
of changing the font definition of controlling that?
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Question for a FLOSS licensing session

2016-10-30 Thread David Kastrup
Urs Liska  writes:

> Hi all,
>
> I'm right now at the GSoC mentors summit and already had a bunch of
> interesting sessions.
>
> One specific one that is to come this afternoon is a Q&A session about
> FLOSS licensing, done by a FSF lawyer. I want to take the opportunity to
> raise a question that in some way or another pops up around here
> occasionally, circling around the problem that with LilyPond it is often
> difficult to draw a proper line between document content, in-document
> coding and including GPLed code from LilyPond or openLilyLib.
>
> I have tried to write up the case at
> https://git.openlilylib.org/snippets/2, and if someone wants to comment
> on it within the next three hours I may consider it for my questions.

That's mostly nonsense.  The license of LilyPond is irrelevant for
documents compiled with LilyPond.  While there is some new option
including the source code of documents in the PDF, it does not include
parts of LilyPond, so that is again moot.

The only generally applicable consideration is the licensing of the
fonts since they become an actual part of the PDF file.  And of course
the _corresponding_ source code which will in general be under control
of the user.  There are some considerations when LSR code and similar
gets copied into documents: in that case, the source code of the
document might come under the licensing reign of the LSR code (do we
specify anything for it?).

But by and large, the licensing of the tools used for creating some PDF
file are not relevant for the licensing of the end product.  That would
be like a violin maker demanding a share in recording royalties from
instruments he sold.

-- 
David Kastrup

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


Re: Drawing an Oval around a group of notes

2016-10-30 Thread Robin Bannister

John Zeweniuk wrote:

Can anybody give me some suggestions  of how I would draw an oval around a 
group of notes on the staff?



For the special case of a single chord, see the german thread
http://www.lilypondforum.de/index.php?topic=378


The 2.18 version of this would read
%%
kringel =
\once \override NoteColumn.stencil = #(lambda (grob)
  (let* ((xext (ly:grob-extent grob grob X))
 (yext (ly:grob-extent grob grob Y))
 (xpos (interval-index xext CENTER))
 (ypos (interval-index yext CENTER))
 (yrad (* 0.8 (interval-length yext)))
 (xrad (min (interval-length xext) 2))
 (thickness 0.05))
(ly:stencil-add
 (ly:stencil-translate
  (ly:make-stencil (list 'ellipse xrad yrad thickness #f))
  (cons xpos ypos)) )))
%%


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


Re: Drawing an Oval around a group of notes

2016-10-30 Thread Thomas Morley
2016-10-30 22:13 GMT+01:00 John Zeweniuk :
> Can anybody give me some suggestions  of how I would draw an oval around a 
> group of notes on the staff?
>
> thanks,
>
> John


Hi John,

there's no out of the box function for this.
You can use TextScript and adjust it manually:

{
\override TextScript.outside-staff-priority = #'()
\override TextScript.staff-padding = #'()
%\override TextScript.X-offset = 40
\override TextScript.Y-offset = 0
c''^\markup \oval \with-dimensions #'(1 . 9) #'(-10 . 10) \null
d'' e'' f''
}

{
\override TextScript.outside-staff-priority = #'()
\override TextScript.staff-padding = #'()
%\override TextScript.X-offset = 40
\override TextScript.Y-offset = 0
c''^\markup \oval \with-dimensions #'(0.8 . 9) #'(-4 . 4) \null
d'' e'' f''
}


Maybe David Nalesnik's frame-engraver could be forced to do so as well.
But this would require some work for sure, if possible at all ... and
I'm not really familiar with his coding.

Cheers,
  Harm

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


Drawing an Oval around a group of notes

2016-10-30 Thread John Zeweniuk
Can anybody give me some suggestions  of how I would draw an oval around a 
group of notes on the staff?

thanks, 

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


Re: Question for a FLOSS licensing session

2016-10-30 Thread Urs Liska


Am 30.10.2016 um 20:26 schrieb Edward Ardzinski:
> Does this matter to the average user?  Probably not.  But some here use LP 
> for more than I do.
>
> But I'm not sure why the programming should be separated from the output? 

Because that might lead to the situation that the license applying to
LilyPond might prevent users from actually using it when they are not
ready to open source their work.
And that's definitely not the intention of the GPL.

Urs

>  From my perspective the programming IS the music, be it a PDF score or the 
> MIDI files I use to make my MP3 demos.
>
> Certainly I see a differentiation license wise between taking the midi and 
> rendering the MP3.  I don't have to take that step.  But if I'm using LP to 
> make a final product, I certainly need to write the programming code.
>
> Sent from my iPhone
>
>> On Oct 30, 2016, at 2:39 PM, Urs Liska  wrote:
>>
>> Hi all,
>>
>> I'm right now at the GSoC mentors summit and already had a bunch of
>> interesting sessions.
>>
>> One specific one that is to come this afternoon is a Q&A session about
>> FLOSS licensing, done by a FSF lawyer. I want to take the opportunity to
>> raise a question that in some way or another pops up around here
>> occasionally, circling around the problem that with LilyPond it is often
>> difficult to draw a proper line between document content, in-document
>> coding and including GPLed code from LilyPond or openLilyLib.
>>
>> I have tried to write up the case at
>> https://git.openlilylib.org/snippets/2, and if someone wants to comment
>> on it within the next three hours I may consider it for my questions.
>>
>> 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


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


Re: Question for a FLOSS licensing session

2016-10-30 Thread Edward Ardzinski

Does this matter to the average user?  Probably not.  But some here use LP for 
more than I do.

But I'm not sure why the programming should be separated from the output?  From 
my perspective the programming IS the music, be it a PDF score or the MIDI 
files I use to make my MP3 demos.

Certainly I see a differentiation license wise between taking the midi and 
rendering the MP3.  I don't have to take that step.  But if I'm using LP to 
make a final product, I certainly need to write the programming code.

Sent from my iPhone

> On Oct 30, 2016, at 2:39 PM, Urs Liska  wrote:
> 
> Hi all,
> 
> I'm right now at the GSoC mentors summit and already had a bunch of
> interesting sessions.
> 
> One specific one that is to come this afternoon is a Q&A session about
> FLOSS licensing, done by a FSF lawyer. I want to take the opportunity to
> raise a question that in some way or another pops up around here
> occasionally, circling around the problem that with LilyPond it is often
> difficult to draw a proper line between document content, in-document
> coding and including GPLed code from LilyPond or openLilyLib.
> 
> I have tried to write up the case at
> https://git.openlilylib.org/snippets/2, and if someone wants to comment
> on it within the next three hours I may consider it for my questions.
> 
> 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


search term

2016-10-30 Thread Mark Stephen Mrotek
Hello All

 

Found it!

"thumbBracket.ily" by Robin Bannister in users archives.

 

Mark

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


RE: search term

2016-10-30 Thread Mark Stephen Mrotek
Jacques Menu,

 

Thank you for your response and the snippet. That would work well for “hand 
over” and “hand under.”

 

Mark

 

From: lilypond-user [mailto:lilypond-user-bounces+carsonmark=ca.rr@gnu.org] 
On Behalf Of Jacques Menu Muzhic
Sent: Sunday, October 30, 2016 11:30 AM
To: Bernhard Kleine 
Cc: lilypond-user@gnu.org
Subject: Re: search term

 

Hello Mark,

 

Maybe you can take ideas from the following.

 

JM

 

—

 

\version "2.19.44"

 

underscorePath =

#'(

(rlineto 0 -1.0)

(moveto 0 0)

(rlineto 6.0 0)

 

(closepath))

 

Tutti = ^\markup{

  \column {

"[Tutti]"

\vspace #-0.75

\path #0.25 #underscorePath

  }

}

 

Soli = ^\markup{

  \column {

"[Soli]"

\vspace #-0.75

\path #0.25 #underscorePath

  }

}

 

{ a \Tutti b c d \Soli }

 

 

Le 30 oct. 2016 à 19:22, Bernhard Kleine mailto:bernhard.kle...@gmx.net> > a écrit :

 

Arpeggio Bracket is the search word.

Regards Bernhard

 

Am 30.10.2016 um 18:38 schrieb Phil Holmes:

I don't think I've ever noted that notation in LilyPond.  The closest I can 
think of is   
http://lsr.di.unimi.it/LSR/Item?id=466


--
Phil Holmes

 

 

- Original Message - 

From:   Mark Stephen Mrotek

To:   lilypond-user@gnu.org

Sent: Sunday, October 30, 2016 5:21 PM

Subject: search term

 

Hello All:

 

Lilypond has a command to indicate in Piano Score left hand to play note(s) – 
something like ┌  and right hand – like └.

What search term should I use to it locate in LSR or mail-archive?

 

Thank you for your kind attention.

 

Mark

 


  _  


___
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





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

___
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: search term

2016-10-30 Thread Mark Stephen Mrotek
Phil,

 

Thank you for your response and the reference.

It could work.

 

Mark

 

From: Phil Holmes [mailto:m...@philholmes.net] 
Sent: Sunday, October 30, 2016 10:39 AM
To: Mark Stephen Mrotek ; lilypond-user@gnu.org
Subject: Re: search term

 

I don't think I've ever noted that notation in LilyPond.  The closest I can
think of is http://lsr.di.unimi.it/LSR/Item?id=466


--
Phil Holmes

 

 

- Original Message - 

From: Mark Stephen Mrotek   

To: lilypond-user@gnu.org   

Sent: Sunday, October 30, 2016 5:21 PM

Subject: search term

 

Hello All:

 

Lilypond has a command to indicate in Piano Score left hand to play note(s)
- something like -  and right hand - like L.

What search term should I use to it locate in LSR or mail-archive?

 

Thank you for your kind attention.

 

Mark


  _  


___
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


Question for a FLOSS licensing session

2016-10-30 Thread Urs Liska
Hi all,

I'm right now at the GSoC mentors summit and already had a bunch of
interesting sessions.

One specific one that is to come this afternoon is a Q&A session about
FLOSS licensing, done by a FSF lawyer. I want to take the opportunity to
raise a question that in some way or another pops up around here
occasionally, circling around the problem that with LilyPond it is often
difficult to draw a proper line between document content, in-document
coding and including GPLed code from LilyPond or openLilyLib.

I have tried to write up the case at
https://git.openlilylib.org/snippets/2, and if someone wants to comment
on it within the next three hours I may consider it for my questions.

Urs


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


Re: search term

2016-10-30 Thread Jacques Menu Muzhic
Hello Mark,

Maybe you can take ideas from the following.

JM

—

\version "2.19.44"

underscorePath =
#'(
(rlineto 0 -1.0)
(moveto 0 0)
(rlineto 6.0 0)

(closepath))

Tutti = ^\markup{
  \column {
"[Tutti]"
\vspace #-0.75
\path #0.25 #underscorePath
  }
}

Soli = ^\markup{
  \column {
"[Soli]"
\vspace #-0.75
\path #0.25 #underscorePath
  }
}

{ a \Tutti b c d \Soli }


> Le 30 oct. 2016 à 19:22, Bernhard Kleine  a écrit :
> 
> Arpeggio Bracket is the search word.
> 
> Regards Bernhard
> 
> 
> Am 30.10.2016 um 18:38 schrieb Phil Holmes:
>> I don't think I've ever noted that notation in LilyPond.  The closest I can 
>> think of is http://lsr.di.unimi.it/LSR/Item?id=466 
>> 
>> 
>> --
>> Phil Holmes
>>  
>>  
>> - Original Message - 
>> From: Mark Stephen Mrotek 
>> To: lilypond-user@gnu.org 
>> Sent: Sunday, October 30, 2016 5:21 PM
>> Subject: search term
>> 
>> Hello All:
>>  
>> Lilypond has a command to indicate in Piano Score left hand to play note(s) 
>> – something like ┌  and right hand – like └.
>> What search term should I use to it locate in LSR or mail-archive?
>>  
>> Thank you for your kind attention.
>>  
>> Mark
>> 
>> ___
>> 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 
>> 
> 
> -- 
> spitzhalde9
> D-79853 lenzkirch
> bernhard.kle...@gmx.net 
> www.b-kleine.com , www.urseetal.net 
> 
> -
> thunderbird mit enigmail
> GPG schlüssel: D5257409
> fingerprint:
> 08 B7 F8 70 22 7A FC C1 15 49 CA A6 C7 6F A0 2E D5 25 74 09
> ___
> 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: search term

2016-10-30 Thread Bernhard Kleine
Arpeggio Bracket is the search word.

Regards Bernhard


Am 30.10.2016 um 18:38 schrieb Phil Holmes:
> I don't think I've ever noted that notation in LilyPond.  The closest
> I can think of is http://lsr.di.unimi.it/LSR/Item?id=466
>
> --
> Phil Holmes
>  
>  
>
> - Original Message -
> *From:* Mark Stephen Mrotek 
> *To:* lilypond-user@gnu.org 
> *Sent:* Sunday, October 30, 2016 5:21 PM
> *Subject:* search term
>
> Hello All:
>
>  
>
> Lilypond has a command to indicate in Piano Score left hand to
> play note(s) – something like ┌ and right hand – like └.
>
> What search term should I use to it locate in LSR or mail-archive?
>
>  
>
> Thank you for your kind attention.
>
>  
>
> Mark
>
> 
> ___
> 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

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



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


Re: search term

2016-10-30 Thread Phil Holmes
I don't think I've ever noted that notation in LilyPond.  The closest I can 
think of is http://lsr.di.unimi.it/LSR/Item?id=466

--
Phil Holmes


  - Original Message - 
  From: Mark Stephen Mrotek 
  To: lilypond-user@gnu.org 
  Sent: Sunday, October 30, 2016 5:21 PM
  Subject: search term


  Hello All:

   

  Lilypond has a command to indicate in Piano Score left hand to play note(s) - 
something like ┌  and right hand - like └.

  What search term should I use to it locate in LSR or mail-archive?

   

  Thank you for your kind attention.

   

  Mark



--


  ___
  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


search term

2016-10-30 Thread Mark Stephen Mrotek
Hello All:

 

Lilypond has a command to indicate in Piano Score left hand to play note(s)
- something like -  and right hand - like L.

What search term should I use to it locate in LSR or mail-archive?

 

Thank you for your kind attention.

 

Mark

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


Re: pitched rests in TabStaff !?

2016-10-30 Thread Thomas Morley
2016-10-30 2:15 GMT+02:00 Thomas Morley :
> Hi,
>
> is it really true we have no viable method to use pitched rests in TabStaff?
> Or am I overlooking something?
>
> Some code to play with:
>
> \version "2.19.49"
>
> ps = { e,4 f, g, a, b, c d e f g a b c' d' e' f' g' a' b' c'' }
>
> <<
>   \new TabStaff \ps
>   \new TabStaff \with { \revert Rest.stencil }
> \transpose c c'
> $(make-sequential-music
>   (map
> (lambda (p)
>   (make-music 'RestEvent 'duration (ly:make-duration 2) 'pitch p))
> (event-chord-pitches ps)))
>>>
>
> What would be a reasonable method to implement (or work around) it?
>
> One could think of using staff-position, but I _want_ the rests transposable.
> Maybe creating a restToFretFunction like noteToFretFunction, not sure
> where the noteToFretFunction gets it's arguments from, though.
> Likely from Tab_note_heads_engraver. That would mean to write a
> Tab_rest_engraver
>
> Any other hints?
>
> Thanks,
>   Harm

Ok, I've defined a PitchedTabRestEngraver:

\version "2.19.49"

PitchedTabRestEngraver =
#(lambda (context)
  (let ((string-numbers '())
(fingerings '())
(rest-events '())
(rest-grobs '())
(line-count #f))
(make-engraver
  ((start-translation-timestep trans)
(set! fingerings '())
(set! rest-events '())
(set! rest-grobs '())
(set! string-numbers '()))
  (listeners
((rest-event engraver event)
 (if (not (null? (ly:event-property event 'pitch)))
 (set! rest-events (cons event rest-events
((string-number-event engraver event)
  (set! string-numbers (cons event string-numbers)))
((fingering-event engraver event)
  (set! fingerings (cons event fingerings
  (acknowledgers
((rest-interface engraver grob source-engraver)
 (set! rest-grobs (cons grob rest-grobs)))
((staff-symbol-interface engraver grob source-engraver)
 (set! line-count (ly:grob-property grob 'line-count
  ((stop-translation-timestep trans)
(let* ((rest-arts
 (map
   (lambda (nv) (ly:event-property nv 'articulations))
   rest-events))
   (rest-strings-from-articulations
 (map
   (lambda (a)
 (filter
   (lambda (x)
 (member
   'string-number-event
   (ly:event-property x 'class)))
   a))
   rest-arts))
(rest-strings
   (if (every null? rest-strings-from-articulations)
   string-numbers
   rest-strings-from-articulations))
(rest-strings-to-determine-frets
  (if (null? rest-strings)
  (list (make-list (length rest-events) '()))
  rest-strings))
(rest-fingers-from-articulations
  (map
(lambda (a)
 (filter
  (lambda (x)
(member 'fingering-event (ly:event-property x 'class)))
  a))
rest-arts))
(rest-fingers
  (if (every null? rest-fingers-from-articulations)
  fingerings
  rest-fingers-from-articulations))
(rest-fingers-to-determine-frets
  (if (null? rest-fingers)
  (list (make-list (length rest-events) '()))
  rest-fingers))
(unnest-list-one-level
  (lambda (ls)
(append-map (lambda (x) (if (pair? x) x (list x))) ls)))
(rest-list-for-determine-frets
(list
  (unnest-list-one-level rest-strings-to-determine-frets)
  (unnest-list-one-level rest-fingers-to-determine-frets)))
(rest-string-fret-fingers
  ((ly:context-property context 'noteToFretFunction)
context
rest-events
rest-list-for-determine-frets)))
  (for-each
(lambda (tnh strg-frt-fngr)
  (if (and (list? strg-frt-fngr)
   (number? (car strg-frt-fngr)))
  (ly:grob-set-property! tnh 'staff-position
(list-ref
  (iota line-count (- (1- line-count)) 2)
  (abs (- (car strg-frt-fngr) line-count))
rest-grobs
rest-string-fret-fingers)))
  ((finalize trans)
   (set! line-count #f)

%%%
%% EXAMPLE
%%%

\paper { indent = 40 }

\layout {
  %\context {
  %  \Score
  %  \consists \PitchedTabRestEngraver
  %}
  \context {
\TabStaff
%% nic

Exited with return code -1073741819.

2016-10-30 Thread MING TSANG
hi, lilyponders:
(1).  What is the meaning of the following error message?I have SATB + piano 
score of 100 bars. Each SATB+pianoRH coded with 100 bars. I started to code 
piano-LH and it was all compilable upto bar  45 (no error). But after coded bar 
46, I got the error.
(2)  Window 10 generate the Chinese character onto the file naming, why the 
error message cannot display the UTF-8 Chinese character? 
Thank for the help.
Immanuel,Ming.

Starting lilypond-windows.exe 2.19.46 
[could-this-be-the-day_能否於今天.ly]...Processing `C:/Users/user/Google 
Drive/CHOIR_2016/Could-This-Be-The-Day_�ܷ�춽���/could-this-be-the-day_�ܷ�춽���.ly'Parsing...Interpreting
 music...MIDI output to 
`could-this-be-the-day_�ܷ�춽���-soprano.mid'...Interpreting music...MIDI output 
to `could-this-be-the-day_�ܷ�춽���-alto.mid'...Interpreting music...MIDI output 
to `could-this-be-the-day_�ܷ�춽���-tenor.mid'...Interpreting music...MIDI output 
to `could-this-be-the-day_�ܷ�춽���-bass.mid'...Interpreting 
music...[8][16][24][32][40][48][56][64][72][80][88][96]Exited with return code 
-1073741819.___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user