Re: Repeated durations: pitches vs rests

2021-02-21 Thread Andrew Bernard
Ties rests make no musical sense, even in relation to programmatically 
generated music. Why cant you just have a rest of the appropriate 
duration? You can have dotted rests you know, and durations can be 
scaled as can note durations.


a





Re: Repeated durations: pitches vs rests

2021-02-21 Thread David Bellows
Hello Andrew,

> It's just the syntax. A 16 without a note will produce a
note, not a rest, even after a rest.

> People don't normally put ties on rests - does not quite make sense, as
a ties means hold the note and don't articulate, whereas silence cant be
articulated anýway.

So if a duration without a rest will result in a note and that a rest
with a tie is otherwise meaningless, then perhaps a rest with a tie
followed by a duration could be made to produce a rest instead of a
note.

{c4 r16 8}

would produce: C, rest, C,

while:

{c4 r16~ 8}

would produce: C, rest, rest

> Is it that hard to make the computer program emit an r for a rest?

As you can imagine, writing software that takes audio data and
converts it into LilyPond files automatically is not an easy task. My
software does create rests, it's just in the particular situation
where a voice in one staff (like in a piano) has a quarter tied to a
16th that I need the same voice in the other staff to create the
appropriate rests (quarter followed by a 16th). The way my software is
designed, it handles all simple durations just fine, but ones that
require ties are where the problem is and I do not see a way out that
doesn't add a lot of complexity. It's the peculiarity of how I
designed my program that ultimately is the problem but it's also
something that is way, way too late in the game to change.

The rest with a tie solution would make my life a ton easier and could
just be plugged straight into my software without any actual
programming. Otherwise, I will have to program in a solution and it
will be difficult to graft it onto the existing code.

Dave

On Sun, Feb 21, 2021 at 10:02 PM Andrew Bernard
 wrote:
>
> Its not a bug. It's just the syntax. A 16 without a note will produce a
> note, not a rest, even after a rest. There would be a dozen different
> possibilities for syntax, but that's how it is.
>
> Is it that hard to make the computer program emit an r for a rest?
> People don't normally put ties on rests - does not quite make sense, as
> a ties means hold the note and don't articulate, whereas silence cant be
> articulated anýway.
>
>
> Andrew
>
>
> David Bellows wrote on 22/02/2021 4:20 PM:
> > I had hoped that the last 16th would be a rest.
> >
> >
>
>



Re: Repeated durations: pitches vs rests

2021-02-21 Thread Andrew Bernard
Its not a bug. It's just the syntax. A 16 without a note will produce a 
note, not a rest, even after a rest. There would be a dozen different 
possibilities for syntax, but that's how it is.


Is it that hard to make the computer program emit an r for a rest? 
People don't normally put ties on rests - does not quite make sense, as 
a ties means hold the note and don't articulate, whereas silence cant be 
articulated anýway.



Andrew


David Bellows wrote on 22/02/2021 4:20 PM:

I had hoped that the last 16th would be a rest.







Repeated durations: pitches vs rests

2021-02-21 Thread David Bellows
The following:

{c4 16}

produces a quarter note C followed by a 16th note C

The following:

{c4 16 r4 16}

Produces a quarter C, 16th C, quarter rest, 16th C

I had hoped that the last 16th would be a rest.

This came about while trying out this code:

{c4~ 16 r4~ 16}

which produces the tie with the first two notes but again, that last
16 is a separate 16th note C.

I don't know what the expected behavior is but at least for my case,
remembering the rest would be the most helpful outcome. Or at least a
tie from a rest seems like it would always want the next note to be a
rest, right?

My music is all computer generated along with the LilyPond files and
the behavior I describe is what would be best for me, but I get if
that's not how it is for most people.

So I don't know if there is a work-around, if this is a bug, or a
feature request?

Any help would be appreciated even if it's just that my desire here is
way out of the ordinary.

Dave



Re: Black borders with table using \markuplist and please center

2021-02-21 Thread Adam Good
Hi Pierre,
Thank you very much for this solution. My numbers were just thrown in for
an example and in reality I have varying strings on text so line length
would need to be played with.

Adam

On Sun, Feb 21, 2021 at 3:46 PM Pierre Perol-Schneider <
pierre.schneider.pa...@gmail.com> wrote:

