Re: Help with music function

2023-12-18 Thread William Rehwinkel via LilyPond user discussion
Dear Mark, I did this in a slightly different way...if you do \displayMusic c4\rest you can see how to represent a rest using the make-music procedure in scheme code. Modifying that a bit, I got % \version "2.25.6" %\displayMusic c4\rest = %(make-music %'RestEvent

Midi2Lily

2023-12-18 Thread Cynthia Karl
--- Begin Message --- I mentioned previously that I wrote a program to convert MIDI files to LilyPond files. That program is called MidiToLily and it’s now freely available on GitHub. It’s a console app, doesn’t have an installer, and doesn’t store things in the registry or anywhere else. It

Re: Help with music function

2023-12-18 Thread Mark Probert
Many thanks, Aaron. A clear and helpful answer! The “why” was simply an exercise in seeing if I could cleanup a LP file by using such syntactic sugar (to which the answer is no :-) ). Thanks again ..m. > On 19 Dec 2023, at 07:05, Aaron Hill wrote: > > On 2023-12-17 9:33 pm, Mark Probert

Re: Help with music function

2023-12-18 Thread Aaron Hill via LilyPond user discussion
On 2023-12-17 9:33 pm, Mark Probert wrote: Hi. I'm struggling some with writing a music function for rests. Basically I want to be able to write something like \rel-rest( b', 1) Minor nit: Functions in LilyPond do not use parentheses and commas for arguments in this way. You need only

Re: clefs, time signatures, and key signatures

2023-12-18 Thread Werner LEMBERG
>>> please have a look at Merge Request 2188 and comment there on how >>> to proceed with the new distances between clefs and time >>> signatures, together with the new distances between clefs and key >>> signatures. >>> >>> https://gitlab.com/lilypond/lilypond/-/merge_requests/2188 >>> >>>

Re: Staff Centre Vertical Alignment on page?

2023-12-18 Thread Stefano Antonelli
On Tue, 2023-12-12 at 16:10 -0800, Stefano Antonelli wrote: > I'm producing muliple pngs with a single staff each. When I 'flip' > through these pngs, the staff appears to move up and down on the > page. > > I can set > > top-system-spacing.basic-distance = #7 It turns out I need exactly