Removing Linebreaks

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Removing Linebreaks

Kovak
Hi Everyone,

I am developing a game that uses the music.xml and SVG output of a MuseScore, modified to tag the elements in music.xml with uuid that are also inserted into the SVG elements, to produce interactive sheet music that can then be played with midi devices. At the moment, someone has to manually go in and modify the files to accomplish 2 tasks:

1. Removing linebreaks for the music. Since everything will be displayed horizontally on a screen, we need to have no pages just one continuous score.

2. Removing title/other information that gets inserted at the top of the score.

I am hoping to modify musescore so these 2 things can be automated. Is there an option at the moment to have a score laid out without line breaks or leave out title information? If not, can anyone point me in the right direction for modifying musescore to accomplish these tasks?

Thanks so much!
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Removing Linebreaks

lasconic
Administrator
Great. What's the name of the game? Do you have a website?

You could modify the size of the page to fit the whole score or use the continuous view.
Also check Score::showVBox()

lasconic


2017-07-24 20:42 GMT+02:00 Kovak <[hidden email]>:
Hi Everyone,

I am developing a game that uses the music.xml and SVG output of a
MuseScore, modified to tag the elements in music.xml with uuid that are also
inserted into the SVG elements, to produce interactive sheet music that can
then be played with midi devices. At the moment, someone has to manually go
in and modify the files to accomplish 2 tasks:

1. Removing linebreaks for the music. Since everything will be displayed
horizontally on a screen, we need to have no pages just one continuous
score.

2. Removing title/other information that gets inserted at the top of the
score.

I am hoping to modify musescore so these 2 things can be automated. Is there
an option at the moment to have a score laid out without line breaks or
leave out title information? If not, can anyone point me in the right
direction for modifying musescore to accomplish these tasks?

Thanks so much!



--
View this message in context: http://dev-list.musescore.org/Removing-Linebreaks-tp7580304.html
Sent from the MuseScore Developer mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Removing Linebreaks

Kovak
Thanks for the quick reply!

Our game is called trebella it isn't launched yet, but here is our site.

Continuous mode looks like exactly what we want. However, when we try to export an SVG in continuous mode Musescore instead exports it in regular paging mode. We noticed with a slightlier early version of Musescore ~900 commits ago, it just crashed when trying to do the export. Is there a technical reason we can't export the score as a continuous arranged svg?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Removing Linebreaks

lasconic
Administrator
There is no technical reason I know off for SVG output (PNG are limited in size by Qt).
So there is currently no way to export the continuous view to SVG because 
1/ it works the same than PNG 
2/ No casual user really wants a very large SVG

I would advise against the use of a MuseScore version from 900 commits ago. If you modify MuseScore, it's probably better to use the 2.2 branch currently. Your contributions are welcome, including the unique ID one!

lasconic


2017-07-25 21:32 GMT+02:00 Kovak <[hidden email]>:
Thanks for the quick reply!

Our game is called trebella it isn't launched yet, but  here is our site.
<http://trebel.la>

Continuous mode looks like exactly what we want. However, when we try to
export an SVG in continuous mode Musescore instead exports it in regular
paging mode. We noticed with a slightlier early version of Musescore ~900
commits ago, it just crashed when trying to do the export. Is there a
technical reason we can't export the score as a continuous arranged svg?



--
View this message in context: http://dev-list.musescore.org/Removing-Linebreaks-tp7580304p7580306.html
Sent from the MuseScore Developer mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Removing Linebreaks

sideways
Hi, re: SVG - I'm the guy who made the most recent changes and understands the code the best.

SVG Export pays no attention to the view mode whatsoever, and has never done so, AFAIK.

As long as I have known the code, since v2.0, SVG export has always exported by page.  That's the outermost loop when it comes to iterating over elements to export.  I know little about continuous view, but if you want to export a score into an SVG that is one big page, then I suggest changing the Page Format width and height settings to be as large as you need them to be in order to accomplish that.  I do that myself often for piano-roll-style scores.

