Vertical alignement

2024-05-27 Thread Volodymyr Prokopyuk
Hi, How can I align vertically blocks 3. and 4. in the second column? [image: image.png] The markup is attached in a file. Thank you, Vlad \markup \fill-line { \null \line { \vspace #1.5 "1." \column { "Поблискують черешеньки" "В листі зелененькім," "Черешеньки

Finish engraving book scores on an even page

2024-01-09 Thread Volodymyr Prokopyuk
Hi, Is there a way to instruct Lilypond to always finish engraving book scores on an even page, so the table of contests always starts on the next odd page after all scores? Thank you, Vlad

Re: Output PDF to stdout

2024-01-05 Thread Volodymyr Prokopyuk
be externally optimized by using a RAM disk. Thank you, Vlad On Fri, Jan 5, 2024 at 4:46 AM David Wright wrote: > On Thu 04 Jan 2024 at 23:34:28 (+0100), Volodymyr Prokopyuk wrote: > > > > I know that lilypond can receive a source.ly file from the stdin by > > using lilypond

Output PDF to stdout

2024-01-04 Thread Volodymyr Prokopyuk
Hi, I know that lilypond can receive a source.ly file from the stdin by using lilypond -. Is it possible for lilypond to output PDF to the stdout? My motivation behind using lilypond in a pipeline is to speed up PDF generation by avoiding storing intermediary files on disk. The pipeline I'd like

Re: How to define a turn with two accidentals

2023-10-13 Thread Volodymyr Prokopyuk
, 2023 at 3:20 PM Michael Werner wrote: > Hi Vlad, > > On Fri, Oct 13, 2023 at 6:02 AM Volodymyr Prokopyuk < > volodymyrprokop...@gmail.com> wrote: > >> I'd like to create a *music function* for convenience to be used like \after >> 4. { \udTurn \sharp \natural

Re: How to define a turn with two accidentals

2023-10-13 Thread Volodymyr Prokopyuk
#{ \markup \center-column { \raise #-1 \teeny #up \musicglyph "scripts.turn" \lower #-1 \teeny #down } #}) Thank you, Vlad On Fri, Oct 13, 2023 at 10:48 AM Hans Åberg wrote: > > > On Oct 12, 2023, at 23:10, Volodymyr Prokopyuk < > volodymyrprokop...@gmail

How to define a turn with two accidentals

2023-10-12 Thread Volodymyr Prokopyuk
Hi, Is it possible to define a turn with two accidentals as shown below? [image: image.png] The LilyPond documentation has a snippet here https://lilypond.org/doc/v2.24/Documentation/notation/expressive-marks-attached-to-notes for a turn with one accidental. Thank you, Vlad

Re: How to end a trill with an acciaccatura in the same measure

2023-10-12 Thread Volodymyr Prokopyuk
erGrace d''1\trill( { c''16_\( d'' } e''2)\) } > > Paul > > > * From: * Volodymyr Prokopyuk > * To: * lilypond-user > * Sent: * 12/10/2023 14:58 > * Subject: * How to end a trill with an acciaccatura in the same measure > > Hi, > > I'd like to achieve the belo

How to end a trill with an acciaccatura in the same measure

2023-10-12 Thread Volodymyr Prokopyuk
Hi, I'd like to achieve the below [image: image.png] With the following code << \new Voice = voiceOne \relative { \voiceOne d''1( \trill | \stemDown e2) } \new Voice = voiceTwo \relative { \voiceTwo s2 s4. \acciaccatura { c''16 d } | s2 } >> I was able

Re: Music function to manage a moment and beat for the Staff and the Voice

2023-07-03 Thread Volodymyr Prokopyuk
Jean Abou Samra wrote: > Le dimanche 02 juillet 2023 à 18:47 +0200, Volodymyr Prokopyuk a écrit : > > Thank you very much for multiple options! I've decided to try the first > one. I still have two difficulties > >- How to create alist from the components ax, ay

Re: Music function to manage a moment and beat for the Staff and the Voice

2023-07-02 Thread Volodymyr Prokopyuk
 PM Jean Abou Samra wrote: > Le dimanche 02 juillet 2023 à 14:28 +0200, Volodymyr Prokopyuk a écrit : > > I wonder if there is a *way to define a music function with default > parameters* and be able to selectively specify some parameters using the > *parameters > names*

Re: Music function to manage a moment and beat for the Staff and the Voice

2023-07-02 Thread Volodymyr Prokopyuk
> momentBeat = > #(define-music-function (scope moment beat) ((symbol? 'Staff) fraction? > list?) >#{ > \set #`(,scope beamExceptions) = #'() > \set #`(,scope baseMoment) = #(ly:make-moment (/ (car moment) (cdr > moment))) > \set #`(,scope beatStructure)

Music function to manage a moment and beat for the Staff and the Voice

2023-07-01 Thread Volodymyr Prokopyuk
Hi, I'm trying to define a music function as below, however I've faced difficulties with parameter predicates, visibility of the Staff object, and flexibility of the solution ideally without code duplication *Desired music function* (the code is not working) momentBeat =

Re: Define an alias to a parametrized command

2023-06-28 Thread Volodymyr Prokopyuk
also mean > that > changing one will also change the other. > > The other options like saying > > acc = \acciaccatura \etc > > do not alias the command, but create a wrapper function around the > original > function. > > Cheers, > Valentin > > Am Dienstag

Re: Define an alias to a parametrized command

2023-06-27 Thread Volodymyr Prokopyuk
tc > af = \after \etc > % > > \set in lilypond is something completely else. > > HTH > /Leo > > > 27 juni 2023 kl. 21:57 skrev Volodymyr Prokopyuk < > volodymyrprokop...@gmail.com>: > > > > Hello, > > > > I'd like to define a shorter alias to a pa

Define an alias to a parametrized command

2023-06-27 Thread Volodymyr Prokopyuk
Hello, I'd like to define a shorter alias to a parametrized command. My two specific use cases are - Define \acc { c='8 d e } to be translated into \acciaccatura { c='8 d e } - Define \af 4. to be translated into \after 4.\! I've tried the \set command, but it seems that the \set

Re: Cannot identify a missing font for desired Lilypond output

2023-05-14 Thread Volodymyr Prokopyuk
a great day! Vlad On Sun, May 14, 2023 at 12:43 AM Jean Abou Samra wrote: > Le samedi 13 mai 2023 à 23:56 +0200, Volodymyr Prokopyuk a écrit : > > Hi Jean, > > I think you have found the solution! You mentioned that Ghostscript > provides the default font. Ghostscript is not installe

Re: Cannot identify a missing font for desired Lilypond output

2023-05-13 Thread Volodymyr Prokopyuk
, May 13, 2023 at 11:25 PM Jean Abou Samra wrote: > Le samedi 13 mai 2023 à 23:12 +0200, Volodymyr Prokopyuk a écrit : > > Hi Jean, > > I do not use any explicit font family in the source code at all. I assume > that the desired font is the default for Lilypond and is Emmentaler. I

Re: Cannot identify a missing font for desired Lilypond output

2023-05-13 Thread Volodymyr Prokopyuk
in the system fonts or as a LaTeX font? Thank you, Vlad On Sat, May 13, 2023 at 11:06 PM Jean Abou Samra wrote: > Le samedi 13 mai 2023 à 22:49 +0200, Volodymyr Prokopyuk a écrit : > > Hi, > > I'm trying to compile a score PDF from exactly the same Lilypond source on > a different Linux

Re: How to control ties direction between chords

2023-04-21 Thread Volodymyr Prokopyuk
\new Voice = voiceTwo \relative { > \voiceTwo >\autoBeamOff r8 8 8 > } >>> > } > > > On 4/21/23 10:47, Volodymyr Prokopyuk wrote: > > Hi, > > > > How can I force the lower tie to be placed downward in the below code > > snippet? I've tried

