Re: Moving /downbow & /upbow to the tablature

2022-06-30 Thread Valentin Petzel
Hello Viktor,

the reason for why you do not get these above the tablature is because the 
context definition for TabStaff (in ly/engraver-init.ly) explicitely sets a few 
stencils to #f. So to get Scripts in your TabStaff you’d want to do

melody = {c'2\downbow d'\upbow}
<<
   \new Staff \melody
 \new TabStaff \with {
   \revert Script.stencil
 } \melody
 >>

Cheers,
Valentin

Am Mittwoch, 29. Juni 2022, 20:03:40 CEST schrieb Viktor Mastoridis:
> Hello,
> 
> When combining standard notation and tablature, the down/upstroke symbols
> show above the notation.
> Is there a way to have them displayed above the tablature?
> Where the tablature is arranged beneath the notation?
> 
> \version "2.20.0"
> melody = {c'2\downbow d'\upbow}
> <<
>\new Staff \melody
>  \new TabStaff \melody



signature.asc
Description: This is a digitally signed message part.


lilybin is down - alternatives?

2022-06-30 Thread Paulo Matos
Hi

http://lilybin.com/ is apparently down. Are there any alternatives?

Regards,

-- 
Paulo Matos



Re: lilybin is down - alternatives?

2022-06-30 Thread Jean Abou Samra




Le 30/06/2022 à 14:56, Paulo Matos a écrit :

Hi

http://lilybin.com/ is apparently down. Are there any alternatives?

Regards,



See the thread
https://lists.gnu.org/archive/html/lilypond-user/2022-05/msg00473.html
continuing here:
https://lists.gnu.org/archive/html/lilypond-user/2022-06/msg5.html

TL;DR: use hacklily.org.

Best,
Jean



Re: lilybin is down - alternatives?

2022-06-30 Thread Paulo Matos


Jean Abou Samra  writes:
>
> TL;DR: use hacklily.org.

I tried hacklily earlier on but unfortunately there's no way to share a
snippet by link, which is a useful feature.

Thanks,

-- 
Paulo Matos



Re: lilybin is down - alternatives?

2022-06-30 Thread Karlin High

On 6/30/2022 8:02 AM, Paulo Matos wrote:

unfortunately there's no way to share a
snippet by link, which is a useful feature.


It would cost them some storage, etc to provide that. And if their 
project needs ongoing funding, to me that sounds like an ideal 
paid-premium feature.

--
Karlin High
Missouri, USA



Musescore/musicxml questions

2022-06-30 Thread Kira Garvie
Hey all,
I know this is a bit off-topic but it's on-topic for me... also I don't
know who else to ask, the muse-score forums aren't very helpful.
I use Lilypond, Musescore, and musicxml files for my work. Please, no
comments on the quality of Musescore, the decision to use it was above my
paygrade. I am having issues exporting an xml file and having it keep its
formatting. Is there anyone who has experience with this and can help me
off the list? Or should I just can it and keep googling stuff until I
stumble on an answer?
Here are the files.
Thank you!


SSS2019-13.musicxml
Description: Binary data


SSS2019-13.mscz
Description: application/musescore


Re: Musescore/musicxml questions

2022-06-30 Thread Karlin High

On 6/30/2022 11:50 AM, Kira Garvie wrote:

I am having issues exporting an xml file and having it keep its formatting.


Can you further describe the workflow, source and destination of the export?
--
Karlin High
Missouri, USA



Override multiple properties in one statement?

2022-06-30 Thread Ahanu Banerjee
Hello,

Is it possible to override or tweak multiple properties of one object at
once, using one statement? i.e., without typing "\tweak" or "\override"
multiple times?  (Of course, defining a new function consisting of multiple
statements is possible, but it's not practical when there are many
combinations of properties to change throughout a document.)

For example:

\version "2.23.10"
{ c
  -\tweak outside-staff-priority #'()
  -\tweak whiteout ##t
  -\tweak Y-offset #0.25
  -\tweak X-offset #1.5
  ^\markup "text" }

Thanks,
-Ahanu


Re: Moving /downbow & /upbow to the tablature

