[MEI-L] Tools/libraries to find staves in scanned sheet music
Andrew Hankinson
andrew.hankinson at bodleian.ox.ac.uk
Thu Apr 30 18:12:15 CEST 2020
I think the most current algorithm implemented in the MusicStaves toolkit is the Stable Paths algorithm (we implemented it at McGill a few years back):
https://gamera.informatik.hsnr.de/addons/musicstaves/doc/gamera.toolkits.musicstaves.stafffinder_stable_path.StaffFinder_stable_path.html
You can download the source code here:
https://gamera.informatik.hsnr.de/addons/musicstaves/
The classes are described here:
https://gamera.informatik.hsnr.de/addons/musicstaves/doc/plugins.html
If you don't want to get Gamera running to use them, the papers are referenced in the documentation and you should be able to re-implement the algorithms in the language of your choice from the Python code.
-Andrew
> On 30 Apr 2020, at 16:42, David Lewis <D.Lewis at gold.ac.uk> wrote:
>
> Hi Urs,
>
> One thing that no one has mentioned yet, but used to do quite well is the Gamera toolkit's MusicStaves add-on. It's quite old now, so unlikely to be state-of-the-art. Although it can remove staves, that doesn't need to be part of your workflow.
>
> I don't know if any lurkers on the list know anything about its current status, but the homepage is:
> https://gamera.informatik.hsnr.de/index.html
>
> Best,
>
> David
>
>
>
>> On 30 Apr 2020, at 08:41, Urs Liska <ul at openlilylib.org> wrote:
>>
>> Dear MEI,
>>
>> I am investigating ways to produce empty staves/barlines to overlay
>> over scanned sheet music. The use case is creating teaching/testing
>> sheets for music theory and aural training classes (so the target
>> repertoire would be mostly common western notation).
>>
>> My first approach was to create a Scribus script that draws staff- and
>> barlines from rectangles that have been drawn over the systems. While
>> this works surprisingly well it is still a tedious work for longer and
>> full scores.
>>
>> AFAIK the detection of staff- and barlines is basically a solved
>> challenge in OMR. Could somebody point me towards the potentially
>> easiest approach I should explore? Algorithms, libraries, ready-to-use
>> tools?
>>
>> What I need is something that analyses (multipage) sheet music from
>> image or PDF files and produces a structured text file with all the
>> relevant coordinates, or anything from which I can instruct some tool
>> (whether Inkscape, Scribus, LilyPond or whatever) to generate the empty
>> sheet music to overlay over the scanned score.
>>
>> Thank you for any pointers
>> Urs
>>
>> PS: Do you agree with me that trying to somehow *remove* the musical
>> content from a scanned image is a much less promising approach?
>>
>>
>> _______________________________________________
>> mei-l mailing list
>> mei-l at lists.uni-paderborn.de
>> https://lists.uni-paderborn.de/mailman/listinfo/mei-l
>
>
> _______________________________________________
> mei-l mailing list
> mei-l at lists.uni-paderborn.de
> https://lists.uni-paderborn.de/mailman/listinfo/mei-l
More information about the mei-l
mailing list