Re: Directional NoteHead Stencil Support

2015-03-20 Thread Marc Hohl

Am 19.03.2015 um 19:56 schrieb Abraham Lee:
[...]

When I get the 'stem-attachment property of the notehead, it always
gives me the top-right value, regardless of where the stem is actually
attached. I'm hoping this will work for chords, too, though I haven't
experimented enough to know for sure. Any help is always appreciated!


I am not sure whether I understand you correctly, but the stem direction 
property gives you the info needed to decide whether to rotate the 
glyph, isn't it?


Marc


Regards,
Abraham


___
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 \tempo command at the same time

2015-03-20 Thread Anton Curl

Hi everyone!

I'd like to put an indication displayed in all the parts but only once 
in the score, like a tempo mark.


I found this syntax:
  \tempo \markup { "swing" }
But at the same place in the score, I already have a \tempo command:
  \tempo 4=125
  \tempo \markup { "swing" }
  c

And Lilypond ignore the second.

What do I have to do to display both indications?

Thanks

Anton Curl

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


Re: 2 \tempo command at the same time

2015-03-20 Thread Craig Dabelstein
Hi Anton,

Can't you do:

\tempo "Swing" 4=125

Or is that not what you are looking for?

Craig


On Fri, 20 Mar 2015 at 17:59 Anton Curl  wrote:

> Hi everyone!
>
> I'd like to put an indication displayed in all the parts but only once
> in the score, like a tempo mark.
>
> I found this syntax:
>\tempo \markup { "swing" }
> But at the same place in the score, I already have a \tempo command:
>\tempo 4=125
>\tempo \markup { "swing" }
>c
>
> And Lilypond ignore the second.
>
> What do I have to do to display both indications?
>
> Thanks
>
> Anton Curl
>
> ___
> 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: musicxml2ly

2015-03-20 Thread Michael Hendry

> On 19 Mar 2015, at 23:20, Martin Tarenskeen  wrote:
> 
> 
> 
> On Fri, 20 Mar 2015, Noeck wrote:
> 
>> Hi Craig,
>> 
>>> Do I append "for f in *.xml" to the end of my command;
>> 
>> No, you put all your command within the for loop:
>> 
>> for f in *.xml; do
>> /Applications/LilyPond.app/Contents/Resources/bin/musicxml2ly  --nd
>> --nrp --npl --no-beaming -m --language=english $f; done
>> 
>> (all this is one line – or written in several lines:)
>> 
>> for f in *.xml
>> do
>> /Applications/LilyPond.app/Contents/Resources/bin/musicxml2ly \
>> --nd --nrp --npl --no-beaming -m --language=english $f
>> done
>> 
>> I hope this syntax is the same on a Mac.
> 
> 
> I am not a Mac user. But first thing I thought was: doesn't a Mac have a PATH 
> variable like Linux and Windows have, where the long path to ./bin can be 
> added before having to type such long commands?

Indeed it does, but as installed on the Mac “out-of-the-box” Lilypond doesn’t 
set up the PATH variable. This means that Lilypond itself can’t be run by 
entering “lilypond” at the command line.

As given above, the command is self-contained, which I think is a Good Thing! 

It’s (quite reasonably) left as an exercise for the reader to change the PATH, 
or put the whole command into a script.

Michael

> 
> -- 
> 
> MT___
> 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 \tempo command at the same time

2015-03-20 Thread Anton Curl

That's not exactly what I want.

"\tempo "Swing" 4=125" seems to mean "the tempo is Swing which 
correspond to 4=125". Whereas what I want is 2 different independent 
indications. The same result but without the parenthesis for example.


Maybe the \tempo command is not the command to use in this case. But I 
didn't find another way to have an indication once in the score and in 
each part.


Anton Curl

On 20/03/2015 09:36, Craig Dabelstein wrote:

Hi Anton,

Can't you do:

\tempo "Swing" 4=125

Or is that not what you are looking for?

Craig


On Fri, 20 Mar 2015 at 17:59 Anton Curl > wrote:


Hi everyone!

I'd like to put an indication displayed in all the parts but only once
in the score, like a tempo mark.

I found this syntax:
   \tempo \markup { "swing" }
But at the same place in the score, I already have a \tempo command:
   \tempo 4=125
   \tempo \markup { "swing" }
   c

And Lilypond ignore the second.

What do I have to do to display both indications?

Thanks

Anton Curl

___
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: Directional NoteHead Stencil Support

2015-03-20 Thread Pierre Perol-Schneider
Hi Abraham, Hi All,

Yes Marc, the stem direction property is definitly the one, but I think his
question is "how to?".
For instance I've come to this, which does not seem to work properly :

\version "2.19.16"
#(set-global-staff-size 25)

stil = \markup {
  \override #'(filled . #t)
  \path #0.01 #'(
 (moveto0.00   -0.50)
 (curveto   0.00   -0.10   0.00   0.50  0.60   0.50)
 (curveto   1.560.50   1.62  -0.50  1.00  -0.50)
 (curveto   0.56   -0.50   0.58  -0.19  0.70   0.00)
 (curveto   0.780.13   0.80   0.45  0.50   0.45)
 (curveto   0.060.45   0.08  -0.13  0.08  -0.50)
 (closepath))
}

newstil = \markup\rotate #180 \stil

