“SubdivideBeams” problem

2021-10-31 Thread Николай Аничков
Greetings! Please help me fix beams. From the third line, I need to
separate the group of 32nd notes, but leave them under the same beam with
the previous notes. These errors appear in other cases as well. There are
also problems with grouping in the 17th and 18th bars. This cannot be
corrected even by the command (subdivide beams).Meanwhile, in some cases,
the command works correctly
[image: image.png]
\version "2.20.0"

%{
  LilyPond file definitions for Highland snare drum scores.
  Version 2.0
  Originally contributed by Simon Froger, with help from
  Pierre Perol-Schneider and Gilles Thibault.
  
  Please save the following definitions as scottish-drums.ily
  and add this line to your score:
  \include "[path]/scottish-drums.ily"
  
  Music should then be written inside
  \new DrumStaff {
\drummode {
 [music]
}
  }
  or by using the \drums { [music] } shortcut.

QUICK GUIDE:

d: (`droit’) right hand stroke
g: (`gauche’) left hand stroke

->: accent
\v: strong accent
  
FLA and DRAG are to be inserted *before* the note.

RA takes the following note as an argument,
optionally preceded by a number to be
printed as the tremolo count.

%}

% note names definition:
% d for the right hand, g for the left one.
drumPitchNames =
#(append
  '((d . main-droite)
(g . main-gauche))
  drumPitchNames)

% right hand should be printed above the staff line,
% left hand below.
#(define mysnaredrums
   '((main-droite  default  #f  1)
 (main-gauche  default  #f  -1)))

% marges internes :
\paper {
  markup-system-spacing.basic-distance = #15
  system-system-spacing.basic-distance = #15
}

\layout {
  indent = 0
  % Stems need to make some room for RA count numbers.
  % If actual ordinary markups are required, these will
  % need to be preceded with \textLengthOff
  \textLengthOn
  \dynamicUp
  \set DrumStaff.drumStyleTable = #(alist->hash-table mysnaredrums)
  \context {
\DrumStaff
% one-line staff
\override StaffSymbol.line-positions = #'(0)
% bar lines
\override BarLine.bar-extent = #'(-2 . 2)
% stems
\override Stem.direction = #-1
\override Stem.length = #11
\override Stem.stemlet-length = #1.5
% horizontal beams
\override Beam.positions = #'(-5.5 . -5.5)
% RA count numbers below the curves
\override TextScript.outside-staff-priority = ##f
\override TextScript.side-axis = #0
\override TextScript.staff-padding = #3
\override TextScript.X-offset = #2
\override TextScript.extra-offset = #'(-0.3 . 0)
% tremolos (RA)
\override StemTremolo.slope = #0.5
\override StemTremolo.beam-width = #1.5
\override StemTremolo.beam-thickness = #0.3
\override StemTremolo.extra-offset = #'(0 . 0.6)
%\override StemTremolo.Y-offset = #-3.3
% Repeat brackets:
\consists "Horizontal_bracket_engraver"
\override HorizontalBracket.staff-padding = #8
\override HorizontalBracket.direction = #DOWN
\override HorizontalBracket.bracket-flare = #'(0 . 0)
  }
  \context {
\Score
\override RehearsalMark.break-align-symbols = #'(clef)
\override RehearsalMark.padding = #3
\override VoltaBracket.edge-height = #'(1.5 . 1.5)
  }
}

% grace notes :
startGraceMusic = {
  \stemUp
  \tiny
  \override Flag.stroke-style = #"grace"% slashed stems
  \once \override Beam.positions = #'(3 . 3)  % beam position for drag notes
  \once \override DrumStaff.Stem.length = #7  % end beam position
}
stopGraceMusic =  {
  %\override Beam.positions = #'(-6 . -6)
  \revert Flag.stroke-style
  %\revert DrumStaff.Stem.length
  \normalsize
  \stemNeutral
}

%%%
%%  SPECIAL FUNCTIONS:  %%%
%%%

% TRIPLETS & QUINTUPLETS:

triplet =
#(define-music-function (parser location myMusic) (ly:music?)
   #{ \drummode { \tuplet 3/2 { #myMusic } } #})

quintuplet =
#(define-music-function (parser location myMusic) (ly:music?)
   #{ \drummode { \tuplet 5/4 { #myMusic } } #})


% DYNAMICS:
v =
#(define-event-function (parser location) ()
   #{ \upbow #})

% DYNAMICS WITH EXTENDERS:
dynLine =
#(define-music-function (parser location text) (markup?)
   #{
 \once \override TextSpanner.style = #'line
 \once \override TextSpanner.bound-details.left.text = \markup {
   \combine
   \draw-line #'(0 . -1)
   \draw-line #'(1 . 0)
   \dynamic #text
 }
 \once \override TextSpanner.bound-details.right.text = \markup {
   \draw-line #'(0 . -1)
 }
   #})


% REPEAT BRACKETS:
% Beginning:
dr =
#(define-event-function (parser location) ()
   #{ \startGroup #})
% Ending :
fr =
#(define-event-function (parser location) ()
   #{ \stopGroup #})

% On one single note :
rn = \markup \lower #4 \halign #1 {
  \path #0.1 #'((moveto 0 0)
(lineto 0 -1)
(lineto 2 -1)
(lineto 2 0))
}