> Oops, forget the 'baseline-skip...
> Again:
>
> \version "2.22.0"
>
> cell = \markup
>   \override #'(line-join-style . miter)
>   \override #'(line-cap-style . square)
>   \path #.3 #'((moveto -1.5 -1.5)(lineto -1.5 3)(lineto 3 3)(lineto 3
> -1.5))
>
>
> \markup \fill-line {
>   \column
>   \override #'(padding . -.3)
>   \table #'(0 0 0)
> {
>   %\underline { right-aligned center-aligned left-aligned }
>   { \combine\cell "1" }{ \combine\cell "3" }{ \combine\cell "3" }
>   { \combine\cell "4" }{ \combine\cell "" }{ \combine\cell "6" }
>   { \combine\cell "7" }{ \combine\cell "8" }{ \combine\cell "6" }
>   { \combine\cell "10" }{ \combine\cell "" }{ \combine\cell "12" }
>   \with-dimensions-from\null
>   \override #'(line-cap-style . square)
>   \path #.3 #'((moveto -2.25 1.8)(lineto 11.25 1.8))
> }
> }
>
> Cheers,
> Pierre
>
> Le dim. 21 févr. 2021 à 21:43, Pierre Perol-Schneider <
> pierre.schneider.pa...@gmail.com> a écrit :
>
>> Hi Adam,
>> Here's my attempt:
>>
>> \version "2.22.0"
>>
>> cell = \markup
>>   \override #'(line-join-style . miter)
>>   \override #'(line-cap-style . square)
>>   \path #.3 #'((moveto -1.5 -1.5)(lineto -1.5 3)(lineto 3 3)(lineto 3
>> -1.5))
>>
>>
>> \markup \fill-line {
>>   \column
>>   \override #'(baseline-skip . -.3)
>>   \override #'(padding . -.3)
>>   \table #'(0 0 0)
>> {
>>   %\underline { right-aligned center-aligned left-aligned }
>>   { \combine\cell "1" }{ \combine\cell "3" }{ \combine\cell "3" }
>>   { \combine\cell "4" }{ \combine\cell "" }{ \combine\cell "6" }
>>   { \combine\cell "7" }{ \combine\cell "8" }{ \combine\cell "6" }
>>   { \combine\cell "10" }{ \combine\cell "" }{ \combine\cell "12" }
>>   \with-dimensions-from\null
>>   \override #'(line-cap-style . square)
>>   \path #.3 #'((moveto -2.25 1.3)(lineto 11.25 1.3))
>> }
>> }
>>
>> Cheers,
>> Pierre
>>
>> Le dim. 21 févr. 2021 à 21:03, Adam Good  a
>> écrit :
>>
>>> Harm thank you very much! I feel centered.
>>>
>>> If anyone could come up with a solution for borders it would be a nice
>>> option.
>>>
>>> best,
>>> Adam
>>>
>>> On Sun, Feb 21, 2021 at 11:57 AM Thomas Morley 
>>> wrote:
>>>
 Am So., 21. Feb. 2021 um 17:24 Uhr schrieb Adam Good <
 goodadamg...@gmail.com>:
 >
 > Hi Everyone,
 > I can make this pretty little table, see below but could someone
 please help me add borders / gridlines around the cells? And, I'd like to
 be able to center the table to the middle of the page.
 >
 > Thank you in advance!
 > Adam
 >
 > %%%
 > \markuplist {
 >   \override #'(padding . 4)
 >   \table #'(0 0 0)
 > {
 >   %\underline { right-aligned center-aligned left-aligned }
 >   "1" "2" "3"
 >   "4" "" "6"
 >   "7" "8" ""
 >   "10" "" "12"
 > }
 > }

 Borders / gridlines are not yet coded for \table, maybe I should have
 done so, at least as an option.
 Currently I've no time to delve into it maybe someone else can step in.

 If you don't mind loosing the page breaking option, centering is as
 simple as:

 \markup \fill-line {
   \column
   \override #'(padding . 4)
   \table #'(0 0 0)
 {
   %\underline { right-aligned center-aligned left-aligned }
   "1" "2" "3"
   "4" "" "6"
   "7" "8" ""
   "10" "" "12"
 }
 }

 Cheers,
   Harm

>>>


Re: Black borders with table using \markuplist and please center

2021-02-21 Thread Pierre Perol-Schneider
Oops, forget the 'baseline-skip...
Again:

\version "2.22.0"

cell = \markup
  \override #'(line-join-style . miter)
  \override #'(line-cap-style . square)
  \path #.3 #'((moveto -1.5 -1.5)(lineto -1.5 3)(lineto 3 3)(lineto 3 -1.5))


