GithubHelp home page GithubHelp logo

joram-berger / lydiff Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 1.0 78 KB

Visual diff for LilyPond scores

License: GNU General Public License v3.0

Python 95.89% LilyPond 4.11%
lilypond diff graphical

lydiff's People

Contributors

joram-berger avatar uliska avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

npettiaux

lydiff's Issues

Don't print() from inside the lydiff module

the lydiff module (i.e. the __init__.py and any other files in the folder) is intended to be importable in arbitrary contexts, e.g. from the CLI script or Frescobaldi (I can also imagine (and would like to create) a Python based web app to use that). Therefore it should not print() directly, at least not without further consideration.

Main communication should be handled by the calling program/script, so the functions should e.g. return values or raise exceptions.

For the intended debug output (show_output etc.) we have to find another way, e.g. with callback functions or the like.

Yellow-ish output

The tool produces some yellow-ish output for non-changed areas for me. Looks like semi-green and semi-red are combined into semi-yellow instead of semi-gray. May be try switching off anti-aliasing, or using a different color space, or filter out yellow, or use "0, 255, 128" as green and "255, 0, 128" as red, etc...

Doesn't work with multi-page score

Hi! The tool doesn't work with a score with multiple pages. It generates several png images for each page, then fails to combine them to a single image, then fails to locate that single image.

convert-ly won't follow includes

As convert-ly isn't intended to follow includes that step is somehow moot for moat real-world scores.

Seems like a complex issue. I think we should flatten the score to one huge file and keep references to the original locations for producing a reasonable text diff

Skip non-changed sections

Hi!

Is there a way to get a behavior of a classic diff program, i.e. skip non-changed portions of the score? For example, find a rectangular box that contains the difference and crop out everything else.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.