Re: combining chords in chords

2021-04-23 Thread Valentin Petzel
Yes, but that has again a problem when jb has multiple Chords. Should be possible to write a music function for this. Am Freitag, 23. April 2021, 09:51:03 CEST schrieb David Kastrup: > Valentin Petzel writes: > > But actually, an even better way would probably be > > > > music = \new Voice

Re: combining chords in chords

2021-04-23 Thread David Kastrup
Valentin Petzel writes: > But actually, an even better way would probably be > > music = \new Voice \fixed c { <>[ \ja \jb <>] } More like music = \new Voice \fixed c { <>[ \ja <>] \jb } -- David Kastrup

Re: combining chords in chords

2021-04-23 Thread Valentin Petzel
Actually no, that does not work for the end. signature.asc Description: This is a digitally signed message part.

Re: combining chords in chords

2021-04-23 Thread Valentin Petzel
But actually, an even better way would probably be music = \new Voice \fixed c { <>[ \ja \jb <>] } signature.asc Description: This is a digitally signed message part.

Re: combining chords in chords

2021-04-23 Thread Valentin Petzel
Hello Gianmaria, I cannot talk about the other stuff, but the line music = \new Voice \fixed c \ja s[ \jb s] % Valentin solution Should be music = \new Voice \fixed c { <<\ja s[>> <<\jb s]>> } % Valentin solution Cheers, Valentin signature.asc Description: This is a digitally signed message

Re: combining chords in chords

2021-04-22 Thread Gianmaria Lari
> > If the only purpose for using tags is to generate different octaves in the > midi and the display, it would be much easier to just change the octavation > of the clef. > > Nice escamotage Carl :)) But no, the visual representation and the midi output do not differ only in the octave. g.

Re: combining chords in chords

2021-04-22 Thread David Kastrup
Carl Sorensen writes: > If the only purpose for using tags is to generate different octaves in > the midi and the display, it would be much easier to just change the > octavation of the clef. > > { > >\override Staff.ClefModifier.transparent = ##t >\clef "treble_8" c1 > > } > > This

Re: combining chords in chords

2021-04-22 Thread Carl Sorensen
From: lilypond-user on behalf of Carl Sorensen Date: Thursday, April 22, 2021 at 4:24 PM To: Gianmaria Lari , Valentin Petzel , Aaron Hill Cc: lilypond-user Subject: Re: combining chords in chords If the only purpose for using tags is to generate different octaves in the midi

Re: combining chords in chords

2021-04-22 Thread Carl Sorensen
If the only purpose for using tags is to generate different octaves in the midi and the display, it would be much easier to just change the octavation of the clef. { \override Staff.ClefModifier.transparent = ##t \clef "treble_8" c1 } This displays c as c’ in the score, and plays it as

Re: combining chords in chords

2021-04-22 Thread Gianmaria Lari
Thank you Aaron and Valentin for your help and your codes. It worked perfectly in my previous example. Is it possible to make it working also with tags? Here is a bit of information. In my code, I use tags to generate two different outputs, one for midi and one for layout. So my variables are

Re: combining chords in chords

2021-04-22 Thread Gianmaria Lari
Ciao Valentin, thanks for your code, it works and it is very simple. Before asking my question, I had tried a solution similar to yours, I used <>. Unfortunately it didn't work because I forgot to specify it also after \kc. Thanks for your help and the explanation. Best regards, g. On Thu,

Re: combining chords in chords

2021-04-22 Thread Valentin Petzel
Hello Gianmaria, Your problem here is that the postfixed [ adds an event the the note it is applied to. Now, this does not work with macros. In such cases you can do something like this << \ka s[ >> \kb << \kc s] >> So just apply the event to a simultaneous skip. Cheers, Valentin

Re: combining chords in chords

2021-04-22 Thread Gianmaria Lari
Dear Aaron, > How can I solve this? > > Here's a way that involves merging the elements of the two EventChords: > [...] that's great It seems to work perfectly. Thanks a lot Aaron!! Gianmaria

Re: combining chords in chords

2021-04-22 Thread Aaron Hill
On 2021-04-22 6:01 am, Gianmaria Lari wrote: I have some variables, each containing one chord as in the following example: [...] How can I solve this? Here's a way that involves merging the elements of the two EventChords: \version "2.22.0" ja = 8 jb = 8 jc = 8 mergeChords = #(begin

combining chords in chords

2021-04-22 Thread Gianmaria Lari
I have some variables, each containing one chord as in the following example: ja = 8 jb = 8 jc = 8 and some other variables combining them, like this: ka = <<\ja \jb>> kb = <<\ja \jc>> kc = <<\jb \jc>> This is a working example engraving \ka \kb and \kc: \version "2.23.2" ja = 8