How to control ties direction between chords

2023-04-21 Thread Volodymyr Prokopyuk
Hi, How can I force the lower tie to be placed downward in the below code snippet? I've tried \once \tieDown but with no luck. \version "2.25.3" \relative { \clef treble \key c \major \time 4/4 << \new Voice = voiceOne \relative { \voiceOne 4~ 8 } \new Voice =

Re: Benefits of Cairo backend over Ghostscript for PDF

2023-03-18 Thread Volodymyr Prokopyuk
ppearance is apparently not altered after the optimization with the pdfcpu. The pdfsizeopt has several external dependencies and claims to be slow, so I have not tried it as I'm happy with the above solution which is easy to install and runs fast. Thank you, Vlad On Sat, Mar 18, 2023 at 9:19 AM

Re: Benefits of Cairo backend over Ghostscript for PDF

2023-03-18 Thread Volodymyr Prokopyuk
Good morning Jean and Werner, The alpha transparency and fonts embedded in SVG along with leaner code are important advantages of Cairo. Thank you for outlining this! I'll investigate ways to reduce PDF size and let you know the outcomes of my investigation. Thank you, Vlad On Sat, Mar 18,

Benefits of Cairo backend over Ghostscript for PDF

2023-03-17 Thread Volodymyr Prokopyuk
Hi, What are the benefits of using Cairo backend for PDF generation in Lilypond compared to Ghostscript? Will the Cairo backend become the recorrended default backend for PDF generation or will Ghostscript remain as the default backend for Lilypond? I can see that the size of the Cairo-generated

