MidiRadio
MidiRadio - The anywhere you go midi player!
What is MidiRadio?
MidiRadio attempts to imitate songs in game by sending tuned in players note block sounds. MidiRadio is inspired by and expands on the original works of Protected in their plugin MidiBanks, now managed by jfmherokiller.
Rather than play note sounds through note blocks however, MidiRadio streams the players individually note sounds when they are tuned in to the radio, regardless of where they are at.
How do I use MidiRadio?
MidiRadio is very easy to setup in its current stage. Just stick some midi files into the plugin's data folder and it will start playing next time the server starts up. By default players are not tuned in to the radio - however typing /tune in will quickly have them listening to the waves in no time. You can opt out too by using /tune out.
Players with the midiradio.play permission can use /play <song> to change the song too!
Video demonstation:
You can see MidiRadio in action on server.minesworn.com. Just use /tune in when you join.
At the moment MidiRadio is still in its infancy and I'd love to expand on it by adding features like playlists, or multiple radio stations however they might be limited by how much time I have. Also, please do share any good midi files you find that work well with this plugin - keep in mind though that note blocks aren't suitable for playing long notes.
Check out the source on Github here!
This works perfectly but it's just kinda annoying XD cus they don't sounds very good
I was really excited. I got it all set up, and played a song. Everyone in the server died laughing. All that came through was a seemingly random low, very quiet beat (which wasn't even a beat at all.) I tried with 8 different midi files in the .mid format to no avail. Anything that could fix this?
@HeyShibby
Duplicate issue of comment below
the plugin doesn't load on startup it just says "[SEVERE] Error occurred while enabling MidiRadio v1.1 (Is it up to date ?) " ?;s
@mindcat
Oops, stupid mistake by me :P
The problem will go away when you add some midi files into the plugin's data folder.
09:36:25 [SEVERE] Error occurred while enabling MidiRadio v1.0 (Is it up to date ?) java.lang.ArrayIndexOutOfBoundsException: 0 at net.t7seven7t.midiradio.MidiRadio.onEnable(MidiRadio.java:42) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader .java:457) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage r.java:381) at net.diamondmine.reloader.PluginReloader.loadPlugin(PluginReloader.jav a:246) at net.diamondmine.reloader.PluginReloader.onCommand(PluginReloader.java :82) at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:18 6) at org.bukkit.craftbukkit.v1_4_6.CraftServer.dispatchCommand(CraftServer .java:510) at org.bukkit.craftbukkit.v1_4_6.CraftServer.dispatchServerCommand(Craft Server.java:502) at net.minecraft.server.v1_4_6.DedicatedServer.al(DedicatedServer.java:2 60) at net.minecraft.server.v1_4_6.DedicatedServer.r(DedicatedServer.java:22 5) at net.minecraft.server.v1_4_6.MinecraftServer.q(MinecraftServer.java:49 4) at net.minecraft.server.v1_4_6.MinecraftServer.run(MinecraftServer.java: 427) at net.minecraft.server.v1_4_6.ThreadServerApplication.run(SourceFile:84 9)
I've added some more of the note instruments and looked through a few midis to find which instruments should be translated into which note block sound. Hopefully next release some of your midis will sound better. I'll try to upload a demonstration video shortly too.
@robotnikthingy
What kind of songs are you trying to play? I found that there seems to be a few channels in some songs which are making them sound bad during playback. Often they are repetitive sounds that seem to be in there just to annoy. I'll try to find away to either not play these or selectively allow you which channels you want played.
yeah, i noticed too that most songs do play very well either, as if there were constant random lag spikes. Please improve playback of songs, as it seems that craftbook is never going to have its midi playback working ever again
Lol All the songs play pretty awfully, i think its hte noteblocks. Any nice songs as of yet?
@xH3LLRAIZ3Rx
Well this started out as a proof of concept and that is how it originally worked. I do plan on adding multiple players when I get the time and hopefully adding better playback options like this. Until then you could easily fork the project on github and modify a line or two of code to have it work as you'd like.
@t7seven7t
no i mean like just to play one song by doing /play (song) without it repeating the others
@xH3LLRAIZ3Rx
As in the song will begin playing to everyone who is already tuned in but it will automatically tune you in also?
could you add a feature to were if you do /play (song) it will play the song without tuning in
@ChrisMintjes92
"%MinecraftServer%\plugins\MidiRadio"?
Where %MinecraftServer% is the location of your craftbukkit jar.
Interesting that it is not added for you. The code both checks if the directory exists and creates it if it doesn't, and also asks bukkit to save a default (albeit empty) config there - both methods should create the folder if it does not exist. You can always try creating the folder though I feel like you have larger issues if the folder hasn't already been created.
The Midiradio-folder is not added...
@Tidues
Is it in the MidiRadio data folder? If so you can also use /play <file name> to force it to play. Don't include the file extension in the file name - the plugin already knows it has a .mid extension. If it still can't play the midi file it will print an error into your console/server log stating whether the midi is invalid/unreadable.
inserted midi file but it doesn't play.
Awesome! I hope this turns out well as the midi banks plugin didn't fit well for my needs
@VietNg
It plays the rhythm and notes encoded within the midi file using note block sounds.