lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: horizontal spacing inside \magnifyMusic


From: Valentin Petzel
Subject: Re: horizontal spacing inside \magnifyMusic
Date: Sat, 13 Jun 2020 12:21:52 +0200

Hello Eby,

 

I noticed, you can use extra-spacing-height to increase the size of the „lanes” I talked about.

 

I’ve appended the example.

 

Regards,

Valentin

 

Am Samstag, 13. Juni 2020, 07:16:42 CEST schrieb Eby Mani:

 

Many thanks Kieren & Valentin,

 

Have used a mix of \newSpacingSection and \tweak extra-spacing-width to achieve something close to what is possible with use of "skip". Still it's not perfect(output attached).

 

Using \tweak extra-spacing-width alone only works for the first 2 sections on n32 notes.

 

And the other problem is \tweak have not much effect when used with \newSpacingSection. I'm not sure if this is due to the use of \magnifyMusic or the sheer number of notes in the section, not much difference even with \break after the manual \bar (please see comments).

 

thanks,

 eby

 

******************************

 \version "2.20.0"

 

global = {

 \key des \major

 \time 4/4

 }

 

violin = \relative c' {

 \global

 \cadenzaOn

 

\newSpacingSection

 \override Score.SpacingSpanner.spacing-increment = #2

 

aes2\fermata %%spacerequired

 

\newSpacingSection

 \revert Score.SpacingSpanner.spacing-increment

 

 

\magnifyMusic 0.61 {

 g32 \([aes b c d ees b c d ees ges] %%spacerequired

 \tweak extra-spacing-width #'(-2 . 3) %%spacing between aes and d not much improved.

 aes32\) [d,!32 \(ees ges aes bes c des ees f ges aes bes]

 }

 %%spacerequire

 \tweak extra-spacing-width #'(-1 . 0) %%unable to get small spacing before c.

 \newSpacingSection

 \override Score.SpacingSpanner.spacing-increment = #2

 

c8-.\)

 

\newSpacingSection

 \revert Score.SpacingSpanner.spacing-increment

 %%spacerequired

 

\magnifyMusic 0.61 {

 \newSpacingSection

 \override Score.SpacingSpanner.spacing-increment = #2

 

aes,,8-^ [c-^ ees-^ aes-^ c-^ ees-^ c-^ ees-^ aes-^ c-^ ees-^]

 

\newSpacingSection

 \revert Score.SpacingSpanner.spacing-increment

 %%spacerequired

 \ottava #1

 \revert Score.SpacingSpanner.common-shortest-duration

 \override Script.staff-padding = #2.5 {

 \stemDown aes2\trill \pp a2\trill bes2\trill c2\trill \fermata } \bar "|"

 \override Script.staff-padding = #0

 }

 

\cadenzaOff

 

des1~

 des2\fermata

 \ottava #0

 r \fermata \bar "|."

 

}

 

pianoVoice = \relative c'' {

 \global

 

\cadenzaOn <ees aes>1\fermata r1 r1 s2 r1 s4 \bar"|" \cadenzaOff

 f2 (f4-. f-.)

 f2\fermata r\fermata \bar "|."

 }

 

 

violinPart = \new Staff \with {

 instrumentName = "Violin"

 shortInstrumentName = "Vl."

 midiInstrument = "violin"

 } \violin

 

 

\score {

 <<

 \violinPart

 \pianoVoice

 >>

 \layout { }

 }

 

******************************

 

On Friday, 12 June, 2020, 12:32:53 am IST, Valentin Petzel <valentin@petzel.at> wrote:

 

 

Hi Kieren,

 

Note that doing it this way has the same problem I explained before if two

 stems a considerably vertically apart (as we just regulate the horizontal

 space to the neighboring Note, which is not nescessarily the next note.

 

Regards,

 Valentin

 

 Am Donnerstag, 11. Juni 2020, 20:51:48 CEST schrieb Kieren MacMillan:

 > Hi Eby,

 >

 > > I'm looking for to achieve something like the output without using

 > > "skips". I plan to run the midi output thru VST instrument, thus adding

 > > skips is a big no. The example is achieved using "skip".

 >

 > \version "2.19.83"

 > { c'4 4 \tweak extra-spacing-width #'(-10 . 0) 4 4 }

 >

 > Hope that helps!

 > Kieren.

 >

 > p.s. This kind of thing is EXACTLY why I use the edition-engraver so

 > heavily!  =) ________________________________

 >

 > Kieren MacMillan, composer (he/him/his)

 > ‣ website: www.kierenmacmillan.info

 > ‣ email: info@kierenmacmillan.info 

 

Attachment: cadenza.ly
Description: Text Data

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]