Hello Eby,

As far as I know Lilypond does not offer an easy, clean way to add spacing 
between certain 
notes. If two stems are adjacent, you can specify the spacing of the stems. 
This does not 
work if there are no Stems or Stems are too far apart vertically.

One hacky way around would be using skips as grace notes. Thus you won’t get 
midi events, 
but still the spacing (though you are limited in the quantisiation of spacing 
you can add).


Have a look at the appended file.

Regards,
Valentin


Hello Valentine, 

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".

Thanks,eby


On Thursday, 11 June, 2020, 04:06:16 pm IST, Valentin Petzel 
<[email protected]> wrote: 




Hello Eby,




You could do as I’ve done in the appended file. That is basically whenever you 


need a more loose spacing, you do something like


\temporary\override Score.SpacingSpanner.common-shortest-duration =


#(ly:make-moment 1 256)


(where the 1/256 can be anything to your liking, using bigger note values like 


1/8 will result in tighter spacing, using smaller values will result in looser 


spacing.




Note that you could avoid the skips in the rests of the piano voice by scaling 


eighter the lengths of the respective violine notes, or scaling the length of 


the rests (like this: r1 r1*3/2 r1*5/4)




Regards,


Valentin 


\version "2.20.0"

global = {
  \key des \major
  \time 4/4
}

violin = \relative c' {
  \global

  \cadenzaOn 
  aes2\fermata
   
   %%spacerequired

    \magnifyMusic 0.61 {
    g32 \([aes b c d ees b c d ees 
    ges] %%spacerequired
    \once\override Stem.extra-spacing-width = #'(-0.8 . 1)
    aes32\)[ %%spacerequired

    d,!32 \(ees ges aes bes c des ees f ges aes bes]
    }
    %%spacerequired
    
   \once\override Stem.extra-spacing-width = #'(-1 . 0) c8-.\)
   
   \grace{ s s s s s }

    %%spacerequired

    \magnifyMusic 0.61 {
    aes,,8-^ [c-^ ees-^ aes-^ c-^ ees-^ c-^ ees-^ aes-^ c-^ ees-^]

    %%spacerequired
\ottava #1
\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 r 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 { }
  \midi{ }
}

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

Reply via email to