Re: Separate a tuplet from the rest under a common beam

2022-12-14 Thread Archer Endrich

Hello,

I often have varied groupings under one beam and have used the solution 
given by Michael Werner.  However, I have also created the following to 
simplify entering the commands and the look of the score file:


bcLnone = \set stemLeftBeamCount = #0
bcRone = \set stemRightBeamCount = #1
bcLone = \set stemLeftBeamCount = #1
bcRtwo = \set stemRightBeamCount = #2
bcLtwo = \set stemLeftBeamCount = #2

Such as in:

\times 2/3 {f'16([ b, \bcRone f' ~} \bcLone f16 b,] ~ b16[ \bcRone f' ~ 
\bcLone f32-- b,16.] f'32[ b, ~ b8 f'16] ~ \times 4/6 {f16 b, \bcRone f' 
~ \bcLone f b, f'] ~} | \times 2/3 {f16[ b, \bcRone f' ~} \bcLone f32 b, 
f' b,] f'32[ b,32 ~ b8]) r16 fis'32([ b, ~ b8 fis'16] ~ \times 4/6 { 
fis16[ b, \bcRone fis' ~ \bcLone fis b, fis'])} |


beam count example
Archer


On 14/12/2022 16:24, Michael Werner wrote:

Resending to include the list ... oops.

Something like this, perhaps?

\version "2.23.82"

\relative  {
  \clef treble
  \key c \minor
  \time 2/4
  \tuplet 3/2 { g'16[( aes \set stemRightBeamCount = #1 g) } \set 
stemLeftBeamCount = #1 fis g] a8 b |

}


On Wed, Dec 14, 2022 at 10:42 AM Volodymyr Prokopyuk 
 wrote:


Hello,

*Problem*

How can I separate a \tuplet from two sixteenths using a common
eightingth beam?

*Example code*

\version "2.23.81"

\relative {
  \clef treble
  \key c \minor
  \time 2/4
  \tuplet 3/2 { g'='16[( aes g) } fis g] a8 b |
}

image.png


*Desired result*
image.png

I've tried to adjust the baseMoment, beatStructure, subdivideBeats
and strictBeatBeaming but without success.

Thank you very much,
Vlad
\version "2.22.1"
% beamcountexample.ly


%Shorthand for setting the beam count:
bcLnone = \set stemLeftBeamCount = #0
bcRone = \set stemRightBeamCount = #1
bcLone = \set stemLeftBeamCount = #1
bcRtwo = \set stemRightBeamCount = #2
bcLtwo = \set stemLeftBeamCount = #2

\score {

 \new Staff {
 \relative c {
 \clef "treble_8"
 \time 4/4
 \override TupletBracket.bracket-visibility = ##t

 \times 2/3 {f'16([ b, \bcRone f' ~} \bcLone f16 b,] ~ b16[ \bcRone f' ~ \bcLone f32-- b,16.] f'32[ b, ~ b8 f'16] ~ \times 4/6 {f16 b, \bcRone f' ~ \bcLone f b, f'] ~} | \times 2/3 {f16[ b, \bcRone f' ~} \bcLone f32 b, f' b,] f'32[ b,32 ~ b8]) r16 fis'32([ b, ~ b8 fis'16] ~ \times 4/6 { fis16[ b, \bcRone fis' ~ \bcLone fis b, fis'])} | 
 }
 }

}


Re: Separate a tuplet from the rest under a common beam

2022-12-14 Thread Volodymyr Prokopyuk
Thank you Michael and Mats!

I'll go with Mat's response!

Vlad

On Wed, Dec 14, 2022 at 5:35 PM Mats Bengtsson 
wrote:

> Just copying and pasting from the example of subdividing beams at
> https://lilypond.org/doc/v2.23/Documentation/notation/beams, I tried the
> following, which seems to give the desired result.
>
> \version "2.23.81"
>
>
> \relative {
>\clef treble
>\key c \minor
>\time 2/4
>\set subdivideBeams = ##t
>\set baseMoment = #(ly:make-moment 1/8)
>\tuplet 3/2 { g'='16[( aes g) } fis g] a8 b |
> }
>
> /Mats
>
> On 2022-12-14 16:41, Volodymyr Prokopyuk wrote:
> > Hello,
> >
> > *Problem*
> >
> > How can I separate a \tuplet from two sixteenths using a common
> > eightingth beam?
> >
> > *Example code*
> >
> > \version "2.23.81"
> >
> > \relative {
> >   \clef treble
> >   \key c \minor
> >   \time 2/4
> >   \tuplet 3/2 { g'='16[( aes g) } fis g] a8 b |
> > }
> >
> > image.png
> >
> >
> > *Desired result*
> > image.png
> >
> > I've tried to adjust the baseMoment, beatStructure, subdivideBeats and
> > strictBeatBeaming but without success.
> >
> > Thank you very much,
> > Vlad
> >
>