%% does not work properly
#(define alt-notehead
  (lambda (grob)
(if (eq? (ly:grob-property grob 'direction) DOWN)
 ;; does not work:
 ;(if (= DOWN (ly:grob-property grob 'direction))
 ;; does not work either:
 ;(if (= -1 (ly:grob-property grob 'direction))
 (grob-interpret-markup grob stil)
 (grob-interpret-markup grob newstil

{
  \override NoteHead.stem-attachment = #'(1 . 0.95)
  \override Stem.thickness = #1.0
  %% does not work propely:
  %\override NoteHead.stencil = #alt-notehead

  \once\override NoteHead.stencil = #(lambda (grob) (grob-interpret-markup
grob stil))
  c''

  \override NoteHead.stencil = #(lambda (grob) (grob-interpret-markup grob
newstil))
  a'
}

HTH,
Pierre

2015-03-20 8:05 GMT+01:00 Marc Hohl :

> Am 19.03.2015 um 19:56 schrieb Abraham Lee:
> [...]
>
>> When I get the 'stem-attachment property of the notehead, it always
>> gives me the top-right value, regardless of where the stem is actually
>> attached. I'm hoping this will work for chords, too, though I haven't
>> experimented enough to know for sure. Any help is always appreciated!
>>
>
> I am not sure whether I understand you correctly, but the stem direction
> property gives you the info needed to decide whether to rotate the glyph,
> isn't it?
>
> Marc
>
>>
>> Regards,
>> Abraham
>>
>>
>> ___
>> 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: Directional NoteHead Stencil Support

2015-03-20 Thread Paul Morris
There's a snippet in the lsr for accessing grobs "laterally" from another 
grob's callback:
http://lsr.di.unimi.it/LSR/Item?id=621

...like accessing the stem grob from a note head grob.  There's also one on 
showing "grob ancestry" that's helpful for this kind of thing.

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


Re: 2 \tempo command at the same time

2015-03-20 Thread Cynthia Karl

> Message: 3
> Date: Fri, 20 Mar 2015 10:03:10 +0100
> From: Anton Curl 
> To: Craig Dabelstein ,
>   lilypond-user@gnu.org
> Subject: Re: 2 \tempo command at the same time
> 
> That's not exactly what I want.
> 
> "\tempo "Swing" 4=125" seems to mean "the tempo is Swing which 
> correspond to 4=125". Whereas what I want is 2 different independent 
> indications. The same result but without the parenthesis for example.
> 
> Maybe the \tempo command is not the command to use in this case. But I 
> didn't find another way to have an indication once in the score and in 
> each part.

I think you're looking for the \mark command, which does exactly what you're 
looking for, once in the score and in each part:

<<
\new Staff \relative c'' { \tempo 4=120 \mark \markup { \hspace #30 "swing" 
} c d e f }
\new Staff \relative c'' { \tempo 4=120 \mark \markup { \hspace #30 "swing" 
} f e d c }
>>



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


Divisi in just one measure of a choir score

2015-03-20 Thread Niels
Dear community,

In the following example I want to add the text to the music.
The second measure is divided in two voices.
However the text skips the second measure.
When I \addlyrics { c d } immediately after {eis4( dis) eis} the text is
printed too low and the remaining music is discarded.
I also tried to give the two voices a name and add lyrics to a name, but
that also failed.

\version "2.16.2"

\score
{
\new ChoirStaff
\relative c''{
  \time 3/4
  fis2 fis4 
  <<
{ eis2 eis4} ( Voice 1
\\
{eis4( dis) eis} % \addlyrics { c d } % Voice 2
  >>
  fis2 fis4 
  }
  \addlyrics { a b c d e f }
}

Could anyone help me?
Thank you for your reactions, Niels

Regards,
Niels



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Divisi-in-just-one-measure-of-a-choir-score-tp173386.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 \tempo command at the same time

2015-03-20 Thread Anton Curl

Yes that's it!

Thanks!

On 20/03/2015 13:29, Cynthia Karl wrote:

I think you're looking for the \mark command, which does exactly what you're 
looking for, once in the score and in each part:

<<
 \new Staff \relative c'' { \tempo 4=120 \mark \markup { \hspace #30 
"swing" } c d e f }
 \new Staff \relative c'' { \tempo 4=120 \mark \markup { \hspace #30 
"swing" } f e d c }




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


Re: 2 \tempo command at the same time

2015-03-20 Thread Paul Scott
On Fri, Mar 20, 2015 at 08:59:27AM +0100, Anton Curl wrote:
> Hi everyone!
> 
> I'd like to put an indication displayed in all the parts but only once in
> the score, like a tempo mark.
> 
> I found this syntax:
>   \tempo \markup { "swing" }
> But at the same place in the score, I already have a \tempo command:
>   \tempo 4=125
>   \tempo \markup { "swing" }
>   c
> 
> And Lilypond ignore the second.
> 
> What do I have to do to display both indications?


   \tempo \markup { "swing" } 4=125
   c

HTH

Paul Scott



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


Re: 2 \tempo command at the same time

2015-03-20 Thread Robert Schmaus
If you're producing a jazz lead sheet (as the "swing" indicates), you're wrong. 

\tempo "Swing" 4=125

Merely indicates that the *style* is Swing while the tempo is 125. You could 
also write 
\tempo "Swing" 4=200
Which would indicate that this is a swing piece of tempo 200. 

Jazz tempo indications don't work like classical ones where a tempo name also 
implies a certain (narrow) range of bpm. 

Best, Rob 

__

Don't ask me who's influenced me. A lion is made up of the lambs he's digested, 
and I've been reading all my life. 
-- Giorgos Seferis

> On 20 Mar 2015, at 10:03, Anton Curl  wrote:
> 
> That's not exactly what I want.
> 
> "\tempo "Swing" 4=125" seems to mean "the tempo is Swing which correspond to 
> 4=125". Whereas what I want is 2 different independent indications. The same 
> result but without the parenthesis for example.
> 
> Maybe the \tempo command is not the command to use in this case. But I didn't 
> find another way to have an indication once in the score and in each part.
> 
> Anton Curl
> 
>> On 20/03/2015 09:36, Craig Dabelstein wrote:
>> Hi Anton,
>> 
>> Can't you do:
>> 
>> \tempo "Swing" 4=125
>> 
>> Or is that not what you are looking for?
>> 
>> Craig
>> 
>> 
>>> On Fri, 20 Mar 2015 at 17:59 Anton Curl  wrote:
>>> Hi everyone!
>>> 
>>> I'd like to put an indication displayed in all the parts but only once
>>> in the score, like a tempo mark.
>>> 
>>> I found this syntax:
>>>\tempo \markup { "swing" }
>>> But at the same place in the score, I already have a \tempo command:
>>>\tempo 4=125
>>>\tempo \markup { "swing" }
>>>c
>>> 
>>> And Lilypond ignore the second.
>>> 
>>> What do I have to do to display both indications?
>>> 
>>> Thanks
>>> 
>>> Anton Curl
>>> 
>>> ___
>>> 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: 2 \tempo command at the same time

2015-03-20 Thread Anton Curl
I don't know much about jazz. It's not the kind of music I'm usually 
typesetting.


I never saw a jazz lead sheet with swing written followed by the 
metronome mark between brackets. If it's the policy, I can adopt it. But 
I'm curious to see some examples of it.


Anton Curl

On 20/03/2015 14:36, Robert Schmaus wrote:
If you're producing a jazz lead sheet (as the "swing" indicates), 
you're wrong.


\tempo "Swing" 4=125

Merely indicates that the *style* is Swing while the tempo is 125. You 
could also write

\tempo "Swing" 4=200
Which would indicate that this is a swing piece of tempo 200.

Jazz tempo indications don't work like classical ones where a tempo 
name also implies a certain (narrow) range of bpm.


Best, Rob

__

Don't ask me who's influenced me. A lion is made up of the lambs he's 
digested, and I've been reading all my life.

-- /Giorgos Seferis/

On 20 Mar 2015, at 10:03, Anton Curl > wrote:



That's not exactly what I want.

"\tempo "Swing" 4=125" seems to mean "the tempo is Swing which 
correspond to 4=125". Whereas what I want is 2 different independent 
indications. The same result but without the parenthesis for example.


Maybe the \tempo command is not the command to use in this case. But 
I didn't find another way to have an indication once in the score and 
in each part.


Anton Curl

On 20/03/2015 09:36, Craig Dabelstein wrote:

Hi Anton,

Can't you do:

\tempo "Swing" 4=125

Or is that not what you are looking for?

Craig


On Fri, 20 Mar 2015 at 17:59 Anton Curl > wrote:


Hi everyone!

I'd like to put an indication displayed in all the parts but
only once
in the score, like a tempo mark.

I found this syntax:
   \tempo \markup { "swing" }
But at the same place in the score, I already have a \tempo command:
   \tempo 4=125
   \tempo \markup { "swing" }
   c

And Lilypond ignore the second.

What do I have to do to display both indications?

Thanks

Anton Curl

___
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: Divisi in just one measure of a choir score

2015-03-20 Thread Trevor Daniels

Niels wrote Friday, March 20, 2015 12:53 PM

> In the following example I want to add the text to the music.
> The second measure is divided in two voices.
> However the text skips the second measure.

This is the structure you need:

\version "2.16.2"

\score {
  \new ChoirStaff <<
\new Staff {
  \relative c'' {
\time 3/4
fis2 fis4 
<<
  { \voiceOne eis2 eis4 }
%\\
  \new Voice {
\voiceTwo 
eis4( dis) eis
  }
>>
\oneVoice
fis2 fis4 
  }
  \addlyrics { a b c d e f }
}
  >>
}

Don't use "\\" but rather just define a second voice.

BTW, 2.16.2 is now rather out of date.  There are
many improvements in 2.18.2, and even more in 
release 2.19.17, which includes improvements being
prepared for 2.20.

Trevor



Trevor

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


Re: Divisi in just one measure of a choir score

2015-03-20 Thread Niels
Dear Trevor,

Thanks a lot!
Now it works. I assume that the lyrics are connected to the first voice.

My installed version comes from the Ubuntu repositories.
Perhaps I can better install it from an installation download for the 
latest version.

Niels

On 03/20/2015 02:59 PM, Trevor Daniels [via Lilypond] wrote:
>
> Niels wrote Friday, March 20, 2015 12:53 PM
>
>  > In the following example I want to add the text to the music.
>  > The second measure is divided in two voices.
>  > However the text skips the second measure.
>
> This is the structure you need:
>
> \version "2.16.2"
>
> \score {
>\new ChoirStaff <<
>  \new Staff {
>\relative c'' {
>  \time 3/4
>  fis2 fis4
>  <<
>{ \voiceOne eis2 eis4 }
> %\\
>\new Voice {
>  \voiceTwo
>  eis4( dis) eis
>}
>  >>
>  \oneVoice
>  fis2 fis4
>}
>\addlyrics { a b c d e f }
>  }
>>>
> }
>
> Don't use "\\" but rather just define a second voice.
>
> BTW, 2.16.2 is now rather out of date.  There are
> many improvements in 2.18.2, and even more in
> release 2.19.17, which includes improvements being
> prepared for 2.20.
>
> Trevor
>
>
>
> Trevor
>
> ___
> lilypond-user mailing list
> [hidden email] 
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
>
> 
> If you reply to this email, your message will be added to the discussion
> below:
> http://lilypond.1069038.n5.nabble.com/Divisi-in-just-one-measure-of-a-choir-score-tp173386p173392.html
>
> To unsubscribe from Divisi in just one measure of a choir score, click
> here
> .
> NAML
> 
>




-
Niels
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Divisi-in-just-one-measure-of-a-choir-score-tp173386p173393.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 \tempo command at the same time

2015-03-20 Thread Robert Schmaus
Well you *can* do that (and I've seen it done that way), but often - the music 
being improvised anyway - you don't really have a tempo indication, except for 
Swing, Med. Swing, Uptempo Swing, Ballad etc., and those are just suggestions 
or show how the piece was played in a referenced recording. That's, if we're 
talking about a lead sheet - look into a "Real Book" for examples.

If it's orchestral music (eg Big Band), the score probably contains more exact 
tempo values (which my Big Band conductor usually ignores ...). 



__

Don't ask me who's influenced me. A lion is made up of the lambs he's digested, 
and I've been reading all my life. 
-- Giorgos Seferis

> On 20 Mar 2015, at 14:55, Anton Curl  wrote:
> 
> I don't know much about jazz. It's not the kind of music I'm usually 
> typesetting.
> 
> I never saw a jazz lead sheet with swing written followed by the metronome 
> mark between brackets. If it's the policy, I can adopt it. But I'm curious to 
> see some examples of it.
> 
> Anton Curl
> 
>> On 20/03/2015 14:36, Robert Schmaus wrote:
>> If you're producing a jazz lead sheet (as the "swing" indicates), you're 
>> wrong. 
>> 
>> \tempo "Swing" 4=125
>> 
>> Merely indicates that the *style* is Swing while the tempo is 125. You could 
>> also write 
>> \tempo "Swing" 4=200
>> Which would indicate that this is a swing piece of tempo 200. 
>> 
>> Jazz tempo indications don't work like classical ones where a tempo name 
>> also implies a certain (narrow) range of bpm. 
>> 
>> Best, Rob 
>> 
>> __
>> 
>> Don't ask me who's influenced me. A lion is made up of the lambs 
>> he's digested, and I've been reading all my life. 
>> -- Giorgos Seferis
>> 
>> On 20 Mar 2015, at 10:03, Anton Curl  wrote:
>> 
>>> That's not exactly what I want.
>>> 
>>> "\tempo "Swing" 4=125" seems to mean "the tempo is Swing which correspond 
>>> to 4=125". Whereas what I want is 2 different independent indications. The 
>>> same result but without the parenthesis for example.
>>> 
>>> Maybe the \tempo command is not the command to use in this case. But I 
>>> didn't find another way to have an indication once in the score and in each 
>>> part.
>>> 
>>> Anton Curl
>>> 
 On 20/03/2015 09:36, Craig Dabelstein wrote:
 Hi Anton,
 
 Can't you do:
 
 \tempo "Swing" 4=125
 
 Or is that not what you are looking for?
 
 Craig
 
 
> On Fri, 20 Mar 2015 at 17:59 Anton Curl  wrote:
> Hi everyone!
> 
> I'd like to put an indication displayed in all the parts but only once
> in the score, like a tempo mark.
> 
> I found this syntax:
>\tempo \markup { "swing" }
> But at the same place in the score, I already have a \tempo command:
>\tempo 4=125
>\tempo \markup { "swing" }
>c
> 
> And Lilypond ignore the second.
> 
> What do I have to do to display both indications?
> 
> Thanks
> 
> Anton Curl
> 
> ___
> 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: Directional NoteHead Stencil Support

2015-03-20 Thread David Nalesnik
Hi,

On Fri, Mar 20, 2015 at 7:14 AM, Paul Morris  wrote:

> There's a snippet in the lsr for accessing grobs "laterally" from another
> grob's callback:
> http://lsr.di.unimi.it/LSR/Item?id=621
>
> ...like accessing the stem grob from a note head grob.  There's also one
> on showing "grob ancestry" that's helpful for this kind of thing.
>
>
This is a helpful snippet.

If you look at the various interface pages, under "Internal Properties" in
the Internals Reference, you'll find other grobs (single grobs or multiple
grobs stored in a "grob-array") that your grob stores pointers to, meaning
that you have easy access to the other object(s).  The grob NoteHead has
"rhythmic-head-interface" (see bottom of page at
http://lilypond.org/doc/v2.19/Documentation/internals/notehead).  Under the
Internals page for that interface
http://lilypond.org/doc/v2.19/Documentation/internals/rhythmic_002dhead_002dinterface
we find:

Internal properties:

dot (graphical (layout) object)

A reference to a Dots object.
stem (graphical (layout) object)

A pointer to a Stem object.


With ly:grob-object, we can get at either a Dot or a Stem.

So, with your function you could write:


#(define alt-notehead
   (lambda (grob)
 (let ((stem (ly:grob-object grob 'stem)))
   (if (ly:grob? stem) ;; perhaps unnecessary, but let's be safe
   (if (eq? (ly:grob-property stem 'direction) DOWN)
   (grob-interpret-markup grob stil)
   (grob-interpret-markup grob newstil))


Finding the path from one object to another is usually just a matter of
trial-and-error, following this path, following that path, until you reach
the pot of gold.

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


Re: 2 \tempo command at the same time

2015-03-20 Thread Anton Curl
In fact I'm transcribing a jazz song for classical musicians. There are 
tempo changes and also a passage without swing.


So I prefer to stay relatively accurate in the indications and avoid any 
confusion.


Anton Curl

On 20/03/2015 15:20, Robert Schmaus wrote:
Well you *can* do that (and I've seen it done that way), but often - 
the music being improvised anyway - you don't really have a tempo 
indication, except for Swing, Med. Swing, Uptempo Swing, Ballad etc., 
and those are just suggestions or show how the piece was played in a 
referenced recording. That's, if we're talking about a lead sheet - 
look into a "Real Book" for examples.


If it's orchestral music (eg Big Band), the score probably contains 
more exact tempo values (which my Big Band conductor usually ignores 
...).




__

Don't ask me who's influenced me. A lion is made up of the lambs he's 
digested, and I've been reading all my life.

-- /Giorgos Seferis/



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


Banjo tablature stem length for beamed stems?

2015-03-20 Thread holl...@hollandhopson.com
I’m working on some banjo tablature and I’d like to change the stem length for 
beamed stems when 2 non-adjacent strings are played together. I can use 
\override-s to lengthen and shift the stems of unbeamed notes. How can I change 
the length of beamed stems? It seems like beamed-lengths might hold the answer, 
but I haven’t figured out how to apply it or what the numbers mean. See the 
minimal example below. 
Thanks,
Holland 



\version "2.18.0"

\new TabStaff {
\set TabStaff.instrumentName = "Banjo"
\set TabStaff.tablatureFormat = #fret-number-tablature-format-banjo 
\set TabStaff.stringTunings = #banjo-open-g-tuning %gDGBD
\tabFullNotation
\numericTimeSignature
\clef moderntab
 \relative c'   {   
\time 4/4

g8   < g'\5 d >8 
%how can I make this stem longer, like the unbeamed stem after it?
   r2. |   
   
g,8  

 \once \override Stem.length = #12 % make the stem longer
  \once \override Stem.Y-offset = #7 % moves the stem up
  \once \override Stem.Y-extent = #'(-7.0 . 0.0)
%moves the flag to the end of the moved stem

  < g'\5 d >8 


  } % end of banjo notes
  } % end of banjo voice


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


Re: musicxml2ly

2015-03-20 Thread Knute Snortum
In DOS you can use this:

@echo off
setlocal enableDelayedExpansion

set MYDIR=C:\bin
for /F %%x in ('dir /B/D %MYDIR%') do (
  echo File: %%x
)



Knute Snortum
(via Gmail)

On Thu, Mar 19, 2015 at 1:18 PM, Urs Liska  wrote:

>
>
> Am 19.03.2015 um 21:14 schrieb Noeck:
>
>> Hi Craig,
>>
>> on which OS? On Linux (bash) you can do this:
>>
>> for f in folder/*.xml; do musicxml2ly $f; done
>>
>> where folder is your folder containing the xml files.
>>
>
> or simply
>
> for f in *.xml
> when you are already in the same folder.
> (I think this should equally work on a Mac).
>
> Urs
>
>
>  HTH,
>> Joram
>>
>>
>>  Is there a command for converting a whole folder of xml files to
>>> lilypond, rather than doing them one by one?
>>>
>> ___
>> 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: Directional NoteHead Stencil Support

2015-03-20 Thread David Nalesnik
Hi again,

On Fri, Mar 20, 2015 at 9:21 AM, David Nalesnik 
wrote:

>
>
> Finding the path from one object to another is usually just a matter of
> trial-and-error, following this path, following that path, until you reach
> the pot of gold.
>
>
You might find the attached file helpful.  Given a grob name, it will
output a list of each interface supported by the grob and the objects
accessible through those interfaces.   More information might be added--the
type (whether a single grob or a grob-array) and the documentation string
associated with it.

Hope this is helpful!
David
\version "2.19.16"

#(define (grob-interface::info iface)
   (hashq-get-handle (ly:all-grob-interfaces) iface))

#(define (grob-interface::properties ifaces)
   (if ifaces (cadddr ifaces) '()))

#(define (grob-interface::pointers iface)
   (let* ((info (grob-interface::info iface))
  (props (grob-interface::properties info)))
 (and (pair? props)
  (filter
   (lambda (prop)
 (let ((type (object-property prop 'backend-type?)))
   (or (eq? type ly:grob?)
   (eq? type ly:grob-array?
   props

#(define (grob::default-interfaces grob-name)
   (assoc-get 'interfaces
 (assoc-get 'meta
   (assoc-get grob-name all-grob-descriptions

#(define (grob::all-pointers grob-name)
   (let ((ifaces (grob::default-interfaces grob-name)))
 
 (define (entry iface)
   (let ((pointers (grob-interface::pointers iface)))
 (if (pair? pointers)
 (list (list iface (grob-interface::pointers iface)))
 '(
 
 (let loop ((ifaces ifaces) (result '()))
   (if (null? ifaces)
   result
   (loop (cdr ifaces)
 (append result (entry (car ifaces

#(define (display-pointers grob-name)
   (if (assoc-get grob-name all-grob-descriptions)
   (format #t "~%~y ~y~%"
 grob-name
 (grob::all-pointers grob-name))
   (ly:message "Not a grob name: ~a" grob-name)))

%%

#(display-pointers 'NoteHead)

#(display-pointers 'NoteColumn)

#(display-pointers 'Beam)
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Directional NoteHead Stencil Support

2015-03-20 Thread David Nalesnik
On Fri, Mar 20, 2015 at 12:03 PM, David Nalesnik 
wrote:

> Hi again,
>
> On Fri, Mar 20, 2015 at 9:21 AM, David Nalesnik 
> wrote:
>
>>
>>
>> Finding the path from one object to another is usually just a matter of
>> trial-and-error, following this path, following that path, until you reach
>> the pot of gold.
>>
>>
> You might find the attached file helpful.  Given a grob name, it will
> output a list of each interface supported by the grob and the objects
> accessible through those interfaces.
>

Each interface that includes pointers, that is.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


formatting meterless music

2015-03-20 Thread Michael Collins
Hello,

I'm working on a piece without barlines or a time signature.  The file is
attached below.  I have tried using the \cadenzaOn command, but this seems
to produce nice output only when I use a simple time signature (4/4) and
manually bar (|) the input.  Unfortunately, the rhythmic values I'm using
do not lend themselves to this approach.  The introduction of a couple 16th
notes shifts everything over and makes it impossible to divide things into
neat 4/4 bars.

My current solution modifies the layout's context block to completely
suppress barlines and time signatures.  However, since lilypond still
thinks I'm in 4/4, I'm getting ties across invisible barlines.  Also, since
all barlines are suppressed, I can't get a double bar line at the end.  Is
there any way around these problems?  Is there a way to produce meterless
music without the ghostly ties that still includes a double barline at the
end?

-Michael

​
 Oremus.ly

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


Re: formatting meterless music

2015-03-20 Thread Shane Brandes
Michael,

You cane use \cadenzaOn  and then group your eighth notes with [ ] e.g.
  deh,8[ deh,8] ees,4 geh,8[ deh,8 bes,8] ees,4 geh,8[ geh,8 c,8]

That should cause everything to work they way you are after and don't
bother to declare a time signature.

best of luck,
Shane

On Fri, Mar 20, 2015 at 1:18 PM, Michael Collins 
wrote:

> Hello,
>
> I'm working on a piece without barlines or a time signature.  The file is
> attached below.  I have tried using the \cadenzaOn command, but this seems
> to produce nice output only when I use a simple time signature (4/4) and
> manually bar (|) the input.  Unfortunately, the rhythmic values I'm using
> do not lend themselves to this approach.  The introduction of a couple 16th
> notes shifts everything over and makes it impossible to divide things into
> neat 4/4 bars.
>
> My current solution modifies the layout's context block to completely
> suppress barlines and time signatures.  However, since lilypond still
> thinks I'm in 4/4, I'm getting ties across invisible barlines.  Also, since
> all barlines are suppressed, I can't get a double bar line at the end.  Is
> there any way around these problems?  Is there a way to produce meterless
> music without the ghostly ties that still includes a double barline at the
> end?
>
> -Michael
>
> ​
>  Oremus.ly
> 
> ​
>
> ___
> 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: Directional NoteHead Stencil Support

2015-03-20 Thread David Nalesnik
On Fri, Mar 20, 2015 at 12:12 PM, David Nalesnik 
wrote:

>
>
> On Fri, Mar 20, 2015 at 12:03 PM, David Nalesnik  > wrote:
>
>> Hi again,
>>
>> On Fri, Mar 20, 2015 at 9:21 AM, David Nalesnik > > wrote:
>>
>>>
>>>
>>> Finding the path from one object to another is usually just a matter of
>>> trial-and-error, following this path, following that path, until you reach
>>> the pot of gold.
>>>
>>>
>> You might find the attached file helpful.  Given a grob name, it will
>> output a list of each interface supported by the grob and the objects
>> accessible through those interfaces.
>>
>
> Each interface that includes pointers, that is.
>

Probably this file will prove more useful as a hacking tool.  It will show
you how the different pointer properties are populated.

--David
\version "2.19.16"

#(define (grob-interface::info iface)
   (hashq-get-handle (ly:all-grob-interfaces) iface))

#(define (grob-interface::properties iface-info)
   (if iface-info (cadddr iface-info) '()))

#(define (grob-interface::pointers grob iface)
   (let* ((info (grob-interface::info iface))
  (props (grob-interface::properties info))
  (pointers
   (and (pair? props)
(filter
 (lambda (prop)
   (let ((type (object-property prop 'backend-type?)))
 (or (eq? type ly:grob?)
 (eq? type ly:grob-array?
 props
 (if pointers
 (map
  (lambda (p) (list p (ly:grob-object grob p)))
  pointers

#(define (grob::all-pointers grob)
   (let ((ifaces (ly:grob-interfaces grob)))
 
 (define (entry iface)
   (let ((pointers (grob-interface::pointers grob iface)))
 (if (pair? pointers)
 (list (list iface pointers))
 '(
 
 (let loop ((ifaces ifaces) (result '()))
   (if (null? ifaces)
   result
   (loop (cdr ifaces)
 (append result (entry (car ifaces

#(define (display-pointers grob)
   (format #t "~%~y ~y~%"
 (grob::name grob)
 (grob::all-pointers grob)))

%%

{
  \override NoteHead.after-line-breaking = #display-pointers
  \override Slur.after-line-breaking = #display-pointers
  cis''8.( c'!16)
}
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Directional NoteHead Stencil Support

2015-03-20 Thread Pierre Perol-Schneider
Dear Paul, Dear David,

Thank you very much for your kind help.
Lots of info! I'll study you links and codes during the WE.

Cheers,
Pierre

2015-03-20 19:52 GMT+01:00 David Nalesnik :

>
>
> On Fri, Mar 20, 2015 at 12:12 PM, David Nalesnik  > wrote:
>
>>
>>
>> On Fri, Mar 20, 2015 at 12:03 PM, David Nalesnik <
>> david.nales...@gmail.com> wrote:
>>
>>> Hi again,
>>>
>>> On Fri, Mar 20, 2015 at 9:21 AM, David Nalesnik <
>>> david.nales...@gmail.com> wrote:
>>>


 Finding the path from one object to another is usually just a matter of
 trial-and-error, following this path, following that path, until you reach
 the pot of gold.


>>> You might find the attached file helpful.  Given a grob name, it will
>>> output a list of each interface supported by the grob and the objects
>>> accessible through those interfaces.
>>>
>>
>> Each interface that includes pointers, that is.
>>
>
> Probably this file will prove more useful as a hacking tool.  It will show
> you how the different pointer properties are populated.
>
> --David
>
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


beginner score error

2015-03-20 Thread Steven Arntson
I'm trying to create a simple score with voice/lyrics and piano. I'm
basing it on a snippet I found in Frescobaldi, but entering things
myself with a few differences, as a learning exercise. The error I get
in the \score block when I engrave is:

| syntax error, unexpected \lyricsto, expecting SCM_IDENTIFIER or
| SCM_TOKEN or STRING \new Lyrics = \lyricsto mel \text

Here's the working example:

\version "2.19.12"
\language "english"

% variables
global = {
  \key e \minor
  \time 2/2
  \tempo 4 = 120
}
  
melody = \relative c' {
  \global
  \clef bass
  a2 b2 |
}

text = \lyricmode {
  hel -- lo |
}

chordsymbols = \chordmode {
  % chords here
}

upper = \relative c'' {
  \global
  \clef treble
  a2 b2 |
}

lower = \relative c {
  \global
  \clef bass
  a2 b2 |
}

\score {
  <<
\new Voice = "mel" { \autoBeamOff \melody }
\new Lyrics = \lyricsto mel \text
\new ChordNames = "chordsymbols"
\new PianoStaff <<
  \new Staff = "upper" \upper
  \new Staff = "lower" \lower
>>
  >>
  \layout {
\context {}
  }
  \midi {}
}


Thank you,
steven arntson


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


Re: beginner score error

2015-03-20 Thread tisimst
Steven,

The lyrics line should read "\new Lyrics \lyricsto mel \text", without 
the "=".

- Abraham

On Fri, Mar 20, 2015 at 1:30 PM, Steven Arntson [via Lilypond] 
 wrote:
> I'm trying to create a simple score with voice/lyrics and piano. I'm 
> basing it on a snippet I found in Frescobaldi, but entering things 
> myself with a few differences, as a learning exercise. The error I 
> get 
> in the \score block when I engrave is: 
> 
> | syntax error, unexpected \lyricsto, expecting SCM_IDENTIFIER or 
> | SCM_TOKEN or STRING \new Lyrics = \lyricsto mel \text 
> 
> Here's the working example: 
> 
> \version "2.19.12" 
> \language "english" 
> 
> % variables 
> global = { 
>   \key e \minor 
>   \time 2/2 
>   \tempo 4 = 120 
> } 
>   
> melody = \relative c' { 
>   \global 
>   \clef bass 
>   a2 b2 | 
> } 
> 
> text = \lyricmode { 
>   hel -- lo | 
> } 
> 
> chordsymbols = \chordmode { 
>   % chords here 
> } 
> 
> upper = \relative c'' { 
>   \global 
>   \clef treble 
>   a2 b2 | 
> } 
> 
> lower = \relative c { 
>   \global 
>   \clef bass 
>   a2 b2 | 
> } 
> 
> \score { 
>   << 
> \new Voice = "mel" { \autoBeamOff \melody } 
> \new Lyrics = \lyricsto mel \text 
> \new ChordNames = "chordsymbols" 
> \new PianoStaff << 
>   \new Staff = "upper" \upper 
>   \new Staff = "lower" \lower 
> >> 
>   >> 
>   \layout { 
> \context {} 
>   } 
>   \midi {} 
> } 
> 
> 
> Thank you, 
> steven arntson 
> 
> 
> ___ 
> lilypond-user mailing list 
> [hidden email] 
> https://lists.gnu.org/mailman/listinfo/lilypond-user
> 
> 
> If you reply to this email, your message will be added to the 
> discussion below:
> http://lilypond.1069038.n5.nabble.com/beginner-score-error-tp173405.html
> To start a new topic under User, email 
> ml-node+s1069038n...@n5.nabble.com 
> To unsubscribe from Lilypond, click here.
> NAML




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/beginner-score-error-tp173405p173406.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: beginner score error

2015-03-20 Thread Steven Arntson
That solved it---thank you!

tisimst  writes:

> Steven,
>
> The lyrics line should read "\new Lyrics \lyricsto mel \text", without
> the "=".
>
> - Abraham
>
> On Fri, Mar 20, 2015 at 1:30 PM, Steven Arntson [via Lilypond] <
> [hidden email]> wrote:
>
> I'm trying to create a simple score with voice/lyrics and piano.
> I'm 
> basing it on a snippet I found in Frescobaldi, but entering things 
> myself with a few differences, as a learning exercise. The error I
> get 
> in the \score block when I engrave is: 
> 
> | syntax error, unexpected \lyricsto, expecting SCM_IDENTIFIER or 
> | SCM_TOKEN or STRING \new Lyrics = \lyricsto mel \text 
> 
> Here's the working example: 
> 
> \version "2.19.12" 
> \language "english" 
> 
> % variables 
> global = { 
> \key e \minor 
> \time 2/2 
> \tempo 4 = 120 
> } 
> 
> melody = \relative c' { 
> \global 
> \clef bass 
> a2 b2 | 
> } 
> 
> text = \lyricmode { 
> hel -- lo | 
> } 
> 
> chordsymbols = \chordmode { 
> % chords here 
> } 
> 
> upper = \relative c'' { 
> \global 
> \clef treble 
> a2 b2 | 
> } 
> 
> lower = \relative c { 
> \global 
> \clef bass 
> a2 b2 | 
> } 
> 
> \score { 
> << 
> \new Voice = "mel" { \autoBeamOff \melody } 
> \new Lyrics = \lyricsto mel \text 
> \new ChordNames = "chordsymbols" 
> \new PianoStaff << 
> \new Staff = "upper" \upper 
> \new Staff = "lower" \lower 
> >> 
> >> 
> \layout { 
> \context {} 
> } 
> \midi {} 
> } 
> 
> 
> Thank you, 
> steven arntson 
> 
> 
> ___ 
> lilypond-user mailing list 
> [hidden email] 
> https://lists.gnu.org/mailman/listinfo/lilypond-user
> 
> 
> 
> --
> 
> If you reply to this email, your message will be added to the
> discussion below:
> http://lilypond.1069038.n5.nabble.com/beginner-score-error-tp173405.html
>
> To start a new topic under User, email [hidden email] 
> To unsubscribe from Lilypond, click here.
> NAML 
>
> --
> View this message in context: Re: beginner score error
> 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


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


Re: Banjo tablature stem length for beamed stems?

2015-03-20 Thread Kevin Barry
Hi Holland,

When stems are beamed their lengths are controlled by the Beam's 'positions
property, so something like

\once \override Beam.positions = #'(-5 . -5)

before the first beamed note will change the length of the stems (choose
the values you want).

hth,
Kevin

On Fri, Mar 20, 2015 at 4:21 PM, holl...@hollandhopson.com <
holl...@hollandhopson.com> wrote:

> I’m working on some banjo tablature and I’d like to change the stem length
> for beamed stems when 2 non-adjacent strings are played together. I can use
> \override-s to lengthen and shift the stems of unbeamed notes. How can I
> change the length of beamed stems? It seems like beamed-lengths might hold
> the answer, but I haven’t figured out how to apply it or what the numbers
> mean. See the minimal example below.
> Thanks,
> Holland
>
> 
>
> \version "2.18.0"
>
> \new TabStaff {
> \set TabStaff.instrumentName = "Banjo"
> \set TabStaff.tablatureFormat = #fret-number-tablature-format-banjo
> \set TabStaff.stringTunings = #banjo-open-g-tuning %gDGBD
> \tabFullNotation
> \numericTimeSignature
> \clef moderntab
>  \relative c'   {
> \time 4/4
>
> g8   < g'\5 d >8
> %how can I make this stem longer, like the unbeamed stem after it?
>r2. |
>
> g,8
>
>  \once \override Stem.length = #12 % make the stem longer
>   \once \override Stem.Y-offset = #7 % moves the stem up
>   \once \override Stem.Y-extent = #'(-7.0 . 0.0)
> %moves the flag to the end of the moved stem
>
>   < g'\5 d >8
>
>
>   } % end of banjo notes
>   } % end of banjo voice
>
>
> ___
> 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: Directional NoteHead Stencil Support

2015-03-20 Thread tisimst
David, Paul, and Pierre,

It will take me a short while to digest what you have shared with me, 
but thank you for sharing your knowledge concerning this matter. I'll 
contact you again if I do or don't figure out how to do what I need.

Regards,
Abraham

On Fri, Mar 20, 2015 at 1:06 PM, Schneidy [via Lilypond] 
 wrote:
> Dear Paul, Dear David,
> 
> Thank you very much for your kind help.
> Lots of info! I'll study you links and codes during the WE.
> 
> Cheers,
> Pierre
> 
> 2015-03-20 19:52 GMT+01:00 David Nalesnik <[hidden email]>:
>> 
>> 
>> On Fri, Mar 20, 2015 at 12:12 PM, David Nalesnik <[hidden email]> 
>> wrote:
>>> 
>>> 
>>> On Fri, Mar 20, 2015 at 12:03 PM, David Nalesnik <[hidden email]> 
>>> wrote:
 Hi again,
 
 On Fri, Mar 20, 2015 at 9:21 AM, David Nalesnik <[hidden email]> 
 wrote:
> 
> 
> Finding the path from one object to another is usually just a 
> matter of trial-and-error, following this path, following that 
> path, until you reach the pot of gold.
> 
 
 You might find the attached file helpful.  Given a grob name, it 
 will output a list of each interface supported by the grob and the 
 objects accessible through those interfaces. 
>>> 
>>> Each interface that includes pointers, that is. 
>> 
>> Probably this file will prove more useful as a hacking tool.  It 
>> will show you how the different pointer properties are populated.
>> 
>> --David 
>> 
>> 
>> ___
>> lilypond-user mailing list
>> [hidden email]
>> https://lists.gnu.org/mailman/listinfo/lilypond-user
>> 
> 
> 
> ___ 
> lilypond-user mailing list 
> [hidden email] 
> https://lists.gnu.org/mailman/listinfo/lilypond-user
> ~Pierre
> 
> 
> If you reply to this email, your message will be added to the 
> discussion below:
> http://lilypond.1069038.n5.nabble.com/Directional-NoteHead-Stencil-Support-tp173361p173404.html
> To start a new topic under User, email 
> ml-node+s1069038n...@n5.nabble.com 
> To unsubscribe from Lilypond, click here.
> NAML




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Directional-NoteHead-Stencil-Support-tp173361p173409.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: formatting meterless music

2015-03-20 Thread Kevin Barry
Hi Michael,

I have a few suggestions based on my own experience, but there are probably
a few ways to approach the problem.

I would recommend that you create a global variable for controlling the
timing in the piece. It need only contain spacer rests, and potential line
breaks (marked by \bar "", which will tell LilyPond that a line break is
possible here with \cadenzaOn). You should identify _all_ the possible
places LilyPond might break your piece up into lines (and then it will pick
the best ones). At a glance it's not really clear to me what would work for
your piece but I made an example just to show what I mean.

About bar lines: if you remove the engraver then you will not be able to
add bar lines at the end. Although I'm not sure why you need this (since
the cadenza mode doesn't print them) what I imagine you should do is simply
remove the stencil at the beginning with \override Staff.BarLine.stencil =
##f, and then at the end when you need a double bar just revert the
override with \revert Staff.BarLine.stencil.

Here is your code with my additions (including the very long lines, which
is how it pasted into my editor):

\version "2.18.2"

%% This variable controls the timing and line breaks
global = {
  \override Staff.TimeSignature.stencil = ##f
  \cadenzaOn
  % \bar "" will tell LilyPond that it's acceptable to break the line at a
given point
  s2. \bar "" s4 \bar "" s2. \bar "" s \bar "" s4 \bar "" s2. \bar "" s
\bar "" s4 \bar "" s2. \bar "" s \bar "" s4 \bar "" s2. \bar ""
}


\header {
  title = "Oremus"
  tagline = ""
}

\new GregorianTranscriptionStaff
\with {
  \remove "Time_signature_engraver"
}
{
  aeh'4 bes' c'' deh'' ees'' f'' geh''
}

voiceA = {
  \clef treble
  \cadenzaOn
  \accidentalStyle dodecaphonic
  2. 4 2. 2. 4
2. 2. 4 2. 2. 4 2. \bar "|."
}

voiceB = {
  \clef bass
  \cadenzaOn
  \accidentalStyle dodecaphonic
  deh,8[ deh,8] ees,4 geh,8[ deh,8 bes,8] ees,4 geh,8[ geh,8 c,8] ees,4
geh,8[ f,8 bes,8] r4 r16 deh,8[ deh,8 deh,8] ees,4 deh,8[ bes,8 f,8 geh,8]
ees,4 deh,8[ geh,8 geh,8 aeh,8 deh,8 geh,8] r4 r16 deh,8[ deh,8] ees,4
geh,8[ deh,8 bes,8] ees,4 geh,8[ geh,8 c,8] ees,4 geh,8[ f,8 bes,8] \bar
"|."
}

\addlyrics {
  Om- \skip 1  ah- \skip 1 mi- \skip 1 dhe- \skip 1 \skip 1 wa- \skip 1
hri- \skip 1 \skip 1 Om- \skip 1 ma- \skip 1 ni \skip 1 ped- \skip 1 \skip
1 me- \skip 1 hung- \skip 1 \skip 1 \skip 1 Om- \skip 1  ah- \skip 1 mi-
\skip 1 dhe- \skip 1 \skip 1 wa- \skip 1 hri-
}

\score {
  \new GrandStaff <<
\new Staff = voiceA <<
  \global
  \voiceA
>>
\new Staff = voiceB <<
  \global
  \voiceB
>>
  >>
  \layout { }
  \midi { }
}


On Fri, Mar 20, 2015 at 6:28 PM, Shane Brandes  wrote:

> Michael,
>
> You cane use \cadenzaOn  and then group your eighth notes with [ ] e.g.
>   deh,8[ deh,8] ees,4 geh,8[ deh,8 bes,8] ees,4 geh,8[ geh,8 c,8]
>
> That should cause everything to work they way you are after and don't
> bother to declare a time signature.
>
> best of luck,
> Shane
>
> On Fri, Mar 20, 2015 at 1:18 PM, Michael Collins 
> wrote:
>
>> Hello,
>>
>> I'm working on a piece without barlines or a time signature.  The file is
>> attached below.  I have tried using the \cadenzaOn command, but this seems
>> to produce nice output only when I use a simple time signature (4/4) and
>> manually bar (|) the input.  Unfortunately, the rhythmic values I'm using
>> do not lend themselves to this approach.  The introduction of a couple 16th
>> notes shifts everything over and makes it impossible to divide things into
>> neat 4/4 bars.
>>
>> My current solution modifies the layout's context block to completely
>> suppress barlines and time signatures.  However, since lilypond still
>> thinks I'm in 4/4, I'm getting ties across invisible barlines.  Also, since
>> all barlines are suppressed, I can't get a double bar line at the end.  Is
>> there any way around these problems?  Is there a way to produce meterless
>> music without the ghostly ties that still includes a double barline at the
>> end?
>>
>> -Michael
>>
>> ​
>>  Oremus.ly
>> 
>> ​
>>
>> ___
>> 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


formatting meterless music

2015-03-20 Thread Michael Collins
Hello,

I'm working on a piece without barlines or a time signature.  The file is
attached below.  I have tried using the \cadenzaOn command, but this seems
to produce nice output only when I use a simple time signature (4/4) and
manually bar (|) the input.  Unfortunately, the rhythmic values I'm using
do not lend themselves to this approach.  The introduction of a couple 16th
notes shifts everything over and makes it impossible to divide things into
neat 4/4 bars.

My current solution modifies the layout's context block to completely
suppress barlines and time signatures.  However, since lilypond still
thinks I'm in 4/4, I'm getting ties across invisible barlines.  Also, since
all barlines are suppressed, I can't get a double bar line at the end.  Is
there any way around these problems?  Is there an elegant way to produce
meterless music without ties that still includes a double barline at the
end?
​
 Oremus.ly

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


Re: Banjo tablature stem length for beamed stems?

2015-03-20 Thread holl...@hollandhopson.com
Thanks Kevin,
Beam.positions definitely changes the slope of the beam, and the stem length 
adjusts accordingly. But it always terminates at the 5th string location 
(bottom line of the staff). I’d still like to find a way to extend it all the 
way to the first string position (top line of the staff). Any other suggestions?
Holland 

> On Mar 20, 2015, at 2:58 PM, Kevin Barry  wrote:
> 
> Hi Holland,
> 
> When stems are beamed their lengths are controlled by the Beam's 'positions 
> property, so something like
> 
> \once \override Beam.positions = #'(-5 . -5)
> 
> before the first beamed note will change the length of the stems (choose the 
> values you want).
> 
> hth,
> Kevin
> 
> On Fri, Mar 20, 2015 at 4:21 PM, holl...@hollandhopson.com 
>   > wrote:
> I’m working on some banjo tablature and I’d like to change the stem length 
> for beamed stems when 2 non-adjacent strings are played together. I can use 
> \override-s to lengthen and shift the stems of unbeamed notes. How can I 
> change the length of beamed stems? It seems like beamed-lengths might hold 
> the answer, but I haven’t figured out how to apply it or what the numbers 
> mean. See the minimal example below.
> Thanks,
> Holland
> 
> 
> 
> \version "2.18.0"
> 
> \new TabStaff {
> \set TabStaff.instrumentName = "Banjo"
> \set TabStaff.tablatureFormat = #fret-number-tablature-format-banjo
> \set TabStaff.stringTunings = #banjo-open-g-tuning %gDGBD
> \tabFullNotation
> \numericTimeSignature
> \clef moderntab
>  \relative c'   {
> \time 4/4
> 
> g8   < g'\5 d >8
> %how can I make this stem longer, like the unbeamed stem after it?
>r2. |
> 
> g,8
> 
>  \once \override Stem.length = #12 % make the stem longer
>   \once \override Stem.Y-offset = #7 % moves the stem up
>   \once \override Stem.Y-extent = #'(-7.0 . 0.0)
> %moves the flag to the end of the moved stem
> 
>   < g'\5 d >8
> 
> 
>   } % end of banjo notes
>   } % end of banjo voice
> 
> 
> ___
> 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: Banjo tablature stem length for beamed stems?

2015-03-20 Thread Kevin Barry
On Fri, Mar 20, 2015 at 10:14 PM, holl...@hollandhopson.com <
holl...@hollandhopson.com> wrote:

> I’d still like to find a way to extend it all the way to the first string
> position (top line of the staff). Any other suggestions?


Did you try different values for the Beam.positions? 0 is the center line
of the staff, with positive values above and negative values below. Or am I
misunderstanding?
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Banjo tablature stem length for beamed stems?

2015-03-20 Thread Noeck
Hi Holland,

this is perhaps a bit closer to what you want:


\version "2.18.0"

longStem = {
\once \override Stem.Y-offset = 6
\once \override Stem.Y-extent = #'(-7.0 . 0.0)
\once \override Stem.length = 12
\once \override Stem.layer = -2
}

\new TabStaff {
  \set TabStaff.instrumentName = "Banjo"
  \set TabStaff.tablatureFormat = #fret-number-tablature-format-banjo
  \set TabStaff.stringTunings = #banjo-open-g-tuning %gDGBD
  \tabFullNotation
  \numericTimeSignature
  \clef moderntab
  \relative c'   {
\time 4/4

\once \override Beam.positions = #'(-5 . -5)
g8
\longStem
< g'\5 d >8 r2. |g,8


%moves the flag to the end of the moved stem
\longStem
< g'\5 d >8


  } % end of banjo notes
} % end of banjo voice


But it is still not automatic.

Best,
Joram

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


Re: Directional NoteHead Stencil Support

2015-03-20 Thread Thomas Morley
2015-03-20 18:03 GMT+01:00 David Nalesnik :
>
> Hi again,
>
> On Fri, Mar 20, 2015 at 9:21 AM, David Nalesnik  
> wrote:
>>
>>
>>
>> Finding the path from one object to another is usually just a matter of 
>> trial-and-error, following this path, following that path, until you reach 
>> the pot of gold.
>>
>
> You might find the attached file helpful.  Given a grob name, it will output 
> a list of each interface supported by the grob and the objects accessible 
> through those interfaces.   More information might be added--the type 
> (whether a single grob or a grob-array) and the documentation string 
> associated with it.
>
> Hope this is helpful!
> David


Hi David,

thanks a lot for this

Finally my question
http://lists.gnu.org/archive/html/lilypond-user/2014-03/msg00393.html
is answered:

\relative c'{
\override NoteColumn.after-line-breaking =
#(lambda (grob)
  (display
(ly:grob-object grob 'conditional-elements)
))
\arpeggio
}

The 'arpeggio-property was deleted somewhere during 2.17. and I never
managed to get back the info whether a NoteColumn has an arpeggio,

Again, thanks tons!!!

Btw, the IR stating:

  conditional-elements (array of grobs)
  Internal use only.

is a joke.


Additionally the already mentioned LSR-snippet
http://lsr.di.unimi.it/LSR/Item?id=621
doesn't put out arpeggio-info any more and should be changed accordingly.


Cheers,
  Harm

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


Re: Banjo tablature stem length for beamed stems?

2015-03-20 Thread Thomas Morley
2015-03-20 17:21 GMT+01:00 holl...@hollandhopson.com
:
> I’m working on some banjo tablature and I’d like to change the stem length 
> for beamed stems when 2 non-adjacent strings are played together. I can use 
> \override-s to lengthen and shift the stems of unbeamed notes. How can I 
> change the length of beamed stems? It seems like beamed-lengths might hold 
> the answer, but I haven’t figured out how to apply it or what the numbers 
> mean. See the minimal example below.
> Thanks,
> Holland
>
> 
>
> \version "2.18.0"
>
> \new TabStaff {
> \set TabStaff.instrumentName = "Banjo"
> \set TabStaff.tablatureFormat = #fret-number-tablature-format-banjo
> \set TabStaff.stringTunings = #banjo-open-g-tuning %gDGBD
> \tabFullNotation
> \numericTimeSignature
> \clef moderntab
>  \relative c'   {
> \time 4/4
>
> g8   < g'\5 d >8
> %how can I make this stem longer, like the unbeamed stem after it?
>r2. |
>
> g,8
>
>  \once \override Stem.length = #12 % make the stem longer
>   \once \override Stem.Y-offset = #7 % moves the stem up
>   \once \override Stem.Y-extent = #'(-7.0 . 0.0)
> %moves the flag to the end of the moved stem
>
>   < g'\5 d >8
>
>
>   } % end of banjo notes
>   } % end of banjo voice
>
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user

How about my coding here:
http://lilypond.1069038.n5.nabble.com/Stem-length-at-a-fixed-height-td172661.html#a172677

Cheers,
  Harm

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


Re: Directional NoteHead Stencil Support

2015-03-20 Thread Thomas Morley
2015-03-21 0:09 GMT+01:00 Thomas Morley :

>
> The 'arpeggio-property was deleted somewhere during 2.17. and I never
> managed to get back the info whether a NoteColumn has an arpeggio,

Btw, I tried again to find the commit on the tracker which removed the
'arpeggio-property (and probably the reason for it) and again without
success.

-Harm

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


Manual "gotcha": beatStructure

2015-03-20 Thread James Harkins
I just got slightly confused trying to use beatStructure, and a small edit to 
the manual might help.

\version "2.18.2"
\language "english"

five = {
  \set Timing.beatStructure = #'(3 2)
  \time 5/8
}

seven = {
  \set Timing.beatStructure = #'(3 2 2)
  \time 7/8
}

\new RhythmicStaff {
  % \set Timing.beamExceptions = #'()
  \set Timing.baseMoment = #(ly:make-moment 1/8)
  \seven b8 b b b b b b
  \five b8 b b b b
}

The 7/8 bar shows with flags, not beams.

I think it must be that the variable implicitly creates a separate voice, and 
the beatStructure applies only within the voice. Replacing "Timing" with 
"Staff" fixes it.

I don't see it mentioned in the manual that, if you \set Timing.beatStructure, 
this must be in the same context where you write the notes. The manual says 
"Beam setting changes can be limited to specific contexts," but it doesn't say 
that they ARE limited to the nearest enclosing context if you follow the syntax 
in most of the examples (using Timing).

hjh



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