2022-06-30 Thread Viktor Mastoridis
>
> the reason for why you do not get these above the tablature is because the
> context definition for TabStaff (in ly/engraver-init.ly) explicitely sets
> a few
> stencils to #f. So to get Scripts in your TabStaff you’d want to do
>
> melody = {c'2\downbow d'\upbow}
> <<
>\new Staff \melody
>  \new TabStaff \with {
>\revert Script.stencil
>  } \melody
>  >>
>
> Cheers,
> Valentin
>

Ah, I was looking for that formula!
I tried '\undo \hide Script' and similar, but this is a bit above my
paygrade:-)

Thank you so much, Valentin.
---
Viktor


Re: Override multiple properties in one statement?

2022-06-30 Thread Jean Abou Samra




Le 30/06/2022 à 22:04, Ahanu Banerjee a écrit :

Hello,

Is it possible to override or tweak multiple properties of one object 
at once, using one statement? i.e., without typing "\tweak" or 
"\override" multiple times?  (Of course, defining a new function 
consisting of multiple statements is possible, but it's not practical 
when there are many combinations of properties to change throughout a 
document.)


For example:

\version "2.23.10"
{ c
  -\tweak outside-staff-priority #'()
  -\tweak whiteout ##t
  -\tweak Y-offset #0.25
  -\tweak X-offset #1.5
  ^\markup "text" }



You could use

\version "2.23.10"

alistPropertyTweak =
#(define-music-function (tweaks item) (alist? symbol-list-or-music?)
   (fold (lambda (pair previous)
   (once (propertyTweak (car pair)
    (cdr pair)
    previous)))
 item
 tweaks))