Re: Non-breakable vertical space

2023-03-14 Thread Volodymyr Prokopyuk
title = "Piece III" > } > c > } > \score { > \header { > title = "Piece IV" > } > c > } > } > > This avoid a break between these titles and will make sure that each > section > starts on a new page. &

Non-breakable vertical space

2023-03-14 Thread Volodymyr Prokopyuk
Hi, Is there a way in Lilypond to *insert a non-breakable vertical space* to avoid page break between a section title and piece title? *Code with an undesired page break* \markup \column { \fill-line { \fontsize #5 \bold \caps Section } \vspace #1 % <= this vertical space should be

Re: Definition of repeats using segno and coda

2023-02-26 Thread Volodymyr Prokopyuk
Vlad On Sun, Feb 26, 2023 at 10:09 PM David Kastrup wrote: > Volodymyr Prokopyuk writes: > > > Hi Jean, > > > > I've produced the minimal example reflecting my real use case. This > example > > does not produce the desired result. The difference between

Re: Definition of repeats using segno and coda

2023-02-26 Thread Volodymyr Prokopyuk
{ b1 1 1 1 } } \volta 2 { \section \sectionLabel "Coda" } } } c1 1 1 1 } [image: image.png] On Sun, Feb 26, 2023 at 9:46 PM Volodymyr Prokopyuk < volodymyrprokop...@gmail.com> wrote: > Hi Jean, > > I've tried the minimal example and it works! Let me fi

Re: Definition of repeats using segno and coda

2023-02-26 Thread Volodymyr Prokopyuk
{ \section \sectionLabel "Coda" } } } c1 1 1 1 } [image: image.png] Thank you for the snippet! Vlad On Sun, Feb 26, 2023 at 9:09 PM Volodymyr Prokopyuk < volodymyrprokop...@gmail.com> wrote: > Good evening, Jean, > > I've used the suggested repeat structure (see the attach

Definition of repeats using segno and coda

2023-02-26 Thread Volodymyr Prokopyuk
Hi, I'd like to find out the right way to define repeats using segno and coda. *Desired output written in scores* Section A { ^*codaMark* } Section B { _*D.C. al codaMark a poi la Coda* } { *^Coda* } Section C *Order of sections to play* Section A => Section B => Section A => Section C

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

2022-12-14 Thread Volodymyr Prokopyuk
s 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 |

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:

Re: Change chord type input and chord name output

2022-11-20 Thread Volodymyr Prokopyuk
Outstanding! Thank you very much! I'm impressed with the flexibility of LilyPond! However, less verbose scripting could be a huge plus to LilyPond. Thank you, Vlad On Sun, Nov 20, 2022 at 2:46 PM Jean Abou Samra wrote: > Hello, > > Le 20/11/2022 à 10:27, Volodymyr Prokopyu

Change chord type input and chord name output

2022-11-20 Thread Volodymyr Prokopyuk
Hello, I have few questions about the \chordmode *Questions* - How can I change the name for the c:aug7 from C7#5 to Co7 for all augmented seventh chords, not only for specific pitches in the chordNameExceptions list? - Similarly, how can I change the name for the half-diminished

Re: Explicitly add extra space before a note

2022-11-09 Thread Volodymyr Prokopyuk
t; c \repeatTie > d, \repeatTie > \tweak extra-spacing-width #'( -5 . 0 ) > a \repeatTie > } > ####### > > HTH > /Leo > > 9 nov. 2022 kl. 13:35 skrev Volodymyr Prokopyuk < > volodymyrprokop...@gmail.com>: > > Hello, > > P

Explicitly add extra space before a note

2022-11-09 Thread Volodymyr Prokopyuk
Hello, *Problem* When a slur continues on a new Staff a small horizontal space is added automatically to accommodate the slur like below [image: image.png] When I add an extra slur with the d2 \tweak control-points #'(...) ( r4) in \volta 2 the extra space is not added and the slur crosses the

Re: Extra treble key on PianoStaff with two bass keys and \acciaccatura

2022-10-31 Thread Volodymyr Prokopyuk
> > Le 31 oct. 2022 à 11:21, Volodymyr Prokopyuk > a écrit : > > > *Problem* > > I have got an extra treble clef on the second Staff when using a > PianoStaff with two \clef bass staves. See the example below > > > > > > This is a frequently discussed issue

[no subject]

