Re: Function for turning music upside-down.

2023-03-27 Thread Jean Abou Samra
Le lundi 27 mars 2023 à 23:08 +0100, Paul Hodges a écrit :
> I have been asked to take a piece of music (which I already have in 
> LilyPond), and mirror it vertically.  That's to say, to take each note which 
> is n semitones above middle c and replace it with the note n semitones below 
> middle c, and vice versa.  
> Before I start trying to write a function to do this, I thought I'd ask if 
> anyone has or is aware of a snippet which can already do this?


See 
https://lilypond.org/doc/v2.24/Documentation/notation/changing-multiple-pitches#inversion


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


Function for turning music upside-down.

2023-03-27 Thread Paul Hodges
I have been asked to take a piece of music (which I already have in LilyPond), 
and mirror it vertically.  That's to say, to take each note which is n 
semitones above middle c and replace it with the note n semitones below middle 
c, and vice versa.


Before I start trying to write a function to do this, I thought I'd ask if 
anyone has or is aware of a snippet which can already do this?


Thanks,
Paul

Re: how to do this?

2023-03-27 Thread Jean Abou Samra
Le lundi 27 mars 2023 à 20:48 +0200, Jean Abou Samra a écrit :
> Le lundi 27 mars 2023 à 11:41 -0700, Ralph Palmer a écrit :
> 
> > And, I believe, an Italian user list. I don't know the address for that, 
> > but I hope someone else can provide it.
> 
> [https://lists.gnu.org/mailman/listinfo/lilypond-it](https://lists.gnu.org/mailman/listinfo/lilypond-it)


P.S. The link is given on 
[https://lilypond.org/contact.html](https://lilypond.org/contact.html)


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


Re: how to do this?

2023-03-27 Thread Jean Abou Samra
Le lundi 27 mars 2023 à 11:41 -0700, Ralph Palmer a écrit :
> And, I believe, an Italian user list. I don't know the address for that, but 
> I hope someone else can provide it. 

[https://lists.gnu.org/mailman/listinfo/lilypond-it](https://lists.gnu.org/mailman/listinfo/lilypond-it)


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


Re: how to do this?

2023-03-27 Thread Ralph Palmer
Dario Marrini -
Did you know there is an Italian version of the documents?
https://lilypond.org/community.it.html
And, I believe, an Italian user list. I don't know the address for that,
but I hope someone else can provide it.
All the best,
Ralph
__
Ralph Palmer
Seattle
USA
(he, him, his)
palmer.r.vio...@gmail.com


On Mon, Mar 27, 2023 at 9:48 AM Dario Marrini 
wrote:

> Thanks all,
> I'm used to read as docs as possible, but I'm in trouble about names,
> sometimes I dont' know how to name some resources in English (sometimes
> barely in Italian...) then sometimes I spend a lot of time looking for
> things I don't even know the name of...
>
> Il giorno lun 27 mar 2023 alle ore 18:02 Leo Correia de Verdier <
> leo.correia.de.verd...@gmail.com> ha scritto:
>
>> Try
>>
>> \set Score.rehearsalMarkFormatter = #format-mark-box-numbers
>>
>> More details and explanations can be found here
>>
>> LilyPond Notation Reference: 1.2.5 Bars 
>> 
>> lilypond.org 
>> 
>> [image: favicon.ico] 
>>  
>> 
>>
>>
>> 27 mars 2023 kl. 17:49 skrev Dario Marrini :
>>
>> 
>> many thanks guys,
>> and what about this : ?
>>
>> 
>>
>> the '11 in that box; I found A,B,C,D as progressive mark signes, but how
>> could I write it as a automatic progressive ?
>>
>> Il giorno lun 27 mar 2023 alle ore 17:30 Jean Abou Samra <
>> j...@abou-samra.fr> ha scritto:
>>
>>>
>>>
>>> Le 27 mars 2023 à 17:23, Dario Marrini  a
>>> écrit :
>>>
>>> 
>>> Hi lilypond people,
>>>
>>> I need to write this (multiple bars with number )
>>>
>>> 
>>>
>>>
>>> but I can't find in documentation this kind of writing;
>>>
>>>
>>>
>>> It’s here:
>>> https://lilypond.org/doc/v2.24/Documentation/notation/writing-parts#compressing-empty-measures
>>>
>>>
>>> then, I need to know, if I write this in a single part score, may I get
>>> a full series of empty bars in the complete score ?
>>>
>>>
>>> If the other parts in the full score have notes during those
>>> “compressed” rests, they will just be expanded as needed in the full score
>>> while remaining compressed in the individual parts. If for some reason you
>>> want to compress the rests in the parts but expand them in the full score
>>> *while they could be compressed* (i.e., all instruments have rests at that
>>> moment), then have a look at tags:
>>> https://lilypond.org/doc/v2.24/Documentation/notation/different-editions-from-one-source#using-tags
>>>
>>> Best,
>>>
>>> Jean
>>>
>>>
>>>


favicon.ico
Description: Binary data


Re: how to do this?

2023-03-27 Thread Dario Marrini
Thanks all,
I'm used to read as docs as possible, but I'm in trouble about names,
sometimes I dont' know how to name some resources in English (sometimes
barely in Italian...) then sometimes I spend a lot of time looking for
things I don't even know the name of...

Il giorno lun 27 mar 2023 alle ore 18:02 Leo Correia de Verdier <
leo.correia.de.verd...@gmail.com> ha scritto:

> Try
>
> \set Score.rehearsalMarkFormatter = #format-mark-box-numbers
>
> More details and explanations can be found here
>
> LilyPond Notation Reference: 1.2.5 Bars 
> 
> lilypond.org 
> 
> [image: favicon.ico] 
>  
> 
>
>
> 27 mars 2023 kl. 17:49 skrev Dario Marrini :
>
> 
> many thanks guys,
> and what about this : ?
>
> 
>
> the '11 in that box; I found A,B,C,D as progressive mark signes, but how
> could I write it as a automatic progressive ?
>
> Il giorno lun 27 mar 2023 alle ore 17:30 Jean Abou Samra <
> j...@abou-samra.fr> ha scritto:
>
>>
>>
>> Le 27 mars 2023 à 17:23, Dario Marrini  a
>> écrit :
>>
>> 
>> Hi lilypond people,
>>
>> I need to write this (multiple bars with number )
>>
>> 
>>
>>
>> but I can't find in documentation this kind of writing;
>>
>>
>>
>> It’s here:
>> https://lilypond.org/doc/v2.24/Documentation/notation/writing-parts#compressing-empty-measures
>>
>>
>> then, I need to know, if I write this in a single part score, may I get a
>> full series of empty bars in the complete score ?
>>
>>
>> If the other parts in the full score have notes during those “compressed”
>> rests, they will just be expanded as needed in the full score while
>> remaining compressed in the individual parts. If for some reason you want
>> to compress the rests in the parts but expand them in the full score *while
>> they could be compressed* (i.e., all instruments have rests at that
>> moment), then have a look at tags:
>> https://lilypond.org/doc/v2.24/Documentation/notation/different-editions-from-one-source#using-tags
>>
>> Best,
>>
>> Jean
>>
>>
>>


favicon.ico
Description: Binary data


Re: how to do this?

2023-03-27 Thread Leo Correia de Verdier
Try\set Score.rehearsalMarkFormatter = #format-mark-box-numbersMore details and explanations can be found hereLilyPond Notation Reference: 1.2.5 Barslilypond.org27 mars 2023 kl. 17:49 skrev Dario Marrini :many thanks guys, and what about this : ?the '11 in that box; I found A,B,C,D as progressive mark signes, but how could I write it as a automatic progressive ?Il giorno lun 27 mar 2023 alle ore 17:30 Jean Abou Samra  ha scritto:Le 27 mars 2023 à 17:23, Dario Marrini  a écrit :Hi lilypond people,I need to write this (multiple bars with number ) but I can't find in documentation this kind of writing;It’s here: https://lilypond.org/doc/v2.24/Documentation/notation/writing-parts#compressing-empty-measuresthen, I need to know, if I write this in a single part score, may I get a full series of empty bars in the complete score ?
If the other parts in the full score have notes during those “compressed” rests, they will just be expanded as needed in the full score while remaining compressed in the individual parts. If for some reason you want to compress the rests in the parts but expand them in the full score *while they could be compressed* (i.e., all instruments have rests at that moment), then have a look at tags: https://lilypond.org/doc/v2.24/Documentation/notation/different-editions-from-one-source#using-tagsBest,Jean


Re: how to do this?

2023-03-27 Thread Jean Abou Samra


> Le 27 mars 2023 à 17:48, Dario Marrini  a écrit :
> 
> 
> many thanks guys, 
> and what about this : ?
> 
> 
> the '11 in that box; I found A,B,C,D as progressive mark signes, but how 
> could I write it as a automatic progressive ?


I assume you mean “progression”, right?

See the different options for rehearsalMarkFormatter here: 
https://lilypond.org/doc/v2.24/Documentation/notation/bars#rehearsal-marks

Best,

Jean



Re: how to do this?

2023-03-27 Thread Ralph Palmer
Hello again, Dario Marrini -

When you have a new question, it's preferable that you start a new thread -
just in case someone else later has the same question as you do.

That said, have you read the Learning Manual :

https://lilypond.org/doc/v2.24/Documentation/learning/index.html

or the Notation Reference?

https://lilypond.org/doc/v2.24/Documentation/notation/index.html

The Learning Manual gives you an excellent starting point, and the Notation
Reference probably answers most of your questions.

For Rehearsal Marks in the Notation Reference, see

https://lilypond.org/doc/v2.24/Documentation/notation/bars#index-rehearsal-mark

All the best,

Ralph
__
Ralph Palmer
Seattle
USA
(he, him, his)
palmer.r.vio...@gmail.com


On Mon, Mar 27, 2023 at 8:49 AM Dario Marrini 
wrote:

> many thanks guys,
> and what about this : ?
>
> [image: image.png]
> the '11 in that box; I found A,B,C,D as progressive mark signes, but how
> could I write it as a automatic progressive ?
>
> Il giorno lun 27 mar 2023 alle ore 17:30 Jean Abou Samra <
> j...@abou-samra.fr> ha scritto:
>
>>
>>
>> Le 27 mars 2023 à 17:23, Dario Marrini  a
>> écrit :
>>
>> 
>> Hi lilypond people,
>>
>> I need to write this (multiple bars with number )
>>
>> [image: image.png]
>>
>> but I can't find in documentation this kind of writing;
>>
>>
>>
>> It’s here:
>> https://lilypond.org/doc/v2.24/Documentation/notation/writing-parts#compressing-empty-measures
>>
>>
>> then, I need to know, if I write this in a single part score, may I get a
>> full series of empty bars in the complete score ?
>>
>>
>> If the other parts in the full score have notes during those “compressed”
>> rests, they will just be expanded as needed in the full score while
>> remaining compressed in the individual parts. If for some reason you want
>> to compress the rests in the parts but expand them in the full score *while
>> they could be compressed* (i.e., all instruments have rests at that
>> moment), then have a look at tags:
>> https://lilypond.org/doc/v2.24/Documentation/notation/different-editions-from-one-source#using-tags
>>
>> Best,
>>
>> Jean
>>
>>
>>


Re: how to do this?

2023-03-27 Thread Dario Marrini
many thanks guys,
and what about this : ?

[image: image.png]
the '11 in that box; I found A,B,C,D as progressive mark signes, but how
could I write it as a automatic progressive ?

Il giorno lun 27 mar 2023 alle ore 17:30 Jean Abou Samra 
ha scritto:

>
>
> Le 27 mars 2023 à 17:23, Dario Marrini  a écrit :
>
> 
> Hi lilypond people,
>
> I need to write this (multiple bars with number )
>
> [image: image.png]
>
> but I can't find in documentation this kind of writing;
>
>
>
> It’s here:
> https://lilypond.org/doc/v2.24/Documentation/notation/writing-parts#compressing-empty-measures
>
>
> then, I need to know, if I write this in a single part score, may I get a
> full series of empty bars in the complete score ?
>
>
> If the other parts in the full score have notes during those “compressed”
> rests, they will just be expanded as needed in the full score while
> remaining compressed in the individual parts. If for some reason you want
> to compress the rests in the parts but expand them in the full score *while
> they could be compressed* (i.e., all instruments have rests at that
> moment), then have a look at tags:
> https://lilypond.org/doc/v2.24/Documentation/notation/different-editions-from-one-source#using-tags
>
> Best,
>
> Jean
>
>
>


Re: how to do this?

2023-03-27 Thread Jean Abou Samra


> Le 27 mars 2023 à 17:23, Dario Marrini  a écrit :
> 
> 
> Hi lilypond people,
> 
> I need to write this (multiple bars with number ) 
> 
> 
> 
> but I can't find in documentation this kind of writing;


It’s here: 
https://lilypond.org/doc/v2.24/Documentation/notation/writing-parts#compressing-empty-measures


> then, I need to know, if I write this in a single part score, may I get a 
> full series of empty bars in the complete score ?

If the other parts in the full score have notes during those “compressed” 
rests, they will just be expanded as needed in the full score while remaining 
compressed in the individual parts. If for some reason you want to compress the 
rests in the parts but expand them in the full score *while they could be 
compressed* (i.e., all instruments have rests at that moment), then have a look 
at tags: 
https://lilypond.org/doc/v2.24/Documentation/notation/different-editions-from-one-source#using-tags

Best,

Jean




Re: how to do this?

2023-03-27 Thread Ralph Palmer
Hi, Dario M. -

I don't know about the full score (I expect you have to put the rests in
each part), but for the empty measure rests, please see:

https://lilypond.org/doc/v2.23/Documentation/notation/writing-rests#full-measure-rests

HTH,

Ralph
__
Ralph Palmer
Seattle
USA
(he, him, his)
palmer.r.vio...@gmail.com


On Mon, Mar 27, 2023 at 8:22 AM Dario Marrini 
wrote:

> Hi lilypond people,
>
> I need to write this (multiple bars with number )
>
> [image: image.png]
>
> but I can't find in documentation this kind of writing; then, I need to
> know, if I write this in a single part score, may I get a full series of
> empty bars in the complete score ?
>
> thanks
>   dario m.
>


how to do this?

2023-03-27 Thread Dario Marrini
Hi lilypond people,

I need to write this (multiple bars with number )

[image: image.png]

but I can't find in documentation this kind of writing; then, I need to
know, if I write this in a single part score, may I get a full series of
empty bars in the complete score ?

thanks
  dario m.


Re: Vertical position of Tie and Script

2023-03-27 Thread Masaki, Akikazu

Thanks a lot.  I didn't know outside-staff-priority is available with Tie.
However, a tenuto is distant a bit from a note with this way.
(Script position seems to be calculated closer to tie than note.)

I think modifying the priority is conceptually more appropriate, but forcing 
the offset will be fit for desirable output.


Akikazu



On 2023/03/26 21:21, Aaron Hill wrote:

On 2023-03-26 4:45 am, Mark Mathias wrote:

Perhaps try:



\version "2.24.0"
{
   \override Tie.outside-staff-priority = #1375
   c''1--~ c''
   c''1--~ c''
}

%

And, of course, add "\once" for a particular instance.


When you find you are doing \once \override, you should consider \tweak:


{ c''1-- \tweak outside-staff-priority 12345 ~ c'' }


If this is something you need to do a lot, you can define a cheeky shorthand:


veryOutside = \tweak outside-staff-priority 8675309 \etc

{ c''1-- \veryOutside ~ c'' }



-- Aaron Hill




Re: Vertical position of Tie and Script

2023-03-27 Thread Masaki, Akikazu

Thanks.  It's an actual tie, so a slur is not suitable.
My example was too simple to represent a real situation, that some objects 
interrupt a tie.

{
  \override Tie.staff-position = 5
  c''1--~
  \key des \major
  \time 12/8
  c''1.
}


Akikazu



On 2023/03/26 4:07, Knute Snortum wrote:

On Sat, Mar 25, 2023 at 9:16 AM Masaki, Akikazu <
masaki-0.56714...@zeus.eonet.ne.jp> wrote:


Hello,

How to set script position closer to its note than ties?
In default, ties are always closer to the note than scripts, but depending
on the case, contrary is better.

e.g.

\version "2.24.0"
{
\override Tie.staff-position = 5
c''1--~ c''
}


In this case, the tenuto should be placed immediately above the note.
Perhaps overriding Script.extra-offset is one of solutions, but is there
another property controlling the priority of Tie and Script?



Does it have to be a tie?  It looks more like a slur, in which case you
could write:

\version "2.24.0"
{
\override Script.avoid-slur = #'inside
c''1--( c'')
}

Or else you could force the Y-offset of the tenuto:

\version "2.24.0"
{
\override Tie.staff-position = 5
\override Script.Y-offset = 1.5
c''1--~ c''
}

--
Knute Snortum