\markup \fill-line {
  \column
  \override #'(padding . -.3)
  \table #'(0 0 0)
{
  %\underline { right-aligned center-aligned left-aligned }
  { \combine\cell "1" }{ \combine\cell "3" }{ \combine\cell "3" }
  { \combine\cell "4" }{ \combine\cell "" }{ \combine\cell "6" }
  { \combine\cell "7" }{ \combine\cell "8" }{ \combine\cell "6" }
  { \combine\cell "10" }{ \combine\cell "" }{ \combine\cell "12" }
  \with-dimensions-from\null
  \override #'(line-cap-style . square)
  \path #.3 #'((moveto -2.25 1.8)(lineto 11.25 1.8))
}
}

Cheers,
Pierre

Le dim. 21 févr. 2021 à 21:43, Pierre Perol-Schneider <
pierre.schneider.pa...@gmail.com> a écrit :

> Hi Adam,
> Here's my attempt:
>
> \version "2.22.0"
>
> cell = \markup
>   \override #'(line-join-style . miter)
>   \override #'(line-cap-style . square)
>   \path #.3 #'((moveto -1.5 -1.5)(lineto -1.5 3)(lineto 3 3)(lineto 3
> -1.5))
>
>
> \markup \fill-line {
>   \column
>   \override #'(baseline-skip . -.3)
>   \override #'(padding . -.3)
>   \table #'(0 0 0)
> {
>   %\underline { right-aligned center-aligned left-aligned }
>   { \combine\cell "1" }{ \combine\cell "3" }{ \combine\cell "3" }
>   { \combine\cell "4" }{ \combine\cell "" }{ \combine\cell "6" }
>   { \combine\cell "7" }{ \combine\cell "8" }{ \combine\cell "6" }
>   { \combine\cell "10" }{ \combine\cell "" }{ \combine\cell "12" }
>   \with-dimensions-from\null
>   \override #'(line-cap-style . square)
>   \path #.3 #'((moveto -2.25 1.3)(lineto 11.25 1.3))
> }
> }
>
> Cheers,
> Pierre
>
> Le dim. 21 févr. 2021 à 21:03, Adam Good  a
> écrit :
>
>> Harm thank you very much! I feel centered.
>>
>> If anyone could come up with a solution for borders it would be a nice
>> option.
>>
>> best,
>> Adam
>>
>> On Sun, Feb 21, 2021 at 11:57 AM Thomas Morley 
>> wrote:
>>
>>> Am So., 21. Feb. 2021 um 17:24 Uhr schrieb Adam Good <
>>> goodadamg...@gmail.com>:
>>> >
>>> > Hi Everyone,
>>> > I can make this pretty little table, see below but could someone
>>> please help me add borders / gridlines around the cells? And, I'd like to
>>> be able to center the table to the middle of the page.
>>> >
>>> > Thank you in advance!
>>> > Adam
>>> >
>>> > %%%
>>> > \markuplist {
>>> >   \override #'(padding . 4)
>>> >   \table #'(0 0 0)
>>> > {
>>> >   %\underline { right-aligned center-aligned left-aligned }
>>> >   "1" "2" "3"
>>> >   "4" "" "6"
>>> >   "7" "8" ""
>>> >   "10" "" "12"
>>> > }
>>> > }
>>>
>>> Borders / gridlines are not yet coded for \table, maybe I should have
>>> done so, at least as an option.
>>> Currently I've no time to delve into it maybe someone else can step in.
>>>
>>> If you don't mind loosing the page breaking option, centering is as
>>> simple as:
>>>
>>> \markup \fill-line {
>>>   \column
>>>   \override #'(padding . 4)
>>>   \table #'(0 0 0)
>>> {
>>>   %\underline { right-aligned center-aligned left-aligned }
>>>   "1" "2" "3"
>>>   "4" "" "6"
>>>   "7" "8" ""
>>>   "10" "" "12"
>>> }
>>> }
>>>
>>> Cheers,
>>>   Harm
>>>
>>


Re: Black borders with table using \markuplist and please center

2021-02-21 Thread Pierre Perol-Schneider
Hi Adam,
Here's my attempt:

\version "2.22.0"

cell = \markup
  \override #'(line-join-style . miter)
  \override #'(line-cap-style . square)
  \path #.3 #'((moveto -1.5 -1.5)(lineto -1.5 3)(lineto 3 3)(lineto 3 -1.5))


