Re: Change the duration of a chord defined as a variable

2018-03-06 Thread David Kastrup
paolo prete writes: > David, > > I wonder if is there another solution for obtaining the same result, > because the discussed one is too much unstable. Here's the template, below. > I googled how to change a chord duration, but I found nothing. You change the duration of any event inside the cho

Re: Change the duration of a chord defined as a variable

2018-03-06 Thread paolo prete
David, I wonder if is there another solution for obtaining the same result, because the discussed one is too much unstable. Here's the template, below. I googled how to change a chord duration, but I found nothing. chord = 4 -> \mp newChord = { % add \chord with a new fixed

Re: Change the duration of a chord defined as a variable

2018-03-06 Thread David Kastrup
paolo prete writes: > 2018-03-06 13:32 GMT+01:00 David Kastrup : > >> Take a look at the PDF. They are there. >> > > > David, > I can't see them with my version (master) > I tried with lilybin too (both stable and unstable) and it doesn't even > compile: > > http://lilybin.com/rotn1l/1 It works

Re: Change the duration of a chord defined as a variable

2018-03-06 Thread paolo prete
2018-03-06 13:32 GMT+01:00 David Kastrup : > Take a look at the PDF. They are there. > David, I can't see them with my version (master) I tried with lilybin too (both stable and unstable) and it doesn't even compile: http://lilybin.com/rotn1l/1 ___ l

Re: Change the duration of a chord defined as a variable

2018-03-06 Thread David Kastrup
paolo prete writes: > 2018-03-06 13:15 GMT+01:00 David Kastrup : > >> >> Have you even tried what happens with articulations? >> > > Yes, I tried with: > > > %%% > chord = \mp > > newChord = > { > <$@(ly:music-property chord 'elements) >8 $@(ly:music-property chord > 'articulations

Re: Change the duration of a chord defined as a variable

2018-03-06 Thread paolo prete
; > > Hello. > > > > How can I change the duration of a chord defined as a variable? > > I want to obtain something like: > > > > chord = > > > > { \chord 8 } > > \version "2.18.0" > chord = > #(define-music-function (parser location

Re: Change the duration of a chord defined as a variable

2018-03-06 Thread paolo prete
2018-03-06 13:15 GMT+01:00 David Kastrup : > > Have you even tried what happens with articulations? > Yes, I tried with: %%% chord = \mp newChord = { <$@(ly:music-property chord 'elements) >8 $@(ly:music-property chord 'articulations ) } #(display (ly:music-property chord 'artic

Re: Change the duration of a chord defined as a variable

2018-03-06 Thread David Kastrup
paolo prete writes: >> paolo prete writes: >> >> > Hi David, >> > in the snippet below, is it possible to set a new duration of \newChord in >> > the variable definition? >> > Thanks >> > >> > chord = 4 >> > newChord = #(make-event-chord (ly:music-property chord 'elements)) >> > >> > { >> > \ne

Re: Change the duration of a chord defined as a variable

2018-03-06 Thread David Kastrup
paolo prete writes: > Hi David, > in the snippet below, is it possible to set a new duration of \newChord in > the variable definition? > Thanks > > chord = 4 > newChord = #(make-event-chord (ly:music-property chord 'elements)) > > { > \newChord > } Well, the lazy way would be { <$@(ly:musi

Re: Change the duration of a chord defined as a variable

2018-03-06 Thread paolo prete
Great. Is there also way to add the articulations of chord to newChord ? 2018-03-06 12:46 GMT+01:00 David Kastrup : > paolo prete writes: > > > Hi David, > > in the snippet below, is it possible to set a new duration of \newChord > in > > the variable definition? > > Thanks > > > > chord = 4 > >

Re: Change the duration of a chord defined as a variable

2018-03-06 Thread David Kastrup
paolo prete writes: > Hello. > > How can I change the duration of a chord defined as a variable? > I want to obtain something like: > > chord = > > { \chord 8 } \version "2.18.0" chord = #(define-music-function (parser location dur) (ly:duration?) #{

Change the duration of a chord defined as a variable

2018-03-06 Thread paolo prete
Hello. How can I change the duration of a chord defined as a variable? I want to obtain something like: chord = { \chord 8 } Thanks. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user