lilypond-user
[Top][All Lists]
Advanced

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

Re: Extracting a "score diff" from two [or more] Lilypond sources


From: Jean Abou Samra
Subject: Re: Extracting a "score diff" from two [or more] Lilypond sources
Date: Sun, 23 Jan 2022 00:14:00 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0

Le 22/01/2022 à 22:51, Kieren MacMillan a écrit :
Hi all!

Given multiple Lilypond sources, I'm hoping to find a way to output a "diff 
file" describing the musical differences *as would be perceived by a human reading 
the score*. For example, given

     Score #1 = \score { \new Staff << { c'1 c' } >> }

     Score # 2 = \score { \new Staff \new Voice << { c'1*1/2 s2 c''1 } >> }

diff ( Score1 , Score2 ) would say [in effect] "m2: Score #1 has c'1 while Score #2 
has c''1."

Because coding style, "hacks" (like c'1*1/2 s2), variable/context separation, and other 
code-based differences aren't [directly] relevant, I can't just use standard text/diff tools. Is 
there a way two "music streams" (oof, I'm definitely talking out my butt right now!) can 
be compared in Lilypond and some/most/all of the human-perceivable musical differences be 
automatically detected?

Thanks for any brainstorms, ideas, or (dare I dream!?) snippets!
Kieren.


You could actually output the music stream using
\include "event-listener.ly", and do a textual diff.
I guess that provides a start?

Best,
Jean




reply via email to

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