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
).
If you want to edit scores or work with midi files, I suggest using musescore.
LinkSo 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!