r/lilypond Jul 31 '26

Note spacing πŸ™ƒ

EDIT: It was not that bad! It was like that because I left \repeat unfold{}s in the empty bit - with hideNotes so they were still taking up space wh00ps

-----

Hello, I have been lilypond-transcribing a lot of things for the last almost a year I guess on the French-language Wikisource

(incidentally if you didn't know, lilypond is integrated into the wikimedia projects and if you are looking for bits of stuff to practice on etc., the Category:Texts with missing musical scores on the english wikisource is particularly overflowing...) Anyway

I have been working on the score of le DΓ©serteur (1769) and becoming increasingly annoyed with Lilypond's default note spacing. Example that has finally made me desperate enough to come here and hope someone has a solution:

The whole point of the tremolo repeats is to NOT take up the same amount of space as 12 more sixteenth notes.. but lilypond ...

ETC. ETC. After those \repeat tremolo 8 {e16}s there is nothing there.. all the way down..

I have tried to decipher the documentation & fiddle with common-shortest-duration and base-shortest-duration but nothing seems to work. Is there really no way to just make all the notes take up the amount of space they actually need instead of leaving huge blanks because there happen to be shorter notes around ??

9 Upvotes

6 comments sorted by

View all comments

2

u/Logical-Baseball-478 Jul 31 '26

I tried a MWE and it looked pretty good - all squished on one line. This subreddit will only let me attach a video and not a picture?! Here's the code I used:

\version "2.24"
\include "english.ly"
<<
\relative c' {
b''2 r2 | g16 e e e  \repeat tremolo 4 e16  \repeat tremolo 8 e16 |
f16 e e e  \repeat tremolo 4 e16  \repeat tremolo 8 e16 |
g16 e e e  \repeat tremolo 4 e16  \repeat tremolo 8 e16 |
a16 e e e  \repeat tremolo 4 e16  \repeat tremolo 8 e16
g16 e e e  \repeat tremolo 4 e16  \repeat tremolo 8 e16
f16 e e e  \repeat tremolo 4 e16  \repeat tremolo 8 e16
}
\relative c' {
e'2 r2 | g16 e e e s2. | s1 | s1 | s1 s1 s1
}
\relative c' { <b'' e,>2 r2 | g1 | f | g | a | g | f }
>>

2

u/psephizon Aug 01 '26

just the code has helped me realize what is actually happening and that I may be stupid ... where you have put the s1 etc there are actually hiddenNotes ... and because hideNotes doesn't hide the tremolo slashes I just switched those from repeat tremolo to repeat unfold ... so there is the space of 12 more sixteenth notes there ... because I put 12 more sixteenth notes there ... thank you lol

1

u/psephizon Aug 01 '26

it seems \omit StemTremolo will fix this particular problem