Results 1 to 9 of 9

Thread: Music score Scan to midi or musicxml - deb packaging

  1. #1
    Join Date
    May 2012

    Music score Scan to midi or musicxml - deb packaging


    I have been looking for SW that enables one to scan sheet music and have the PC play it out via midi or musicXML, but did not find anything in the repo's.
    When looking a bit further, I found several windows programs doing this, and also one
    linux program (cross platform Win-MAC-Linux in fact), but no deb file to easily install it in linux.

    As I use linux for some time now, I was thinking of doing someting back to the community by making a deb package, so I started reading up on how the Java
    programming language is structured and how to make a package.
    In the new Ubuntu packaging guide, it is adviced to create the package first via Debian, as a lot of distro's are based on Debian, and by Creating the package for Debian, more people will benefit from the package.

    So I went over to the Debian dev site and started reading up there.
    It struck me however that Debian is not very welcoming for new packagers.
    They require you to read up dozens of documents and politely tell you that as long as you don't perfectly know all of these documents, you should not waste their time by asking questions, and that you will be lucky if someone will dedicate
    their time to help you out.
    To me, this struck me a bit like RTFM and and **** off unless you know all pages by heart.
    but I may perhaps be looking in the wrong places ????

    As I think this SW would help music students a lot while practicing, I think I would be
    a nice addon in a Linux distro though, so I would like to ask an Ubuntu packager
    to add this sw to the repo's
    Windows alternatives are Photoscore, smartscore, midiscan, and a number of others.
    I did not try yet if those work via WINE, but a native linux package for Audiveris
    looks much better IMO.
    It will be more user friendly to install and avoid possible system infections via windows viruses while running wine

    I contacted the developper to report a bug, and at the same time I told him about my packaging plans. He was positive about it, but asked me to wait for the new release that will come out soon, so in the mean time I started reading on deb packaging, but having read the Debian things, I don't feel the urge to proceed with
    this so much anymore.

    A few years back while browsing throug the ubuntu site, it also seemed to be more
    welcoming to new packagers, but at that time I just started using linux and was not ready to give something back to the community yet.

    So I someone feels enthousiast about packaging this piece of sw that will help
    musicians who at the same time use linux, IMO it would fill a gap in the linux
    music SW palette.

    Best rgds,

  2. #2
    Join Date
    Oct 2004

    Re: Music score Scan to midi or musicxml - deb packaging

    Hi, there has previously been a request for packaging in Debian: . I don't really have time to package it, but if you (or anyone) needs help in doing so, feel free to ask.

  3. #3
    Join Date
    May 2012

    Re: Music score Scan to midi or musicxml - deb packaging

    Can you point me to some jave packages, an easy one to be able to understand
    what is in it, and a more complex one to check out how it compares.
    I'll probably learn more out of that than from the mountain of documents
    to go through as described in the debian packaging guide.

  4. #4
    Join Date
    Jul 2008

    Re: Music score Scan to midi or musicxml - deb packaging

    I don't know if this is helpful, I have audiveris working (to some extent) in xubuntu.

    I extracted it to /opt/audiveris and set permissions of all files and directories in /opt/audiveris/ to read/write/execute.

    I installed tesseract-ocr via synaptic.

    Ran "java -jar /opt/audiveris/dist/audiveris-4.1beta.jar"

    I had to rectify some errors; eg in plugins/musescore.js I had to correct the path to musescore.

    A scanned in page of music as a .jpg file was received and going thro' the steps in step->score produced things much as described in the audiveris handbook. Going on to export the .xml file and looking at it in Musescore showed a lot of errors. I hope I might be able to do better as I learn more about the software and perhaps by training the neural net.

  5. #5
    Join Date
    Oct 2004

    Re: Music score Scan to midi or musicxml - deb packaging

    Nice that you have it working, hg21, and are sharing how. For packaging, some other things are needed as well, obviously. One note: you don't need to set rwx permissions on all files. Only executables and directories need the +x bit.

    To get started packaging, you can read the Debian documentation. It may be quite a lot, though, and a little overwhelming at first. Then Java packaging has special helpers to make that easier and cleaner, but that's some more reading. Also, (Java) packaging has gone through some changes, so you might find 'old' ways of doing it over the internet as well. Debhelper7 (DH7) is the latest and cleanest, try to stick to that.

    I've done some Java packaging, and will try to give a hand on how to start. For now, you can begin reading at the following links.


  6. #6
    Join Date
    Jun 2008
    South Africa
    Ubuntu 12.10 Quantal Quetzal

    Re: Music score Scan to midi or musicxml - deb packaging

    Dear hg21

    Is it possible to give an in-depth, detailed version of the steps you took to install and run Audiveris? I would be eternally grateful.
    Etienne Snyman
    Living life in danger is real living. The rest is television.

  7. #7
    Join Date
    Jul 2008

    Re: Music score Scan to midi or musicxml - deb packaging

    Hi Etienne,

    I hope I've remembered everything correctly and that I am not insulting you by being too detailed.

    1. install tesseract-ocr

    In a terminal:
    sudo apt-get install tesseract-ocr

    2. Go to [/url][/url]
    download musical
    In a terminal cd <your download folder>
    sudo mkdir /usr/share/fonts/truetype/music/
    sudo mv Mus*.ttf /usr/share/fonts/truetype/music/

    3. Go to:

    4. In a terminal
    sudo mkdir /opt/Audiveris
    sudo chmod 777 /opt/Audiveris

    cd /opt/Audiveris
    sudo mv <your download folder>/ .
    (doing it this way should get the permissions right)

    5. In a terminal.
    cd <homedirectory>

    java -jar /opt/Test/dist/audiveris-4.1beta.jar

    This should open audiveris
    If it doesn't look at the error messages in the terminal and try to correct
    for them

    6. If you get here OK I suggest that in audiveris

    File->Input you should get a list of examples.
    load one and then go to Step
    in turn do Scale, Grid, Split .....Score. and look for error messages
    if you find any report back
    You will almost certainly get a warning (in blue) about libtesjeract.
    I think you can ignore it.

    Hope it works for you.
    Note you will have to correct path to musescore if you use it (see my previous).

    Hope it works for you

  8. #8
    Join Date
    Oct 2007

    Re: Music score Scan to midi or musicxml - deb packaging

    Thanks for the 'recipe' for getting audiveris into Linux.
    I've followed all the steps, but the java part is the sticky part for me.
    I am using Linux Mint13 64bit and have its openjdk installed. Is this sufficient for audiveris to run? and how/where do I point it to utilize it.
    (I am a long-time Linux user, just not in doing CLI installs and such.)

  9. #9
    Join Date
    Oct 2007

    Re: Music score Scan to midi or musicxml - deb packaging

    Here is the error following the java.jar command in #5:

    java -jar /opt/Audiveris/dist/audiveris-4.1beta.jar
    Exception in thread "main" java.lang.UnsupportedClassVersionError: Audiveris : Unsupported major.minor version 51.0
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass( :634)
    at .java:277)
    at$000(URLClassLoader. java:73)
    at$ 212)
    at Method)
    at ava:205)
    at java.lang.ClassLoader.loadClass( 21)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launche
    at java.lang.ClassLoader.loadClass( 66)
    Could not find the main class: Audiveris. Program will exit.

    Does this mean I should choose an earlier version of audiveris to install?
    Last edited by revdjenk; December 6th, 2012 at 07:31 AM.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts