Author Topic: Music converter tool - easily load your favourite music into PS  (Read 692 times)

Donari Tyndale

  • Hydlaa Notable
  • *
  • Posts: 748
    • View Profile
So the guys and I decided it was time to get some proper music into PS because Grindulf can't do it all by himself.

I wrote this little converter tool that allows you to load a musicXML (a format for music sheets commonly used) into an XML that PS can read (just google musicXML ;D).

If you want to edit scores or work with midi files, I suggest using musescore.

Link

So here's how you do it.

1. Obtain a musicXML of the song you want to upload (For example from musescore.com)

2. Open the xml with a text editor. It will look like this:


3. Remove those first two lines if it looks like above. If it starts with <score...>, you're fine.

4. Now open the converter (Windows only at this point, if one of you guys wants to compile for another OS, I'm happy to share the source code):


5. Click "Load sacrifice" and select your xml. There will be several parts (most likely, different instrument tracks), but PS can only handle one of them. Select the one you want in the first drop down menu.

6. The cut measure option allows you to cut measures if the file is too long for PS to handle, ignore it if you're unsure what to do (afaik the limit is 65kb).

7. Click "Hail the Empire" and find the "_out.xml" in the same directory as the source file. Put the out file into your PlaneShift/musicsheets folder and upload into PS. Example:


8. A few things:
  • If the tune is off, try increasing divisions.
  • Regardless what PlaneShift shows, try playing the file. Sometimes, it loads properly but the display in PS is off.
  • There have been reports of this not working with GreatShift
  • You can also adjust the BPM ingame
  • The "Find the traitor" option puts out a larger, but indented xml file for easier reading.
  • We've tested many scores, most of them seem to work. Due to the way different voices are processed, the result may appear a bit scrambled. Generally, the simpler the score, the more likely you'll get a proper result in PS
  • If you have troubles getting a score to work, let me know. It helps with debugging

9. Thanks Mariana for the awesome logo!
« Last Edit: April 05, 2015, 06:06:31 pm by Donari Tyndale »

Jilerel

  • Hydlaa Resident
  • *
  • Posts: 112
    • View Profile
Re: Music converter tool - easily load your favourite music into PS
« Reply #1 on: April 05, 2015, 06:07:38 pm »
Finally released !  :D

And yup, I couldn't save the score with PSextended, and I can now with regular PS... Weird.

Dilihin

  • Hydlaa Citizen
  • *
  • Posts: 296
  • you can always find me on IRC: JeHugawa @freenode
    • View Profile
Re: Music converter tool - easily load your favourite music into PS
« Reply #2 on: April 05, 2015, 06:12:52 pm »
 \\o//

and i have issues with saving too,but with some messing around with scores,it saved.

Jilerel

  • Hydlaa Resident
  • *
  • Posts: 112
    • View Profile
Re: Music converter tool - easily load your favourite music into PS
« Reply #3 on: April 05, 2015, 06:14:01 pm »
\\o//

and i have issues with saving too,but with some messing around with scores,it saved.

Wasn't a converter bug, you couldn't save any score at all xD

Dilihin

  • Hydlaa Citizen
  • *
  • Posts: 296
  • you can always find me on IRC: JeHugawa @freenode
    • View Profile
Re: Music converter tool - easily load your favourite music into PS
« Reply #4 on: April 05, 2015, 06:16:49 pm »
well before the converter i could save,so i guess it's Sandstorm  ;D

Shatterkiss

  • Hydlaa Resident
  • *
  • Posts: 92
    • View Profile
Re: Music converter tool - easily load your favourite music into PS
« Reply #5 on: May 10, 2017, 07:52:20 am »
Is there a working link to this tool? I've got some music I'd like to convert and I'm hoping for an easy way to do it.  ;D

Aeghiss

  • Hydlaa Resident
  • *
  • Posts: 63
  • Hopefully my English grammar is flawless.
    • View Profile
Re: Music converter tool - easily load your favourite music into PS
« Reply #6 on: May 10, 2017, 10:37:06 am »
Is there a working link to this tool? I've got some music I'd like to convert and I'm hoping for an easy way to do it.  ;D

No idea about this one, but I'll redirect you to this thread and advise you the second method. Tested and approved. Plus, it works on every OS. ;)
Aeghiss Rubinhertz, Ynnwn student at the University of Yliakum.
Melodria Palir, Enkidukai would-be Graalahkam-maarhe.

Dilihin

  • Hydlaa Citizen
  • *
  • Posts: 296
  • you can always find me on IRC: JeHugawa @freenode
    • View Profile
Re: Music converter tool - easily load your favourite music into PS
« Reply #7 on: May 10, 2017, 12:24:38 pm »
I can poke Donari for source, also will compile for linux aswell.

Donari Tyndale

  • Hydlaa Notable
  • *
  • Posts: 748
    • View Profile
Re: Music converter tool - easily load your favourite music into PS
« Reply #8 on: May 10, 2017, 05:13:54 pm »
Download since I was poked :P

Shatterkiss

  • Hydlaa Resident
  • *
  • Posts: 92
    • View Profile
Re: Music converter tool - easily load your favourite music into PS
« Reply #9 on: May 10, 2017, 09:38:25 pm »
Thanks all!!!  \\o//  Time to see if I can convert some cello music to a lyre.