\markup \fill-line {
  \column
  \override #'(baseline-skip . -.3)
  \override #'(padding . -.3)
  \table #'(0 0 0)
{
  %\underline { right-aligned center-aligned left-aligned }
  { \combine\cell "1" }{ \combine\cell "3" }{ \combine\cell "3" }
  { \combine\cell "4" }{ \combine\cell "" }{ \combine\cell "6" }
  { \combine\cell "7" }{ \combine\cell "8" }{ \combine\cell "6" }
  { \combine\cell "10" }{ \combine\cell "" }{ \combine\cell "12" }
  \with-dimensions-from\null
  \override #'(line-cap-style . square)
  \path #.3 #'((moveto -2.25 1.3)(lineto 11.25 1.3))
}
}

Cheers,
Pierre

Le dim. 21 févr. 2021 à 21:03, Adam Good  a écrit :

> Harm thank you very much! I feel centered.
>
> If anyone could come up with a solution for borders it would be a nice
> option.
>
> best,
> Adam
>
> On Sun, Feb 21, 2021 at 11:57 AM Thomas Morley 
> wrote:
>
>> Am So., 21. Feb. 2021 um 17:24 Uhr schrieb Adam Good <
>> goodadamg...@gmail.com>:
>> >
>> > Hi Everyone,
>> > I can make this pretty little table, see below but could someone please
>> help me add borders / gridlines around the cells? And, I'd like to be able
>> to center the table to the middle of the page.
>> >
>> > Thank you in advance!
>> > Adam
>> >
>> > %%%
>> > \markuplist {
>> >   \override #'(padding . 4)
>> >   \table #'(0 0 0)
>> > {
>> >   %\underline { right-aligned center-aligned left-aligned }
>> >   "1" "2" "3"
>> >   "4" "" "6"
>> >   "7" "8" ""
>> >   "10" "" "12"
>> > }
>> > }
>>
>> Borders / gridlines are not yet coded for \table, maybe I should have
>> done so, at least as an option.
>> Currently I've no time to delve into it maybe someone else can step in.
>>
>> If you don't mind loosing the page breaking option, centering is as
>> simple as:
>>
>> \markup \fill-line {
>>   \column
>>   \override #'(padding . 4)
>>   \table #'(0 0 0)
>> {
>>   %\underline { right-aligned center-aligned left-aligned }
>>   "1" "2" "3"
>>   "4" "" "6"
>>   "7" "8" ""
>>   "10" "" "12"
>> }
>> }
>>
>> Cheers,
>>   Harm
>>
>


Re: Black borders with table using \markuplist and please center

2021-02-21 Thread Adam Good
Harm thank you very much! I feel centered.

If anyone could come up with a solution for borders it would be a nice
option.

best,
Adam

On Sun, Feb 21, 2021 at 11:57 AM Thomas Morley 
wrote:

> Am So., 21. Feb. 2021 um 17:24 Uhr schrieb Adam Good <
> goodadamg...@gmail.com>:
> >
> > Hi Everyone,
> > I can make this pretty little table, see below but could someone please
> help me add borders / gridlines around the cells? And, I'd like to be able
> to center the table to the middle of the page.
> >
> > Thank you in advance!
> > Adam
> >
> > %%%
> > \markuplist {
> >   \override #'(padding . 4)
> >   \table #'(0 0 0)
> > {
> >   %\underline { right-aligned center-aligned left-aligned }
> >   "1" "2" "3"
> >   "4" "" "6"
> >   "7" "8" ""
> >   "10" "" "12"
> > }
> > }
>
> Borders / gridlines are not yet coded for \table, maybe I should have
> done so, at least as an option.
> Currently I've no time to delve into it maybe someone else can step in.
>
> If you don't mind loosing the page breaking option, centering is as simple
> as:
>
> \markup \fill-line {
>   \column
>   \override #'(padding . 4)
>   \table #'(0 0 0)
> {
>   %\underline { right-aligned center-aligned left-aligned }
>   "1" "2" "3"
>   "4" "" "6"
>   "7" "8" ""
>   "10" "" "12"
> }
> }
>
> Cheers,
>   Harm
>


Re: Black borders with table using \markuplist and please center

