I am offering for the general public a music player plugin.
The jar file goes to plugins folder. The music.txt file goes to Salem folder. The button is under "X" menu - if you are new to plugins.
The notation in music.txt file is extremely basic. First line contains tempo expressed in quarternotes per minute. Second and all following lines contain notes.
One does not need to repeat note length if all subsequent notes are the same. 1 is whole note, 2 is half note, 4 is quarternote and so on. Notes can not be shorter than 16.
It is possible to use dot, so 1. 2. 4. 8. 16. will work as expected.
Sound pitch is defined as C C# D D# etc. Space is pause.
uppercase and lowercase does not matter, but stick to one in a given file. Maybe some day it will make a difference.
Multiple lines are treated as one, you can write one line of code for one line in sheets.
Playing time is limited to 5 minutes.
You can edit or replace music.txt when it is not playing.
Sadly, due to various Salem constraints the effect is not that impressive. For once Salem sounds do not make even one octave, the upper C is missing. That excludes quite a lot of music.
Secondly due to sound fixes, there is minimum delay between sounds of the same pitch. Two subsequent quarternotes at tempo 120 will not play correctly - second one will be delayed by approx 1/5 of it's time.
Playing eighth notes and sixteenth notes at higher tempo is pointless.
The sound resources are of fixed length so any note will last the same time, it is only the moment when next note begins that will change. The previous note will either sound in the background or there will be a short moment of silence between.
There is also net lag and server lag and loading delays which can mess things pretty well.
I was thinking one might get better results with funeral marches, but most of these use too wide scale.
The code goes without source code, sorry for that. Some people will get the source code in PMs as needed. There are some counter-abuse parts of the code and versions without these are quite likely bannable.
Jar filemusic.txt (Twinkle twinkle)Couple of other pieces, but, well, these get messed badly anyway.
Jingle Bells (part only)
Narcotic
Some random supposedly sax piece
Star wars imperial march (part of it)
The Internationale, the real reason I even bothered to write this code
, sadly it is mangled as much as others.