Re: Compress Long Rest in Jianpu.
------------------------------
*From*: Werner LEMBERG
*Subject*: Re: Compress Long Rest in Jianpu.
*Date*: Sun, 24 Mar 2024 06:27:49 +0000 (UTC)
------------------------------

[Please always reply to the list!]

>* Sure, it looks like this*
>* [image: image.png]*
>* and this*
>* [image: image.png]*
>
>* seems like it just copies the staff style and removes staff lines.*

OK, thanks.  The un-compression of MM rests is an intentional feature
of `jianpu10a.ly`.  You should contact the author to add a command
that switches compression of MM rests on and off.

Below is a trivial patch to enable MM compression.  Note, however,
that this also disables conversion of `R1` to '0 0 0 0', which is
probably not wanted.  In other words, I suspect that more tinkering is
necessary to get a solution that really fits current jianpu usage.


    Werner


======================================================================


--- jianpu10a-old.ly        2024-03-23 18:20:24.923336345 +0100
+++ jianpu10a.ly    2024-03-24 07:18:42.382334806 +0100
@@ -84,8 +84,7 @@
            ))

          ;; REST AND MULTI-MEASURE REST
-         ((or (music-is-of-type? m 'rest-event)
-              (music-is-of-type? m 'multi-measure-rest))
+         ((music-is-of-type? m 'rest-event)
           (let ((dur (ly:moment-main (ly:music-duration-length m))))
             (if (>= dur 1/2)
                 ;; split whole and half rests into quarter notes


*my messages:*

Dear Wernerf Lamberg : how can I get the new jianpu10a.ly with MMR? thQ and
appreciated.

Dear Windy Deng : Can I get the lily source code that generates the pdf?
thQ and appreciated.  jianpo of 大哉乾元(胡多多) score pdf.

-- 
ming (lyndon) tsang

Reply via email to