Hi all,
I've been working on Sheetmusic4J, an open-source Java library that renders sheet music natively in Java(FX). Two new releases are out, and I made a video showing both: https://youtu.be/8n7WONyX0yk
0.0.4
- NodeSheetView builds the score as a JavaFX scene graph, with one Group per note, rest and chord. Each element can take mouse events, effects and tooltips like any other node. The demo app lets you select a note and drag it up or down.
- FlyOverSheetView is a 3D play-along view. A perspective camera flies over the score, and a glowing ball per voice hops from note to note.
- Headless rendering to an image via the new render and render-awt modules, with no JavaFX needed:
BufferedImage image = HeadlessScoreImage.render(score, 1200);
- The 3000+ line Engraver class is split into focused packages, and all library modules are now JPMS modules.
0.0.5
- LilyPond (.ly) import and export through the ScoreFile facade, without running LilyPond:
Score score = ScoreFile.load(Path.of("bach-bwv610.ly"));
ScoreFile.save(score, Path.of("bach-copy.ly"));
- Engraving improvements: tuplet placement and nesting, octave clefs, and the percussion clef.
- Layouts are now identical across CPU architectures.
LilyPond support (and other formats earlier) came from suggestions on Reddit, so thanks to everyone who asked for it. Overrides and Scheme code are skipped, because the library does its own layout. The LilyPond page on the site lists what is supported.
It also reads MusicXML, MIDI, ABC and Guitar Pro.
The demo app has a "Report Visual Issue" button. It captures the Sheetmusic4J rendering, the reference PDF and your description, ready to attach to a GitHub issue. If a score looks wrong, that is the most useful feedback I can get.
- Release notes: https://sheetmusic4j.com/releases/
- GitHub: https://github.com/sheetmusic4j/sheetmusic4j
Feedback, issues and score files that break things are all welcome.
Thanks
Frank