2022-10-31 Thread Volodymyr Prokopyuk
Hello, *Problem* I have got an extra treble clef on the second Staff when using a PianoStaff with two \clef bass staves. See the example below *Example* \version "2.23.14" \score { \new PianoStaff = bayan { << \new Staff = rightHand { \tempo Lento \clef bass

Re: Guidance on the repeated slur in \volta 2

2022-10-28 Thread Volodymyr Prokopyuk
} } } [image: image.png] Just for curiosity, why did the Lilypond version change from 2.23.14 to 2.23.80? Thank you, Vlad On Fri, Oct 28, 2022 at 12:01 AM Jean Abou Samra wrote: > > > Le 27/10/2022 à 23:06, Volodymyr Prokopyuk a écrit : > > Hello, > > > > Wh

Re: Guidance on the repeated slur in \volta 2

2022-10-27 Thread Volodymyr Prokopyuk
it gives the best control of the shape of a slur. > > Thank you very much for your help! > Vlad > > On Wed, Oct 19, 2022 at 9:47 PM Volodymyr Prokopyuk < > volodymyrprokop...@gmail.com> wrote: > >> Hello Knute, >> >> Interesting approach! I've n

Re: Guidance on the repeated slur in \volta 2

2022-10-27 Thread Volodymyr Prokopyuk
19, 2022 at 6:22 PM Knute Snortum wrote: > >> On Wed, Oct 19, 2022 at 6:59 AM Volodymyr Prokopyuk >> wrote: >> > >> > Hello, >> > >> > Could you, please, provide guidance on how to manage the repeated slure >> in \volta 2? >> > >&g

Re: Limit the scope of baseMoment and beatStructure to a single Staff within a PianoStaff

2022-10-25 Thread Volodymyr Prokopyuk
aseMoment = #(ly:make-moment 1/4) > \set beatStructure = 1,1 > b8 d c b > } > \new Staff { > \clef bass > \set baseMoment = #(ly:make-moment 1/2) > \set beatStructure = #'(1) > e8 q q > } > >> > > HTH > /Leo > &

Limit the scope of baseMoment and beatStructure to a single Staff within a PianoStaff

2022-10-24 Thread Volodymyr Prokopyuk
Hello, I'd like to ask a question about the scope of the baseMoment and beatStructure configuration to set automatic beam behavior in two-staves PianoStaff. Problem When baseMoment = 1/4 and beatStructure = 1,1 the output is [image: image.png] When baseMoment = 1/2 and beatStructure = #'(1) the

Re: Guidance on the repeated slur in \volta 2

2022-10-19 Thread Volodymyr Prokopyuk
in complexity when chords are involved. I'm looking for more declarative approach in the style of not yet existing \repeatSlur Thank you for your suggestion, Vlad On Wed, Oct 19, 2022 at 6:22 PM Knute Snortum wrote: > On Wed, Oct 19, 2022 at 6:59 AM Volodymyr Prokopyuk > wrote: > &g

Guidance on the repeated slur in \volta 2

2022-10-19 Thread Volodymyr Prokopyuk
Hello, Could you, please, provide guidance on how to manage the repeated slure in \volta 2? *Problem* There is no simple and convenient way to repeat a slur in \volta 2, while the slure from the \repeat volta 2 { body } to the \volta 1 is working correctly. *Workarounds* - Use the

Re: Add extra space before key cancellation and a new key signature

2022-10-19 Thread Volodymyr Prokopyuk
Hi Jean, Thank you very much for your help! I really appreciate the quick response and useful content! Thank you, Vlad On Wed, Oct 19, 2022 at 12:58 PM Jean Abou Samra wrote: > > > Le 19/10/2022 à 12:42, Volodymyr Prokopyuk a écrit : > > Hi, > > > > Could you pl

Add extra space before key cancellation and a new key signature

2022-10-19 Thread Volodymyr Prokopyuk
Hi, Could you please help me with the below situation? *Context* I've changed the order of key cancellation and a new key signature to be placed before the bar line with the following code keyChangeBeforeBar = \once \override Score.BreakAlignment.break-align-orders = #(make-vector 3 '(

Re: How to create a double dashed bar across the PianoStaff in the middle of a measure?

2022-09-24 Thread Volodymyr Prokopyuk
uot;)`. I'm more of a JS programmer than a Scheme programmer. Thank you very much! Vlad пт, 23 сент. 2022 г. в 23:51, Hans Aikema : > > > On 23 Sep 2022, at 19:30, Volodymyr Prokopyuk < > volodymyrprokop...@gmail.com> wrote: > > Hello, > > How to create a double das

How to create a double dashed bar across the PianoStaff in the middle of a measure?

2022-09-23 Thread Volodymyr Prokopyuk
Hello, How to create a double dashed bar across the PianoStaff in the middle of a measure to indicate Fine? I can successfully create the following bars across the PianoStaff - Double solid bar with \bar "||" - Single dashed bar with \bar "!" I've tried with no success \bar "!!" and some