Exporting note object page positions

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Exporting note object page positions

cambiata
Hi Werner!

I'm working on a Flash solution where I'm synchronizing graphical pointer in score with mp3 playback (Here's an example: http://korakademin.se/scorx/scorxInclude/scxDisplayExample.php?ScrxExID=23)

In the current version I manually create the data xml containing relevant coordinate (mainly bar, some note) positions. (I'm using a Delphi app created for this.)

What about the possibility to generate a custom xml file from MuseScore?
For example like this:

<score>
  <page w=1500 h=2500>
     <system x=200 y=400 w=1100>
       <measure w=300>
          <chord x=40 />
          <chord x=90 />
          ...
        </measure>
        <measure>
        ...
     </system>   
     <system>
     ...
  </page>
</score>

Are there properties having page coordinates, "ready-to-use" for this, in the MuseScore object hierarchy?
If not, would it be hard to calculate these coordinates and export them?

I was hoping to find something to use in the pdf export source, but I just found that Qt seems to handle this so neatly... :-( :-)


Regards / Jonas
Reply | Threaded
Open this post in threaded view
|

Re: Exporting note object page positions

wschweer
Administrator
Hello Jonas,

very nice program!

It should be easy to generate an xml file from mscore to support this.
Mscore has a midi tick position for every note/rest.
What about a list of tick position with page number and page position.
Every page position points to the first line of the first staff and
gives the system height:

      <score>
            <division>480</division>      // ticks per quarter note
            <pagesize w=xx h=xx />

            <page>
                  <tick val=xxx>
                        <pos x=xx y=yy height=hh />
                  </tick>
                  ...
            </page>
            ...
      </score>

All other information you may be interested in should also easy
to get.

Regards,
Werner



On Samstag 05 April 2008, Cambiata wrote:

>
> Hi Werner!
>
> I'm working on a Flash solution where I'm synchronizing graphical pointer in
> score with mp3 playback (Here's an example:
> http://korakademin.se/scorx/scorxInclude/scxDisplayExample.php?ScrxExID=23)
>
> In the current version I manually create the data xml containing relevant
> coordinate (mainly bar, some note) positions. (I'm using a Delphi app
> created for this.)
>
> What about the possibility to generate a custom xml file from MuseScore?
> For example like this:
>
> <score>
>   <page w=1500 h=2500>
>      <system x=200 y=400 w=1100>
>        <measure w=300>
>           <chord x=40 />
>           <chord x=90 />
>           ...
>         </measure>
>         <measure>
>         ...
>      </system>
>      <system>
>      ...
>   </page>
> </score>
>
> Are there properties having page coordinates, "ready-to-use" for this, in
> the MuseScore object hierarchy?
> If not, would it be hard to calculate these coordinates and export them?
>
> I was hoping to find something to use in the pdf export source, but I just
> found that Qt seems to handle this so neatly... :-( :-)
>
>
> Regards / Jonas




-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Register now and save $200. Hurry, offer ends at 11:59 p.m.,
Monday, April 7! Use priority code J8TLD2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer