RE: Why is there no auto beaming in temporary polyphony?

2018-04-10 Thread Mark Stephen Mrotek
Carl,
Welcome, any time!
Mark

-Original Message-
From: Carl Sorensen [mailto:c_soren...@byu.edu] 
Sent: Tuesday, April 10, 2018 7:37 PM
To: Mark Stephen Mrotek ; lilypond-user@gnu.org
Subject: Re: Why is there no auto beaming in temporary polyphony?



On 4/10/18, 8:10 PM, "Mark Stephen Mrotek"  wrote:
I have no explanation, just a solution

\version "2.19"

  \new Staff = "right"{
\clef treble
<<{e''8 f''  s4} \\ {a'4 b'4} >>   c'' b' |
\voiceOne 
e''8 f'' b'4 c'' b'
  }

Mark

Oh, now I remember.

The voice ends before the autobeam ends (because the autobeam is going to go 
clear to the end of beat 2).  And when that happens, the autobeam is not 
created.  It's a known issue.

Thanks for helping me remember, Mark.

Carl
 



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


Re: Why is there no auto beaming in temporary polyphony?

2018-04-10 Thread Carl Sorensen


On 4/10/18, 8:10 PM, "Mark Stephen Mrotek"  wrote:
I have no explanation, just a solution

\version "2.19"

  \new Staff = "right"{
\clef treble
<<{e''8 f''  s4} \\ {a'4 b'4} >>   c'' b' |
\voiceOne 
e''8 f'' b'4 c'' b'
  }

Mark

Oh, now I remember.

The voice ends before the autobeam ends (because the autobeam is going to go 
clear to the end of beat 2).  And when that happens, the autobeam is not 
created.  It's a known issue.

Thanks for helping me remember, Mark.

Carl
 

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


RE: Why is there no auto beaming in temporary polyphony?

2018-04-10 Thread Mark Stephen Mrotek
Carl,

I have no explanation, just a solution

\version "2.19"

  \new Staff = "right"{
\clef treble
<<{e''8 f''  s4} \\ {a'4 b'4} >>   c'' b' |
\voiceOne 
e''8 f'' b'4 c'' b'
  }

Mark

-Original Message-
From: lilypond-user
[mailto:lilypond-user-bounces+carsonmark=ca.rr@gnu.org] On Behalf Of
Carl Sorensen
Sent: Tuesday, April 10, 2018 6:46 PM
To: lilypond-user@gnu.org
Subject: Why is there no auto beaming in temporary polyphony?

< I'm not top posting

When I use temporary polyphony with the double backslash construct,
autobeaming is not working for me.

