I'm working on a simple app that explains the musical harmony foundamentals. I want to write programmatically some music scores and display it on a Canvas. I've found a Java library called abc4j (See this), perfect for this job. The problem is that the Android porting of this library (called abc4android, see this) remove, obviously, all desktop/UI code and dependencies and unfortunately the image output is obtained with an import of abc.ui.swing.JScoreComponent. Is there a way to easily write and show (with an image or a music font) a music score in Android?
Asked
Active
Viewed 448 times
1
-
Can't see your image,please reedit your question. – aolphn Oct 31 '18 at 14:37
-
@Aolphn I'm sorry! Now all the links work correctly. They aren't images, but only a link to an abc4j review and to the abc4android fork on GitHub. – Calaf Oct 31 '18 at 14:44
-
The following view as image showed is what you want?https://github.com/Sciss/abc4j/blob/master/images/scoreEx.jpg?raw=true – aolphn Oct 31 '18 at 14:49
-
@Aolphn yes! But in abc4android I can't obtain it because there isn't the class "JScoreComponent" and, consequently, the function `.writeScoreTo(new File("Score.jpg"))` – Calaf Oct 31 '18 at 16:21