ALGORITHM for Unroll fonction (when exporting to MIDI for exemple)
Hi !
Is there (and, if so, where could I have access to it?) an ALGORITHM describing the logic allowing to "linearize" (unroll) a partition, that is to say to delete any "replay" or change of logic (Da Coda, Da Segno, etc.)?
Comments
In other words, to re-write repeats longhand. No, Musescore doesn't have such a function. It would be nice to have because maybe you want the same music but for different instruments in the repeat. If you know how to program, you could probably contribute a plugin that does this. Or post your comment again in the Feature Request section of the forum. I'm sure one of them programming boys will be more than happy to do it.
In reply to In other words, to re-write… by FBXOPWKDOIR2
??? But ... there is one !! When MuseScore export to MIDI file ! So : where could I read the algorythme ?
In reply to In other words, to re-write… by FBXOPWKDOIR2
Plus : not only when MuseScore export MIDI file but when MuseScore is playing a score ! It can play all repeats and jump, not ? So there must be an algorythme !
In reply to Plus : not only when… by ArouG
I see what your saying. Have a look at https://github.com/musescore/MuseScore.
In reply to I see what your saying. Have… by FBXOPWKDOIR2
I'm afraid you have not really see ... Thanks for all but iwas looking for an "algorythme" ... not a big collection of pieces of programs where you must find to have a program (coded in a langage you don't know perhaps). An "algorythme" is a kind of code but in a "natural langage" and describe process that are understood from every one who knows the music (of course) ...
One again : thanks to try to answer me but it is not what I was looking for. Sorry
In reply to I see what your saying. Have… by FBXOPWKDOIR2
try to find "unroll" in this page ...
In reply to try to find "unroll" in this… by ArouG
The only reason you'd need such an algorithm is if you're going to write a program that will do the things you said. Musescore does not have such a function that will write out the repeats longhand for you (or "unroll" them as you say). You've either got to do that yourself by cutting and pasting, or if you're handy with writing software then you can write a function that will do it. Actually cutting and pasting has its charms. You can vary the instrumentation or the harmony and melody. But if you don't want to do any of those things, then I suggest you use "Feature Request" to post your question. There's plenty of professional programmers and people hiding out from the law that will be happy to tackle this problem.
In reply to The only reason you'd need… by FBXOPWKDOIR2
Mu3 had (and still has) that unroll loops feature, only Mu4 doesn't have it (back yet)
In reply to Mu3 had (and still has) that… by Jojo-Schmitz
Yep, and it's just one file in 3.6.2 that is not even too long. That's why the OP should post a feature request or even try and bring up the matter at the next Github lodge meeting.
In reply to Mu3 had (and still has) that… by Jojo-Schmitz
I've got it ! but ... what is this file ?
In reply to I've got it ! but ... what… by ArouG
(Musescore3.6.2 source code folder) \ libmscore \ unrollrepeats.cpp
In reply to (Musescore3.6.2 folder) \… by FBXOPWKDOIR2
thanks a lot ! I'll try to convert in javascript !