Re: Separate a tuplet from the rest under a common beam

2022-12-14 Thread Paul Scott

Most likely before your time at Lilypond.  I used it a lot then.

Paul


On 12/14/22 10:04, David Kastrup wrote:

Paul Scott  writes:


Good to know.  Many many versions ago we could just nest square
brackets.

Not to my knowledge.  We had some handwaving discussions at some point
of time, but there were solid reasons against such an idea.





Re: Separate a tuplet from the rest under a common beam

2022-12-14 Thread David Kastrup
Paul Scott  writes:

> Good to know.  Many many versions ago we could just nest square
> brackets.

Not to my knowledge.  We had some handwaving discussions at some point
of time, but there were solid reasons against such an idea.

-- 
David Kastrup



Re: Separate a tuplet from the rest under a common beam

2022-12-14 Thread Mats Bengtsson
Just copying and pasting from the example of subdividing beams at 
https://lilypond.org/doc/v2.23/Documentation/notation/beams, I tried the 
following, which seems to give the desired result.


\version "2.23.81"


\relative {
  \clef treble
  \key c \minor
  \time 2/4
  \set subdivideBeams = ##t
  \set baseMoment = #(ly:make-moment 1/8)
  \tuplet 3/2 { g'='16[( aes g) } fis g] a8 b |
}

   /Mats

On 2022-12-14 16:41, Volodymyr Prokopyuk wrote:

Hello,

*Problem*

How can I separate a \tuplet from two sixteenths using a common 
eightingth beam?


*Example code*

\version "2.23.81"

\relative {
  \clef treble
  \key c \minor
  \time 2/4
  \tuplet 3/2 { g'='16[( aes g) } fis g] a8 b |
}

image.png


*Desired result*
image.png

I've tried to adjust the baseMoment, beatStructure, subdivideBeats and 
strictBeatBeaming but without success.


Thank you very much,
Vlad





Re: Separate a tuplet from the rest under a common beam

2022-12-14 Thread Paul Scott

Good to know.  Many many versions ago we could just nest square brackets.

Paul


On 12/14/22 09:24, Michael Werner wrote:

Resending to include the list ... oops.

Something like this, perhaps?

\version "2.23.82"

\relative  {
  \clef treble
  \key c \minor
  \time 2/4
  \tuplet 3/2 { g'16[( aes \set stemRightBeamCount = #1 g) } \set 
stemLeftBeamCount = #1 fis g] a8 b |

}


On Wed, Dec 14, 2022 at 10:42 AM Volodymyr Prokopyuk 
 wrote:


Hello,

*Problem*

How can I separate a \tuplet from two sixteenths using a common
eightingth beam?

*Example code*

\version "2.23.81"

\relative {
  \clef treble
  \key c \minor
  \time 2/4
  \tuplet 3/2 { g'='16[( aes g) } fis g] a8 b |
}

image.png


*Desired result*
image.png

I've tried to adjust the baseMoment, beatStructure, subdivideBeats
and strictBeatBeaming but without success.

Thank you very much,
Vlad


Re: Separate a tuplet from the rest under a common beam

2022-12-14 Thread Michael Werner
Resending to include the list ... oops.

Something like this, perhaps?

\version "2.23.82"

\relative  {
  \clef treble
  \key c \minor
  \time 2/4
  \tuplet 3/2 { g'16[( aes \set stemRightBeamCount = #1 g) } \set
stemLeftBeamCount = #1 fis g] a8 b |
}


On Wed, Dec 14, 2022 at 10:42 AM Volodymyr Prokopyuk <
volodymyrprokop...@gmail.com> wrote:

> Hello,
>
> *Problem*
>
> How can I separate a \tuplet from two sixteenths using a common
> eightingth beam?
>
> *Example code*
>
> \version "2.23.81"
>
> \relative {
>   \clef treble
>   \key c \minor
>   \time 2/4
>   \tuplet 3/2 { g'='16[( aes g) } fis g] a8 b |
> }
>
> [image: image.png]
>
>
> *Desired result*
> [image: image.png]
>
> I've tried to adjust the baseMoment, beatStructure, subdivideBeats and
> strictBeatBeaming but without success.
>
> Thank you very much,
> Vlad
>
>


Separate a tuplet from the rest under a common beam

2022-12-14 Thread Volodymyr Prokopyuk
Hello,

*Problem*

How can I separate a \tuplet from two sixteenths using a common eightingth
beam?

*Example code*

\version "2.23.81"

\relative {
  \clef treble
  \key c \minor
  \time 2/4
  \tuplet 3/2 { g'='16[( aes g) } fis g] a8 b |
}

[image: image.png]


*Desired result*
[image: image.png]

I've tried to adjust the baseMoment, beatStructure, subdivideBeats and
strictBeatBeaming but without success.

Thank you very much,
Vlad