2021-02-21 Thread Thomas Morley
Am So., 21. Feb. 2021 um 17:24 Uhr schrieb Adam Good :
>
> Hi Everyone,
> I can make this pretty little table, see below but could someone please help 
> me add borders / gridlines around the cells? And, I'd like to be able to 
> center the table to the middle of the page.
>
> Thank you in advance!
> Adam
>
> %%%
> \markuplist {
>   \override #'(padding . 4)
>   \table #'(0 0 0)
> {
>   %\underline { right-aligned center-aligned left-aligned }
>   "1" "2" "3"
>   "4" "" "6"
>   "7" "8" ""
>   "10" "" "12"
> }
> }

Borders / gridlines are not yet coded for \table, maybe I should have
done so, at least as an option.
Currently I've no time to delve into it maybe someone else can step in.

If you don't mind loosing the page breaking option, centering is as simple as:

\markup \fill-line {
  \column
  \override #'(padding . 4)
  \table #'(0 0 0)
{
  %\underline { right-aligned center-aligned left-aligned }
  "1" "2" "3"
  "4" "" "6"
  "7" "8" ""
  "10" "" "12"
}
}

Cheers,
  Harm



Re: Accidental placement with simultaneous music

2021-02-21 Thread Brian Barker

At 09:11 21/02/2021 -0600, John Schlomann wrote:
I'm probably missing a simple fix for this. In the following example 
the natural sign on the f4 in the first voice is placed to the left 
of the a4 in the second voice. I can't seem to find a way to fix 
this. Or is this considered acceptable?


Elaine Gould suggests this *is* correct:
"_Accidentals in double-stemmed writing_
Place accidentals before both parts, except for altered unisons..."
(Behind Bars, p. 90)

Brian Barker 





Black borders with table using \markuplist and please center

2021-02-21 Thread Adam Good
Hi Everyone,
I can make this pretty little table, see below but could someone please
help me add borders / gridlines around the cells? And, I'd like to be able
to center the table to the middle of the page.

Thank you in advance!
Adam

%%%
\markuplist {
  \override #'(padding . 4)
  \table #'(0 0 0)
{
  %\underline { right-aligned center-aligned left-aligned }
  "1" "2" "3"
  "4" "" "6"
  "7" "8" ""
  "10" "" "12"
}
}


Re: Accidental placement with simultaneous music

2021-02-21 Thread Kevin Barry
Hi John,

It looks acceptable to me. I can't imagine where else the natural sign
would go. If you have a preference (or a source that does it
differently) please let us know: I'm sure there's a way to make it do
what you want.

Kevin

On Sun, 21 Feb 2021 at 15:12, John Schlomann
 wrote:
>
> I’m probably missing a simple fix for this. In the following example the 
> natural sign on the f4 in the first voice is placed to the left of the a4 in 
> the second voice. I can’t seem to find a way to fix this. Or is this 
> considered acceptable? The other accidentals in the measure are correct.
>
>
>
>   \version "2.20.0"
>
>   \relative c' {
>
>\key d \major
>
> <<
>
>   { f4 g8 g8 a4 g4 } \\
>
>   { \set fontSize = #-3 a4 bes4 c8 bes8 a8 g8 }
>
> >>
>
>   }
>
>
>
> Thank you for any advice.
>
> John
>
>



Accidental placement with simultaneous music

2021-02-21 Thread John Schlomann
I'm probably missing a simple fix for this. In the following example the
natural sign on the f4 in the first voice is placed to the left of the a4 in
the second voice. I can't seem to find a way to fix this. Or is this
considered acceptable? The other accidentals in the measure are correct.

 

  \version "2.20.0"

  \relative c' {

   \key d \major

<<

  { f4 g8 g8 a4 g4 } \\

  { \set fontSize = #-3 a4 bes4 c8 bes8 a8 g8 }

>>

  }

 

Thank you for any advice.

John

 



Frescobaldi and python-poppler-qt5 build failure

2021-02-21 Thread Andrew Bernard
Issue #43 stops python-poppler-qt5 being built, and prevents me from
using Frescobaldi on Arch Linux.
According to the github page this project is actively maintained, but
is there anybody currently looking at issues?

https://github.com/frescobaldi/python-poppler-qt5/issues

It would be great to have it fixed, even if Arch is a minor
distribution in peoples' view. Besides, it affects other Linux distros
as well.

The impact of this is that Frescobaldi will not display the PDF output
in the Music View.

I am never sure if this is the right list to post about Frescobaldi
issues. Apologies if inappropriate.

Andrew