{ c'1 \alistPropertyTweak #'((outside-staff-priority . ())
   (whiteout . #t)
   (Y-offset . 0.25)
   (X-offset . 1.5))
    ^"text"
  \once \alistPropertyTweak #'((outside-staff-priority . ())
   (whiteout . #t)
   (Y-offset . 0.25)
   (X-offset . 1.5))
    TextScript
  c'^"text"
}


On the other hand, this may not necessarily be overly
practical because in order to write any values in LilyPond
syntax, you have to replace the quote ' with a backquote
` and use ,#{ #} to write LilyPond code. For example:

{
  c'\alistPropertyTweak #`((text . ,#{ \markup \bold "a" #}))
    ^"b"
}


Compare with

{
  c'\tweak text \markup \bold "a" ^"b"
}


Ultimately, I think it is wiser to use \tweak or \override
explicitly. That's of course up to you though. By the way,
in Frescobaldi, you have an interface for defining snippets
that are convenient to insert, in Tools > Coding > Fragments.

Best,
Jean







Re: Moving /downbow & /upbow to the tablature

2022-06-30 Thread Jean Abou Samra




Le 30/06/2022 à 22:11, Viktor Mastoridis a écrit :


the reason for why you do not get these above the tablature is
because the
context definition for TabStaff (in ly/engraver-init.ly
) explicitely sets a few
stencils to #f. So to get Scripts in your TabStaff you’d want to do

melody = {c'2\downbow d'\upbow}
<<
   \new Staff \melody
 \new TabStaff \with {
   \revert Script.stencil
 } \melody
 >>

Cheers,
Valentin

Ah, I was looking for that formula!
I tried '\undo \hide Script' and similar, but this is a bit above my 
paygrade:-)


Thank you so much, Valentin.
---
Viktor



You were almost there!

\undo \omit Script

Since removing the scripts is done with the equivalent of \omit, you 
need to undo an \omit, not a \hide. See

https://lilypond.org/doc/v2.23/Documentation/notation/visibility-of-objects#removing-the-stencil
for the difference. You can notice the stencil overrides at
https://lilypond.org/doc/v2.23/Documentation/internals/tabstaff

Best,
Jean





Re: warning: adding note head to incompatible stem (type = 1/1)

2022-06-30 Thread Paul Hodges
Change:

      \new Staff << { \lh_one } \\ { \lh_two } >>
to:

      \new Staff << \lh_one \lh_two >>


and you will see a big improvement.


Paul


 From:   Kenneth Wolcott  
 To:   Lily Pond  
 Sent:   30/06/2022 20:57 
 Subject:   warning: adding note head to incompatible stem (type = 1/1) 

HI; 
 
  I am now engraving a Cello+Piano arrangement of the last song (no 
lyrics) "None but the Lonely Heart" of Op. 6 of Tchaikovsky. 
 
https://en.wikipedia.org/wiki/None_but_the_Lonely_Heart_(Tchaikovsky) 
 
  The left hand notes have polyphony. 
 
  The whole note in one measure and the half notes in the following 
measure each conflict with an eighth note rest in the other voice. 
 
  I am not (yet) explicitly using voices, perhaps that is my problem? 
 
  How do I successfully engrave this with Lilypond 2.22.2? 
 
  I also receive the following warning/hint: "warning: maybe input 
should specify polyphonic voices". 
 
I have attached the full pdf of what I am engraving, my engraving and 
the Lilypond source I wrote. 
 
Thanks, 
Ken Wolcott 


Re: Override multiple properties in one statement?

2022-06-30 Thread David Kastrup
Ahanu Banerjee  writes:

> Hello,
>
> Is it possible to override or tweak multiple properties of one object at
> once, using one statement? i.e., without typing "\tweak" or "\override"
> multiple times?  (Of course, defining a new function consisting of multiple
> statements is possible, but it's not practical when there are many
> combinations of properties to change throughout a document.)
>
> For example:
>
> \version "2.23.10"
> { c
>   -\tweak outside-staff-priority #'()
>   -\tweak whiteout ##t
>   -\tweak Y-offset #0.25
>   -\tweak X-offset #1.5
>   ^\markup "text" }

If the only variable here is "text", you may use

mtw =
   -\tweak outside-staff-priority #'()
   -\tweak whiteout ##t
   -\tweak Y-offset #0.25
   -\tweak X-offset #1.5
   ^ \etc

{
  c\mtw "text"
}


-- 
David Kastrup



Re: Musescore/musicxml questions

2022-06-30 Thread Jacques Menu
Hello Kira,

I’ve looked at the two files you posted, and the MusicXML export is actually 
not reflecting the exact layout of the original.Converting it to LilyPond with 
xml2ly gives the same layout as when the exported file is re-imported in 
Musecore.

This is a difficult issue at any rate, to be submitted to the MuseScore team at 
https://musescore.com/user/login?destination=%2Fcas%2Flogin.

HTH!

JM

> Le 30 juin 2022 à 18:50, Kira Garvie  a écrit :
> 
> Hey all,
> I know this is a bit off-topic but it's on-topic for me... also I don't know 
> who else to ask, the muse-score forums aren't very helpful.
> I use Lilypond, Musescore, and musicxml files for my work. Please, no 
> comments on the quality of Musescore, the decision to use it was above my 
> paygrade. I am having issues exporting an xml file and having it keep its 
> formatting. Is there anyone who has experience with this and can help me off 
> the list? Or should I just can it and keep googling stuff until I stumble on 
> an answer? 
> Here are the files.
> Thank you!
> 




Re: Moving /downbow & /upbow to the tablature

2022-06-30 Thread Viktor Mastoridis
>
>
> >
> > Ah, I was looking for that formula!
> > I tried '\undo \hide Script' and similar, but this is a bit above my
> > paygrade:-)
> >
> > Thank you so much, Valentin.
> > ---
> > Viktor
> >
>
> You were almost there!
>
> \undo \omit Script
>
> Since removing the scripts is done with the equivalent of \omit, you
> need to undo an \omit, not a \hide. See
>
> https://lilypond.org/doc/v2.23/Documentation/notation/visibility-of-objects#removing-the-stencil
> for the difference. You can notice the stencil overrides at
> https://lilypond.org/doc/v2.23/Documentation/internals/tabstaff
>
> Best,
> Jean
>
>
> I see!
I used \hide Script  to remove the objects from the notation and it worked,
hence \undo \hide Script.
But with \hide Script, the chord names started to be displayed too high, so
I had to lower them down.
Once you mentioned \omit, I realized that \hide makes the object
transparent, but its place stays, like a ghost:-)
While \omit removes all traces of objects.

Ah, the depth and beauty of Lilypond:-)

Viktor


Re: warning: adding note head to incompatible stem (type = 1/1)

2022-06-30 Thread Kenneth Wolcott
Hi Paul;

  Thank you.

  It looks like somewhere I had jumped to conclusions about engraving
polyphony in Lilypond and misled myself for about a year now.

  This not only works better but the code looks much less cumbersome,
more succinct.

  Interesting that, until now, my syntax actually worked.

Ken