There are even some efficiencies in the code for dealing with very wide horizontally scrolling scores, which it looks like your game does.  The piano roll style of score only paints the staff lines once for the entire page, which results in noticeable savings in SVG file size for long scores.  The default is to export staff lines by measure, which results in measureCount * staffLines elements.  It's not a massive efficiency or anything, but I mention it to indicate strong support for the type of score you wish to export.  Just adjust your page settings.

On 7/25/2017 1:53 PM, Lasconic wrote:
There is no technical reason I know off for SVG output (PNG are limited in size by Qt).
So there is currently no way to export the continuous view to SVG because 
1/ it works the same than PNG 
2/ No casual user really wants a very large SVG

I would advise against the use of a MuseScore version from 900 commits ago. If you modify MuseScore, it's probably better to use the 2.2 branch currently. Your contributions are welcome, including the unique ID one!

lasconic


2017-07-25 21:32 GMT+02:00 Kovak <[hidden email]>:
Thanks for the quick reply!

Our game is called trebella it isn't launched yet, but  here is our site.
<http://trebel.la>

Continuous mode looks like exactly what we want. However, when we try to
export an SVG in continuous mode Musescore instead exports it in regular
paging mode. We noticed with a slightlier early version of Musescore ~900
commits ago, it just crashed when trying to do the export. Is there a
technical reason we can't export the score as a continuous arranged svg?



--
View this message in context: http://dev-list.musescore.org/Removing-Linebreaks-tp7580304p7580306.html
Sent from the MuseScore Developer mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot


_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Removing Linebreaks

lasconic
Administrator
That was indeed my first suggestion: modify the size of the page to fit the whole score

lasconic

2017-07-26 0:11 GMT+02:00 Sideways Skullfinger <[hidden email]>:
Hi, re: SVG - I'm the guy who made the most recent changes and understands the code the best.

SVG Export pays no attention to the view mode whatsoever, and has never done so, AFAIK.

As long as I have known the code, since v2.0, SVG export has always exported by page.  That's the outermost loop when it comes to iterating over elements to export.  I know little about continuous view, but if you want to export a score into an SVG that is one big page, then I suggest changing the Page Format width and height settings to be as large as you need them to be in order to accomplish that.  I do that myself often for piano-roll-style scores.

There are even some efficiencies in the code for dealing with very wide horizontally scrolling scores, which it looks like your game does.  The piano roll style of score only paints the staff lines once for the entire page, which results in noticeable savings in SVG file size for long scores.  The default is to export staff lines by measure, which results in measureCount * staffLines elements.  It's not a massive efficiency or anything, but I mention it to indicate strong support for the type of score you wish to export.  Just adjust your page settings.

On 7/25/2017 1:53 PM, Lasconic wrote:
There is no technical reason I know off for SVG output (PNG are limited in size by Qt).
So there is currently no way to export the continuous view to SVG because 
1/ it works the same than PNG 
2/ No casual user really wants a very large SVG

I would advise against the use of a MuseScore version from 900 commits ago. If you modify MuseScore, it's probably better to use the 2.2 branch currently. Your contributions are welcome, including the unique ID one!

lasconic


2017-07-25 21:32 GMT+02:00 Kovak <[hidden email]>:
Thanks for the quick reply!

Our game is called trebella it isn't launched yet, but  here is our site.
<http://trebel.la>

Continuous mode looks like exactly what we want. However, when we try to
export an SVG in continuous mode Musescore instead exports it in regular
paging mode. We noticed with a slightlier early version of Musescore ~900
commits ago, it just crashed when trying to do the export. Is there a
technical reason we can't export the score as a continuous arranged svg?



--
View this message in context: http://dev-list.musescore.org/Removing-Linebreaks-tp7580304p7580306.html
Sent from the MuseScore Developer mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot


_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer
Loading...