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 \fix
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
Actually no, that does not work for the end.
signature.asc
Description: This is a digitally signed message part.
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.
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
>
> 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.
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 displ
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
and the
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
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 like
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, 22
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
signature.a
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
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
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
jb
15 matches
Mail list logo