% FLAS and DRAGS:
fla =
#(define-music-function (parser location myNote) (ly:music?)
   (define test
 (filter
  (lambda 

Reverse unison brackets position

2021-04-26 Thread Николай Аничков
Hi! You could tell me how to change the position of the unison brackets
from bottom to top.
[image: Файл]
Tripping-up-the-stairs.ly
<https://drive.google.com/file/d/17Ur5TEf05TBq8Kr40cVabQ2a4cF8KKrC/view?usp=drivesdk>
-- 
С уважением, Николай Аничков.


Tuplets and line break confusion

2021-04-24 Thread Николай Аничков
Hello! I am faced with the problem of displaying some rhythms. For example,
the third and seventh measures look different, although they are simply
copied. The line break is not displayed at all and furthermore it destroys
the league between the fourth and fifth bars.

-- 
С уважением, Николай Аничков.
\version "2.20.0"
%{
  LilyPond file definitions for Highland snare drum scores.
  Version 2.0
  Originally contributed by Simon Froger, with help from
  Pierre Perol-Schneider and Gilles Thibault.
  
  Please save the following definitions as scottish-drums.ily
  and add this line to your score:
  \include "[path]/scottish-drums.ily"
  
  Music should then be written inside
  \new DrumStaff {
\drummode {
 [music]
}
  }
  or by using the \drums { [music] } shortcut.

QUICK GUIDE:

d: (`droit’) right hand stroke
g: (`gauche’) left hand stroke

->: accent
\v: strong accent
  
FLA and DRAG are to be inserted *before* the note.

RA takes the following note as an argument,
optionally preceded by a number to be
printed as the tremolo count.

%}

% note names definition:
% d for the right hand, g for the left one.
drumPitchNames =
#(append
  '((d . main-droite)
(g . main-gauche))
  drumPitchNames)

% right hand should be printed above the staff line,
% left hand below.
#(define mysnaredrums
   '((main-droite  default  #f  1)
 (main-gauche  default  #f  -1)))

% marges internes :
\paper {
  markup-system-spacing.basic-distance = #15
  system-system-spacing.basic-distance = #15
}

\layout {
  indent = 0
  % Stems need to make some room for RA count numbers.
  % If actual ordinary markups are required, these will
  % need to be preceded with \textLengthOff
  \textLengthOn
  \dynamicUp
  \set DrumStaff.drumStyleTable = #(alist->hash-table mysnaredrums)
  \context {
\DrumStaff
% one-line staff
\override StaffSymbol.line-positions = #'(0)
% bar lines
\override BarLine.bar-extent = #'(-2 . 2)
% stems
\override Stem.direction = #-1
\override Stem.length = #11
\override Stem.stemlet-length = #1.5
% horizontal beams
\override Beam.positions = #'(-5.5 . -5.5)
% RA count numbers below the curves
\override TextScript.outside-staff-priority = ##f
\override TextScript.side-axis = #0
\override TextScript.staff-padding = #3
\override TextScript.X-offset = #2
\override TextScript.extra-offset = #'(-0.3 . 0)
% tremolos (RA)
\override StemTremolo.slope = #0.5
\override StemTremolo.beam-width = #1.5
\override StemTremolo.beam-thickness = #0.3
\override StemTremolo.extra-offset = #'(0 . 0.6)
%\override StemTremolo.Y-offset = #-3.3
% Repeat brackets:
\consists "Horizontal_bracket_engraver"
\override HorizontalBracket.staff-padding = #8
\override HorizontalBracket.direction = #DOWN
\override HorizontalBracket.bracket-flare = #'(0 . 0)
  }
  \context {
\Score
\override RehearsalMark.break-align-symbols = #'(clef)
\override RehearsalMark.padding = #3
\override VoltaBracket.edge-height = #'(1.5 . 1.5)
  }
}

% grace notes :
startGraceMusic = {
  \stemUp
  \tiny
  \override Flag.stroke-style = #"grace"% slashed stems
  \once \override Beam.positions = #'(3 . 3)  % beam position for drag notes
  \once \override DrumStaff.Stem.length = #7  % end beam position
}
stopGraceMusic =  {
  %\override Beam.positions = #'(-6 . -6)
  \revert Flag.stroke-style
  %\revert DrumStaff.Stem.length
  \normalsize
  \stemNeutral
}

%%%
%%  SPECIAL FUNCTIONS:  %%%
%%%

% TRIPLETS & QUINTUPLETS:

triplet =
#(define-music-function (parser location myMusic) (ly:music?)
   #{ \drummode { \tuplet 3/2 { #myMusic } } #})

quintuplet =
#(define-music-function (parser location myMusic) (ly:music?)
   #{ \drummode { \tuplet 5/4 { #myMusic } } #})


% DYNAMICS:
v =
#(define-event-function (parser location) ()
   #{ \upbow #})

% DYNAMICS WITH EXTENDERS:
dynLine =
#(define-music-function (parser location text) (markup?)
   #{
 \once \override TextSpanner.style = #'line
 \once \override TextSpanner.bound-details.left.text = \markup {
   \combine
   \draw-line #'(0 . -1)
   \draw-line #'(1 . 0)
   \dynamic #text
 }
 \once \override TextSpanner.bound-details.right.text = \markup {
   \draw-line #'(0 . -1)
 }
   #})


% REPEAT BRACKETS:
% Beginning:
dr =
#(define-event-function (parser location) ()
   #{ \startGroup #})
% Ending :
fr =
#(define-event-function (parser location) ()
   #{ \stopGroup #})

% On one single note :
rn = \markup \lower #4 \halign #1 {
  \path #0.1 #'((moveto 0 0)
(lineto 0 -1)
(lineto 2 -1)
(lineto 2 0))
}



% FLAS and DRAGS:
fla =
#(define-music-function (parser location myNote) (ly:music?)
 

Make two headers on the same page

2021-04-23 Thread Николай Аничков
Hello! Please help me create two titles on the same page. When I edit the
second title, it replaces the first one.--
С уважением, Николай Аничков.