On Thu, Jun 30, 2022 at 1:31 PM Paul Hodges  wrote:
>
> Change:
>   \new Staff << { \lh_one } \\ { \lh_two } >>
> to:
>   \new Staff << \lh_one \lh_two >>
>
> and you will see a big improvement.
>
> Paul
>
>
> From: Kenneth Wolcott 
> To: Lily Pond 
> Sent: 30/06/2022 20:57
> Subject: warning: adding note head to incompatible stem (type = 1/1)
>
> HI;
>
>  I am now engraving a Cello+Piano arrangement of the last song (no
> lyrics) "None but the Lonely Heart" of Op. 6 of Tchaikovsky.
>
> https://en.wikipedia.org/wiki/None_but_the_Lonely_Heart_(Tchaikovsky)
>
>  The left hand notes have polyphony.
>
>  The whole note in one measure and the half notes in the following
> measure each conflict with an eighth note rest in the other voice.
>
>  I am not (yet) explicitly using voices, perhaps that is my problem?
>
>  How do I successfully engrave this with Lilypond 2.22.2?
>
>  I also receive the following warning/hint: "warning: maybe input
> should specify polyphonic voices".
>
> I have attached the full pdf of what I am engraving, my engraving and
> the Lilypond source I wrote.
>
> Thanks,
> Ken Wolcott



Simultaneous ottava and non-ottava voices

2022-06-30 Thread Ahanu Banerjee
Hi,

Is it possible to have two voices in one measure, on one staff, with one
voice as "Ottava 1" and the other as "Ottava 0"? (I realise this notation
may seem unclear, but I have a specific use case.)

If I try the following, each ottava overrides the other:

\version "2.23.10"
\relative c' {
  << { \ottava 1 \repeat unfold 4 c'' } \\ { \ottava 0 \repeat unfold 4 d,,
} >>
}

Thanks,
-Ahanu


Re: Override multiple properties in one statement?

2022-06-30 Thread Ahanu Banerjee
Thanks; I think you are right about it being convoluted, and I will just
continue using explicit \tweak and \override statements.

Cheers,
-Ahanu

On Thu, Jun 30, 2022 at 4:18 PM Jean Abou Samra  wrote:

>
>
> Le 30/06/2022 à 22:04, Ahanu Banerjee a écrit :
> > Hello,
> >
> > Is it possible to override or tweak multiple properties of one object
> > at once, using one statement? i.e., without typing "\tweak" or
> > "\override" multiple times?  (Of course, defining a new function
> > consisting of multiple statements is possible, but it's not practical
> > when there are many combinations of properties to change throughout a
> > document.)
> >
> > For example:
> >
> > \version "2.23.10"
> > { c
> >   -\tweak outside-staff-priority #'()
> >   -\tweak whiteout ##t
> >   -\tweak Y-offset #0.25
> >   -\tweak X-offset #1.5
> >   ^\markup "text" }
>
>
> You could use
>
> \version "2.23.10"
>
> alistPropertyTweak =
> #(define-music-function (tweaks item) (alist? symbol-list-or-music?)
> (fold (lambda (pair previous)
> (once (propertyTweak (car pair)
>  (cdr pair)
>  previous)))
>   item
>   tweaks))
>
> { c'1 \alistPropertyTweak #'((outside-staff-priority . ())
> (whiteout . #t)
> (Y-offset . 0.25)
> (X-offset . 1.5))
>  ^"text"
>\once \alistPropertyTweak #'((outside-staff-priority . ())
> (whiteout . #t)
> (Y-offset . 0.25)
> (X-offset . 1.5))
>  TextScript
>c'^"text"
> }
>
>
> On the other hand, this may not necessarily be overly
> practical because in order to write any values in LilyPond
> syntax, you have to replace the quote ' with a backquote
> ` and use ,#{ #} to write LilyPond code. For example:
>
> {
>c'\alistPropertyTweak #`((text . ,#{ \markup \bold "a" #}))
>  ^"b"
> }
>
>
> Compare with
>
> {
>c'\tweak text \markup \bold "a" ^"b"
> }
>
>
> Ultimately, I think it is wiser to use \tweak or \override
> explicitly. That's of course up to you though. By the way,
> in Frescobaldi, you have an interface for defining snippets
> that are convenient to insert, in Tools > Coding > Fragments.
>
> Best,
> Jean
>
>
>
>
>


MIDI and fermata

2022-06-30 Thread Mark Probert
Hi, all.

I wondering how people deal with adding a fermata into MIDI output. The
most obvious way I can think of is using a cadenza to add some space, but
is there a better way?

Thanks

-- 
-mark.


Re: Musescore/musicxml questions

2022-06-30 Thread Kira Garvie
Thank you, Jacques! That does help.
I work with this system, that creates both printable online files and
downloadable xml files, but lately I have been having formatting issues...
I wish we used something other than MuseScore! (Lilypond is used for a
different part of the project!)
https://my.hymnary.org/song/62/o-come-all-ye-faithful?header=auto&instrument=full&translation=None&;

On Thu, Jun 30, 2022 at 4:44 PM Jacques Menu  wrote:

> Hello Kira,
>
> I’ve looked at the two files you posted, and the MusicXML export is
> actually not reflecting the exact layout of the original.Converting it to
> LilyPond with xml2ly gives the same layout as when the exported file is
> re-imported in Musecore.
>
> This is a difficult issue at any rate, to be submitted to the MuseScore
> team at https://musescore.com/user/login?destination=%2Fcas%2Flogin.
>
> HTH!
>
> JM
>
> > Le 30 juin 2022 à 18:50, Kira Garvie  a écrit :
> >
> > Hey all,
> > I know this is a bit off-topic but it's on-topic for me... also I don't
> know who else to ask, the muse-score forums aren't very helpful.
> > I use Lilypond, Musescore, and musicxml files for my work. Please, no
> comments on the quality of Musescore, the decision to use it was above my
> paygrade. I am having issues exporting an xml file and having it keep its
> formatting. Is there anyone who has experience with this and can help me
> off the list? Or should I just can it and keep googling stuff until I
> stumble on an answer?
> > Here are the files.
> > Thank you!
> > 
>
>


Re: Simultaneous ottava and non-ottava voices

2022-06-30 Thread William Rehwinkel

Dear Ahanu,

There is an example ( 
https://lilypond.org/doc/v2.22/Documentation/notation/displaying-pitches#ottava-brackets 
) in the documentation which covers this subject. Is there anything else 
about this that isn't working for you?


-William

---

{
  \clef bass
  << { 1~ q2  }
  \\
{
  r2.
  \set Staff.ottavation = #"8vb"
  \once \override Staff.OttavaBracket.direction = #DOWN
  \set Voice.middleCPosition = #(+ 6 7)
  4 ~ |
  q2
  \unset Staff.ottavation
  \unset Voice.middleCPosition
  2
}
  >>
}

On 6/30/22 19:24, Ahanu Banerjee wrote:

Hi,

Is it possible to have two voices in one measure, on one staff, with 
one voice as "Ottava 1" and the other as "Ottava 0"? (I realise this 
notation may seem unclear, but I have a specific use case.)


If I try the following, each ottava overrides the other:

\version "2.23.10"
\relative c' {
  << { \ottava 1 \repeat unfold 4 c'' } \\ { \ottava 0 \repeat unfold 
4 d,, } >>

}

Thanks,
-Ahanu


--
William Rehwinkel

will...@williamrehwinkel.net
https://williamrehwinkel.net


Re: MIDI and fermata

2022-06-30 Thread Adam M. Griggs
I use /tag #'midi { *tempo changes* }.

If you don't want to use tags, you can /omit Score.MetronomeMark to keep
your score tidy.

On Fri, 1 Jul 2022, 08:56 Mark Probert,  wrote:

> Hi, all.
>
> I wondering how people deal with adding a fermata into MIDI output. The
> most obvious way I can think of is using a cadenza to add some space, but
> is there a better way?
>
> Thanks
>
> --
> -mark.
>


Re: MIDI and fermata

2022-06-30 Thread Adam M. Griggs
Sorry, \tag, with a backslash of course.

On Fri, 1 Jul 2022, 13:22 Adam M. Griggs,  wrote:

> I use /tag #'midi { *tempo changes* }.
>
> If you don't want to use tags, you can /omit Score.MetronomeMark to keep
> your score tidy.
>
> On Fri, 1 Jul 2022, 08:56 Mark Probert,  wrote:
>
>> Hi, all.
>>
>> I wondering how people deal with adding a fermata into MIDI output. The
>> most obvious way I can think of is using a cadenza to add some space, but
>> is there a better way?
>>
>> Thanks
>>
>> --
>> -mark.
>>
>