%%%
\version "2.19"

  \new Staff = "right"{
\clef treble
<<{e''8 f''} \\ {a'4} >>  b'4 c'' b' |
\voiceOne 
e''8 f'' b'4 c'' b'
  }

%% 

I thought that the first voice in the double backslash construct got set as
\voiceOne, but somehow in this example autobeaming doesn't work in the first
measure, even though it does in the second measure.

I'm using Frescobaldi on OSX, Lilypond version 2.19.80.

Any ideas?

Thanks,

Carl


___
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


Why is there no auto beaming in temporary polyphony?

2018-04-10 Thread Carl Sorensen
< I'm not top posting

When I use temporary polyphony with the double backslash construct, autobeaming 
is not working for me.

%%%
\version "2.19"

  \new Staff = "right"{
\clef treble
<<{e''8 f''} \\ {a'4} >>  b'4 c'' b' |
\voiceOne 
e''8 f'' b'4 c'' b'
  }

%% 

I thought that the first voice in the double backslash construct got set as 
\voiceOne, but somehow in this example autobeaming doesn't work in the first 
measure, even though it does in the second measure.

I'm using Frescobaldi on OSX, Lilypond version 2.19.80.

Any ideas?

Thanks,

Carl


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


Re: The search for an API

2018-04-10 Thread Vaughan McAlley
On Wed, 11 Apr 2018, 08:17 Felix D.,  wrote:

> Hello Lilypond-Fans,
>
> I have a question: Does Lilypond have an API that can be simply called
> from other programs to render some markup (stored as a string) into a SVG
> file?
>
> We want to use Lilypond in an Unity app/game, wich will be used by many
> musicians and thus requires some decent staff rendering. We basically
> program in C#, but there is an easy bridge to interface with C/C++
> libraries. So calling an API should not be a huge problem, but does it even
> exist and is documented somewhere?
>
> I asked in the IRC a few hors ago, and received a brief "No, it doesn't
> exist". Bit is that really the abrupt end of the story, or is there some
> other possibility to call Lilypond from an external program?
>
> Cheers
> Felix D.
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user


Lilypond only has one "function", so you would be well on the way to
turning it into a library by renaming main() ;-)

Vaughan


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


Re: The search for an API

2018-04-10 Thread Carl Sorensen
From: "Felix D." 
Date: Tuesday, April 10, 2018 at 3:42 PM
To: 
Subject: The search for an API

Hello Lilypond-Fans,

I have a question: Does Lilypond have an API that can be simply called from 
other programs to render some markup (stored as a string) into a SVG file?

We want to use Lilypond in an Unity app/game, wich will be used by many 
musicians and thus requires some decent staff rendering. We basically program 
in C#, but there is an easy bridge to interface with C/C++ libraries. So 
calling an API should not be a huge problem, but does it even exist and is 
documented somewhere?

I asked in the IRC a few hors ago, and received a brief "No, it doesn't exist". 
Bit is that really the abrupt end of the story, or is there some other 
possibility to call Lilypond from an external program?

Lilypond does not have an API.

It is possible to call LilyPond from an external program using a shell command, 
because LilyPond has a command-line interface.

Look at the Lilypond Usage manual for information on command-line options. 
http://lilypond.org/doc/v2.18/Documentation/usage/command_002dline-usage

It will produce an svg file that you can then display.

HTH,

Carl

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


Re: Scordatura question

2018-04-10 Thread Ralph Palmer
Old Time fiddler's and Mozart have been known to use scordatura. I'm
currently away from my computer and my music, but I believe the original
viola part for the Mozart violin/viola concerto was in scordatura. Not
complicated, just up a half tone, and Mozart wrote the part the way it was
to be fingered (i.e., play it like it looks, and it'll sound right). I hope
that makes sense.

When Ruth Porter Crawford was doing transcriptions for "America Sings", and
she transcribed William Stepp's "Bonaparte's Retreat", she transcribed it
twice: once as it sounds, and once as fingered (in Stepp's tuning) as if
the fiddle was tuned "normally". Make sense? (Aaron Copland later lifted
Stepp's version note for note, without, as far as I know, giving Stepp any
credit.)

Hope this helps,

Ralph

Ralph Palmer
Brattleboro, VT, USA
palmer.r.vio...@gmail.com

On Tue, Apr 10, 2018, 4:10 PM Menu Jacques  wrote:

> Hello folks,
>
> String instruments sometimes use scordaturas: I’ve wondered how this is
> noted in modern scores, but couldn't find examples on the Internet.
>
> Can anyone give pointers to actual scores showing that?
>
> Thanks!
>
> JM
>
>
> ___
> 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: Scordatura question

2018-04-10 Thread Vaughan McAlley
On Wed, 11 Apr 2018, 09:47 Vaughan McAlley,  wrote:

> On Wed, 11 Apr 2018, 07:10 Menu Jacques,  wrote:
>
>> Hello folks,
>>
>> String instruments sometimes use scordaturas: I’ve wondered how this is
>> noted in modern scores, but couldn't find examples on the Internet.
>>
>> Can anyone give pointers to actual scores showing that?
>>
>> Thanks!
>>
>> JM
>>
>>
>> ___
>> lilypond-user mailing list
>> lilypond-user@gnu.org
>> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
>
> Do you mean modern scores of old music?
>
>
> https://www.google.com.au/search?q=bach+cello+suite+5+sheet+music=tablet-android-google=ivsn=lnms=isch=X=0ahUKEwi6hKnI7rDaAhUJi7wKHdYiDXAQ_AUIESgB=600=960
>
> I like the one with both performed and sounding staves. The performer has
> to deal with the notes sounding wrong or working out new fingerings from a
> sounding score. You might as well give them the choice.
>
> Vaughan
>

Ugh, the link didn't copy properly. Google an image search of Bach cello
suite 5...


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


Re: Scordatura question

2018-04-10 Thread Vaughan McAlley
On Wed, 11 Apr 2018, 07:10 Menu Jacques,  wrote:

> Hello folks,
>
> String instruments sometimes use scordaturas: I’ve wondered how this is
> noted in modern scores, but couldn't find examples on the Internet.
>
> Can anyone give pointers to actual scores showing that?
>
> Thanks!
>
> JM
>
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user


Do you mean modern scores of old music?

https://www.google.com.au/search?q=bach+cello+suite+5+sheet+music=tablet-android-google=ivsn=lnms=isch=X=0ahUKEwi6hKnI7rDaAhUJi7wKHdYiDXAQ_AUIESgB=600=960

I like the one with both performed and sounding staves. The performer has
to deal with the notes sounding wrong or working out new fingerings from a
sounding score. You might as well give them the choice.

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


Re: Is it right how oneVoice reverts direction settings?

2018-04-10 Thread Thomas Morley
2018-04-10 22:45 GMT+02:00 Simon Albrecht :
> Hello everybody,
>
> suppose I want to globally override the direction of slurs, as far as
> neutral voices go. If I do this:
>
> %%% \version "2.19.80" \layout {   \context { \Voice
> \override Slur.direction = #UP   } } music = { c'( d' e' f') } {   \music
> \voiceTwo   \music   \oneVoice   \music } 
>
> then in bar 3 the slur will go below the notes, i.e. \oneVoice reverted the
> direction without knowing that an override was in effect.
>
> I’d love to be able to redefine \voiceTwo & Co. such as to imply \temporary,
> but that’s not currently possible:
>
> warning: Cannot make PropertySet revertible.
>
> Does anybody have an idea for another solution?
>
> Best, Simon


\voiceXxx contain
\set Voice.graceSettings = ...

Setting a context-property revertible is not yet possible. All other
settings are overrides, so probably below may work.
Please be aware it's not tested beyond the given example!

foo =
#(define-music-function (mus)(ly:music?)
 (music-map
   (lambda (m)
 (if (music-is-of-type? m 'override-property-event)
 (begin
   (ly:music-set-property! m 'pop-first '())
   m)
 m))
   mus))

myVoiceOne = \foo \voiceOne
myVoiceTwo = \foo \voiceTwo
myVoiceThree = \foo \voiceThree
myVoiceFour = \foo \voiceFour

music = { c'4(-^ d'-1\startTrillSpan e' f'\stopTrillSpan) }


\markup \box \fill-line { "DEFAULT \\voiceXxx" }
{
  \music
  \voiceTwo
  \music
  \oneVoice
  \music
}

\markup \box \fill-line { "Custom \\voiceXxx" }

{
  \music
  \myVoiceTwo
  \music
  \oneVoice
  \music
}


Cheers,
  Harm

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


Transposing figured bass

2018-04-10 Thread Jérôme Plût

So I want to transpose figured bass.

Of course this is complicated, because the correct way to transpose
depends on the bass note; for instance, transposing a root-position C
minor chord (written, with no key signature, as <_-> on the bass c) up
by a natural 2nd gives a D minor chord (now written, with key
signature ♯♯,  as <_=>).

This is conceptually simple (the algorithm is essentially: for
accidentals [-+=], treat them as *relative to the current key
signature*) and therefore certainly possible, but tedious, to do as a
Scheme function depending on three music expressions (the \figures,
the bass line, and optionally a music expression containing the key
signature — I like to put this in a separate variable from the bass).

So before I waste too much time on this: given the number of geniuses
on this mailing-list, certainly one of you already did write the
relevant Scheme code, am I right?

-- 
Jérôme

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


The search for an API

2018-04-10 Thread Felix D.
Hello Lilypond-Fans,

I have a question: Does Lilypond have an API that can be simply called from
other programs to render some markup (stored as a string) into a SVG file?

We want to use Lilypond in an Unity app/game, wich will be used by many
musicians and thus requires some decent staff rendering. We basically
program in C#, but there is an easy bridge to interface with C/C++
libraries. So calling an API should not be a huge problem, but does it even
exist and is documented somewhere?

I asked in the IRC a few hors ago, and received a brief "No, it doesn't
exist". Bit is that really the abrupt end of the story, or is there some
other possibility to call Lilypond from an external program?

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


Re: Scordatura question

2018-04-10 Thread Ben

On 4/10/2018 5:08 PM, Menu Jacques wrote:

Hello folks,

String instruments sometimes use scordaturas: I’ve wondered how this is noted 
in modern scores, but couldn't find examples on the Internet.

Can anyone give pointers to actual scores showing that?

Thanks!

JM





Although I don't use these tunings, a lot of composers use scordatura 
and I think many of them just include details about the tuning and setup 
in the program notes / performance notes.


The actual notation /should/ be fairly straightforward once that much 
has been explained to the performers, but there are exceptions in more 
extreme situations. :)
There might also be a little 'legend' showing the notes and how they 
relate to the tuned 'played' (fretted) notes and so forth as well.


Hope this helps!

PS. If you want some examples specifically in LilyPond, I believe Trevor 
Baca uses scordatura in several pieces - check out his GitHub if you'd 
like to see the scores and source code.

https://github.com/trevorbaca/akasha





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


Scordatura question

2018-04-10 Thread Menu Jacques
Hello folks,

String instruments sometimes use scordaturas: I’ve wondered how this is noted 
in modern scores, but couldn't find examples on the Internet.

Can anyone give pointers to actual scores showing that?

Thanks!

JM


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


Re: First steps in Lilypond

2018-04-10 Thread Simon Albrecht

On 09.04.2018 20:24, foxfanfare wrote:

\scaleDurations 2/3 { c16( f' aes \clef treble f'[ d f~] }


By the way, I use c16*2/3 in such cases.

Best, Simon

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


Is it right how oneVoice reverts direction settings?

2018-04-10 Thread Simon Albrecht

Hello everybody,

suppose I want to globally override the direction of slurs, as far as 
neutral voices go. If I do this:


%%% \version "2.19.80" \layout {   \context {     \Voice     
\override Slur.direction = #UP   } } music = { c'( d' e' f') } {   
\music   \voiceTwo   \music   \oneVoice   \music } 


then in bar 3 the slur will go below the notes, i.e. \oneVoice reverted 
the direction without knowing that an override was in effect.


I’d love to be able to redefine \voiceTwo & Co. such as to imply 
\temporary, but that’s not currently possible:


warning: Cannot make PropertySet revertible.

Does anybody have an idea for another solution?

Best, Simon


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


microtonal accidentals

2018-04-10 Thread Freeman Gilmore
​I there a list of all the microtonal accidentals that Lilypond supports
and with syntax?  I found some in the appendix of the Notation Reference.
There is a table there  it has the name but does not have the syntax for
the accidental.  There is syntax with the Turkish accidentals in a
different place.

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


page-turn-breaking and ragged-bottom

2018-04-10 Thread Lukas-Fabian Moser

Hello everybody,

it seems that page-turn-breaking and ragged-bottom do not like each 
other very much. Is the following intended behaviour? The music should 
comfortably fit on one or two pages (one page is enough when I do not 
allow ragged bottom). Two pages would be okay, but three pages seem absurd.



\version "2.19.80"

\paper {
  ragged-bottom = ##t
  #(define page-breaking ly:page-turn-breaking)
  first-page-number = 2
}

\layout {
  \context {
    \Staff
    \consists "Page_turn_engraver"
  }
}


\new Staff { \repeat unfold 40 \relative c' { d8 d d d d d d d } \bar "|." }
\new Staff { \repeat unfold 20 \relative c' { d8 d d d d d d d } \bar "|." }



Best
Lukas



pageturn.pdf
Description: Adobe PDF document
\version "2.19.80"

\paper {
  ragged-bottom = ##t
  #(define page-breaking ly:page-turn-breaking)
  first-page-number = 2
}

\layout {
  \context {
\Staff
\consists "Page_turn_engraver"
  }
}


\new Staff { \repeat unfold 40 \relative c' { d8 d d d d d d d } \bar "|." }
\new Staff { \repeat unfold 20 \relative c' { d8 d d d d d d d } \bar "|." }
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Edition Engraver -- Bar 1

2018-04-10 Thread Jan-Peter Voigt

Hi Craig, hi Stéfano,

like Stéfano already pointed out this is related to an issue I still 
have to fix. I hope the hints given are already helpful to work around it!
The example didn't compile in my setup either. This was happening in the 
development branch for this issue (refactor-override). I pushed a fix so 
that it compiles. This branch shall receive more pushes to solve this 
issue before it is merged to master.


Jan-Peter


Am 08.04.2018 um 19:32 schrieb Stefano Troncaro:

Hi Craig,

As I suspected, the problem was in how your code was structured. I run 
into the same issues when I started using the EE. Look at the attached file.


I recognize that not every change that I made may be necessary, I made 
changes while I was trying to make the snippet  work (the file as you 
sent it wouldn't compile at all for me), and currently don't have time 
to strip it to the minimum. But I hope that at least a working example 
will be useful to you.


The basic problem is that you were placing many overrides to the same 
property in the same moment, which caused problems: the EE can't 
overwrite an override that is already present in the music input. 
However, if you move your general override (named \gossecDynamics in 
your file) in the layout settings, then there is no conflict since there 
are not two overrides present at the same time, and the latter (created 
by the EE) overwrites the general one. You should have gotten warnings 
for this I think? Do you have the Edition Engraver on the latest version?


Hope you find this useful,
Stéfano


2018-04-08 6:43 GMT-03:00 arnepe >:


hello Craig,

this is the output I get from your file:
ee_problem.pdf
>
The "ff" at 1 0/4 looks different than the same mod at 3 0/4.

However - if I change the style at line 28, and comment out line 65
or line
89,
the change takes effect only on 1 0/4, and the mod at 3 0/4 is not
affected
at all.
My knowledge of EE is marginal at best (and virtually nil with
Scheme) so I
am afraid I can't be of any help here...

cheers
Arne




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


Re: Scholarly question

2018-04-10 Thread Urs Liska

Hi Craig,


Am 10.04.2018 um 01:01 schrieb Craig Dabelstein:

Hi all,

Is this the correct way to ignore critical remarks in the output file?

\ignoreAnnotationTypes #'()


No, it isn't. And while looking into the files I realize that this 
option isn't commented properly.


The proper command to ignore critical remarks (while producing the 
annotations) is


\setOption scholarly.annotate.ignored-types #'(critical-remark)

You set the corresponding option to a symbol list with all the 
annotation types you do *not* want to be included in the output, the 
values are those defined in module.ily: critical-remark, musical-issue, 
lilypond-issue, question, and todo.


I'll update the file to at least have this information present as 
comments to the option.


Urs




Thanks in advance,

Craig

--
*Craig Dabelstein*
Maxime's Music
craig.dabelst...@gmail.com 
/http://maximesmusic.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