Open Avengoner opened 10 months ago
Exploring further, I read Audiveris' documentation and I found that this is the only closest solution to this problem. And I saw this KeyMap, and then I instantly thought that there is this similar parameter in Musescore, and I think the answer is close. But since I don’t know any code (I am a drummer), at this stage I really don’t know how to correctly deploy and generate correlations, and finally achieve my ideal goal: after the successfully scanned xml format is opened in Musescore, it will be Drum sound plays.
Looking forward for your reply, thank you!
https://audiveris.github.io/audiveris/_pages/specific/drums/#appendix
@Avengoner What is not clear for me is how you processed the percussion staves.
Did you explicitly set the corresponding switch in book parameters? I'm afraid not, because otherwise you would not get these treble clefs in the output. Could you post a snapshot of the Book | Set book parameters
pull-down menu?
Then we'll be able to move forward regarding the instruments mapping.
First of all, have you read the Drums chapter in Audiveris handbook?
I did read the "Drum" chapter in the manual before and followed the steps to set it up, but I still couldn't turn it into a percussion drum score.
Still, I don't understand why you came up with treble clefs in the output. At this point, I need your input image so that I can reproduce the problem.
This is a picture of my test. please check, thank you!
I just processed your input image.
The left side of every staff is not correctly detected. I have to investigate why.
I think the root cause is the lack of starting barline, hence the engine has to use only the detected staff lines, and those lines got truncated on the left for lack of enough horizontal line portions.
And since headers (clef / key / time) are searched only within staff horizontal limits, your percussion clefs were not detected at all.
Looking carefully at your very first image posted here, we can see that the percussion clefs are located outside the staves horizontal limits. I think you tried to insert them manually. But perhaps they were not taken into account because of their location. Just a guess,
I need to work on this. Stay tuned.
OK, this was indeed the initial problem.
To allow a correct detection of staves of your input image, an easy workaround is as follows:
Use the Tools -> Options
pull-down menu.
In the Search
field, enter the name: minCoreSectionLength
Beware, there are several constants with that name.
The right one should be the first, located in the FilamentFactory
class.
There, change the current value (0.9) to a smaller 0.7 value. Now, just reprocess the sheet. From now on, the engine will accept horizontal sections somewhat shorter when building the staff lines.
This may lead to collateral damages, if you have items located in the left margin of the staff. This is not the case in your example. I will try to find a better long-term solution. For the time being, please use the workaround.
A final advice regarding the book parameters: I noticed you have set the switch for 1-line percussion staves beside the one for the 5-line percussion staves. There is no such 1-line staff in this sheet. So you could remove it.
Hi, first of all Audiveris is an absolutely awesome feature for me! Because this is the only software I have found on the Internet that can scan drum music. But now there is still a problem that has been bothering me: after I successfully scanned and fine-tuned it with Audiveris, exported it to an XML format file, and then I put it into Musescore4, and all the notes were displayed normally (perfect), but when I played When I heard the sound of the piano and not the drums, I realized that the clef was still the treble clef, but I had changed the clef into the drum clef in Audiveris (although it did not scan out The drum clef is modified manually by myself). I tried a few methods, changing the piano to a drumset in the Musescore instrument, but I found that all the notes were in the same position, which made me give up on this method. So please tell me how to solve this problem, thank you very much!