Re: Regexp Functions

2020-06-08 Thread Michael Gerdau
Hi! I find your description difficult to understand. Maybe you could provide an set of examples showing exactly what you wish to be modified into what. Apart from that your problem sounds as if it is trivial when using non greedy regular expressions. As Aaron already wrote you need expressions

Re: Regexp Functions

2020-06-08 Thread Freeman Gilmore
Caio and Arron: I am writing this at the top to start over and answer Caio's questions. Say you have an accidental string name "A..." and the stem is up; then the same accidental with the stem down would be named "-A...". "A".. would be a short string like LilyPond uses for accidental

Re: Increase/decrease space after barline or after time signature

2020-06-08 Thread Owen Lamb
Hi Paolo, To customize spacing after a barline or time signature grob (or any other similar grob, like a clef), you can try overriding properties in its space-alist. The first-note property dictates spacing when a grob is next to the first note in a line; the next-note property is for when this ha

Increase/decrease space after barline or after time signature

2020-06-08 Thread Paolo Prete
Hello, how can I increase/decrease the horizontal gap between 1) the time signature and the first note of the bar 2) the barline and the first note of the bar ...? Thanks!

Re: Hidden dynamic that can be heard on midi ouput

2020-06-08 Thread Paolo Prete
> > > > > Use an event function, or add a direction indicator. The explanation is > here > https://lilypond.org/doc/v2.20/Documentation/extending/event-functions > > -- > Thanks!

Re: Regexp Functions

2020-06-08 Thread Aaron Hill
On 2020-06-08 12:47 pm, Caio Barros wrote: Hello! Em seg., 8 de jun. de 2020 às 08:37, Freeman Gilmore < freeman.gilm...@gmail.com> escreveu: If the string is "A ... B ... " , using Regexp Functions is it possible, if 'A' matches [-] then 'B' would be replaced by "C"?'A' is first in the

Re: Regexp Functions

2020-06-08 Thread Caio Barros
Hello! Em seg., 8 de jun. de 2020 às 08:37, Freeman Gilmore < freeman.gilm...@gmail.com> escreveu: > If the string is "A ... B ... " , using Regexp Functions is it > possible, if 'A' matches [-] then 'B' would be replaced by "C"?'A' > is first in the string. Position of B is not constant.a

Re: Hidden dynamic that can be heard on midi ouput

2020-06-08 Thread Timothy Lanfear
On 08/06/2020 17:36, Paolo Prete wrote: On Mon, Jun 8, 2020 at 6:33 PM Paolo Prete > wrote: Hello, it can be useful to create dynamics that can be heard only in the midi output. Then I used the below procedure. However, if I try to make a function

Re: Hidden dynamic that can be heard on midi ouput

2020-06-08 Thread Paolo Prete
On Mon, Jun 8, 2020 at 6:33 PM Paolo Prete wrote: > Hello, > > it can be useful to create dynamics that can be heard only in the midi > output. Then I used the below procedure. However, if I try to make a > function with the same command, there's a syntax error. How can I fix it? > Thanks! > > >

Hidden dynamic that can be heard on midi ouput

2020-06-08 Thread Paolo Prete
Hello, it can be useful to create dynamics that can be heard only in the midi output. Then I used the below procedure. However, if I try to make a function with the same command, there's a syntax error. How can I fix it? Thanks! %% midiDynamic = #(define-music-function (parser locati

Re: Re: Breath with fermata

2020-06-08 Thread Pierre Perol-Schneider
Hi Mats, Le lun. 8 juin 2020 à 16:57, Mats Bengtsson a écrit : > Why not use the breath mark that LilyPond uses by default, instead of > the textual comma sign: \musicglyph "scripts.rcomma" ? > Or simply "comma"? \version "2.20.0" breatheWithFermata = #(define-music-function (offs) (number

Re: Re: Breath with fermata

2020-06-08 Thread Mats Bengtsson
On 2020-06-08 15:55, Pierre Perol-Schneider wrote: Hi Paolo, Just to avoid any surprise, I'd add \once before the overrides. Also, I found the comma size a little too big compare to the fermata dot, E.g.: \version "2.20.0" breatheWithFermata =   #(define-music-function (offs) (number?)    

Re: Breath with fermata

2020-06-08 Thread Pierre Perol-Schneider
Hi Paolo, Just to avoid any surprise, I'd add \once before the overrides. Also, I found the comma size a little too big compare to the fermata dot, E.g.: \version "2.20.0" breatheWithFermata = #(define-music-function (offs) (number?) #{ \once\override BreathingSign.Y-offset = $offs

Re: Breath with fermata

2020-06-08 Thread Paolo Prete
On Sun, Jun 7, 2020 at 9:01 PM Pierre Perol-Schneider < pierre.schneider.pa...@gmail.com> wrote: > Hi Paolo, > How about: > > breatheWithFermata = #(define-music-function (parser location offs) > (number?) > #{ > \override BreathingSign.Y-offset = $offs > \override BreathingSign.text = \markup

Regexp Functions

2020-06-08 Thread Freeman Gilmore
If the string is "A ... B ... " , using Regexp Functions is it possible, if 'A' matches [-] then 'B' would be replaced by "C"?'A' is first in the string. Position of B is not constant.and may not be there. Thank you, ƒg