MusicMade

    Discussion in 'Third Party Software' started by Megacrafter127, Oct 18, 2014.

    ?

    Is this a good mod?

    1. Yes

      34 vote(s)
      97.1%
    2. No

      0 vote(s)
      0.0%
    3. Too bugged(please explain)

      1 vote(s)
      2.9%
    1. Megacrafter127

      Joined:
      Jul 21, 2013
      Messages:
      2,934
      Is StarMade a little silent for you?
      I have the right mod for you then:

      MusicMade, bringing music to StarMade!

      Link: http://starmadedock.net/content/musicmade.1522/

      Requirements:
      1. Java 7 or higher
      How to install:
      1. Download the MusicMade.jar
      2. Run the MusicMade.jar and follow the instructions
      • You will need to reinstall MusicMade after updating or changing the version of StarMade.
      Currently supported formats(will be extended as fast and soon as possible):
      • .wav
      • .au
      • .ogg
      • (Depending on your setup and version of java more formats might be supported, but they are not guaranteed to be supported everywhere)
      How to add music files to the MusicMade playlist:
      1. Simply place the file in the MusicMade folder before you launch StarMade.
      Supported version of StarMade:
      • All past, present and future versions are supported.
      What does the musicmade.cfg in the StarMade folder configure(will likely be expaned in the future):
      • mainClass
        • the path to StarMade's main class in the installation (do not touch this unless you know exactly what you are doing)
      • useAmbientSounds
        • if set to true MusicMade will automatically append ambient sounds in StarMade's sound resources to the playlist
      • sleep
        • after finishing the playback of a track, MusicMade will wait the specified amount of milliseconds before playing the next track
      • randomSleep
        • if set to true MusicMade will not wait the full amount of time specified by the sleep config, but instead wait for a random amount of time between 0 and the sleep config
      • volume
        • an integer from 0 to 100 specifying the volume in % of the maximum possible volume.
      Please report any bugs you find.
      When reporting a bug, please also show the console output.

      Hint:
      MusicMade also works with other java programs ;)
       
      #1 Megacrafter127, Oct 18, 2014
      Last edited: Nov 18, 2014
      • Like Like x 5
    2. Thadius Faran

      Thadius Faran #1 Top Forum Poster & Raiben Jackpot Winner

      Joined:
      Oct 13, 2013
      Messages:
      5,049
      So when can I expect mp3?
       
    3. Megacrafter127

      Joined:
      Jul 21, 2013
      Messages:
      2,934
      mp3 is likely not ever going to be a thing due to copyright.
      However, I will likely be able to offer .ogg and .flac soon™
       
    4. OdraNoel

      Joined:
      Jul 20, 2014
      Messages:
      285
      mp3 is copyrighted as a formate? thats so super lame..... :(

      awesome mod idea tho, ill deff be checking it out :)
       
    5. Megacrafter127

      Joined:
      Jul 21, 2013
      Messages:
      2,934
      Talking about mp3
      It also isn't THAT great of a format. In general there are 3 types of sound formats:
      1. Raw
      2. Lossless
      3. Lossy
      Raw formats are as the name states, after a header containing samplerate and -size (and some other data) the samples are written in the file unmodified. These formats generally have the biggest filesize, but their size only depends on the length of the sound(and samplerate/size, but those are usually 44.1kHz and 16/24/32 bit). Wave (*.wav) is one of them.

      Lossless formats use compression, but if one converts a Raw into a Lossless and back, there will not be a single difference between both files.
      Their filesize is much smaller than raw, but also depends on the content of the file, silence can be compressed extremely well compared to white noise. FLAC (*.flac) is one of them. (FYI FLAC stands for Free Lossless Audio Compression)

      Lossy formats not only use compression, but also trade sound quality for size. Due to that they can be EXTREMELY small, but they will always lack quality. This is why lossy formats can have multiple quality standards. But if one turns a Raw to a Lossy and back, there will ALWAYS be a difference between both files(unless the Raw contained only silence). In most cases the used quality setting of Lossy formats s high enough to make it sound the same to the average human, but nobody is average, and with a good enough sound setup many will notice a difference(it may be slight though). Converting sound to/from Lossy formats is discouraged due to the quality loss. Mp3 (*.mp3) is a lossy format.
       
      #5 Megacrafter127, Oct 18, 2014
      Last edited: Oct 18, 2014
      • Informative Informative x 2
    6. Thadius Faran

      Thadius Faran #1 Top Forum Poster & Raiben Jackpot Winner

      Joined:
      Oct 13, 2013
      Messages:
      5,049
      Boo.


      What about mp4?
       
    7. Megacrafter127

      Joined:
      Jul 21, 2013
      Messages:
      2,934
      mp4 is a lossy video format combining the lossy h264 for the image and mp3 for audio :p
       
      • Funny Funny x 1
    8. Thadius Faran

      Thadius Faran #1 Top Forum Poster & Raiben Jackpot Winner

      Joined:
      Oct 13, 2013
      Messages:
      5,049
      So thats a no?



      Need to go get myself a....I already have a converter thanks to Skyrim :p
       
    9. Archer6621

      Joined:
      Jun 24, 2013
      Messages:
      710
      Once you start supporting .ogg I'll provide some ogg files of my music concepts for integration into the mod (if you want), because .wav for music is rather impractical : P

      Could you add something in the config that allows people to set a certain amount of seconds of pause between the tracks?
       
    10. Megacrafter127

      Joined:
      Jul 21, 2013
      Messages:
      2,934
    11. Archer6621

      Joined:
      Jun 24, 2013
      Messages:
      710
      Planning to add my second request as well? That way Minecraft-style playback will be possible, where there will be both silence and music.
       
    12. Megacrafter127

      Joined:
      Jul 21, 2013
      Messages:
      2,934
      I plan on making a more advanced control interface.
       
    13. Thadius Faran

      Thadius Faran #1 Top Forum Poster & Raiben Jackpot Winner

      Joined:
      Oct 13, 2013
      Messages:
      5,049
      Now all I need is Archer's Unreal Tournement music in ogg format.
       
      • Like Like x 1
    14. fire219

      fire219 1200° Plasma

      Joined:
      Sep 23, 2012
      Messages:
      443
      #14 fire219, Oct 19, 2014
      Last edited: Oct 19, 2014
      • Like Like x 1
      • Friendly Friendly x 1
    15. Crusade

      Joined:
      May 26, 2013
      Messages:
      1,175
      • Like Like x 1
    16. Megacrafter127

      Joined:
      Jul 21, 2013
      Messages:
      2,934
      Added 2 more config option and revealed another previously hidden option:
      • useAmbientSounds
        • if set to true MusicMade will automatically append ambient sounds in StarMade's sound resources to the playlist
      • sleep
        • after finishing the playback of a track, MusicMade will wait the specified amount of milliseconds before playing the next track
      • randomSleep
        • if set to true MusicMade will not wait the full amount of time specified by the sleep config, but instead wait for a random amount of time between 0 and the sleep config
       
      • Like Like x 2
    17. Archer6621

      Joined:
      Jun 24, 2013
      Messages:
      710
      Very cool, works just fine, it just needs a volume option now :p

      EDIT: Just noticed that the sleep option doesn't work properly (with randomsleep enabled), I had set it to 2 minutes (120000 ms), but it starts playing immediately after the end of the first track.

      Then, it continues to repeat the same track two times, also without the specified gap.

      EDIT2: It shows the same behavior with randomsleep off, but this time it also corrupted starmade's sound (lots of garbling/noise and echoing). It starts doing this after the loading screen, and stays like that until you close the game. It did not happen the second time though, so it may just be random.
       
      #17 Archer6621, Oct 19, 2014
      Last edited: Oct 19, 2014
    18. Megacrafter127

      Joined:
      Jul 21, 2013
      Messages:
      2,934
      I can assure you, it is completely random. And randomness does not exclude the same event happening over and over(it is just not as likely as different events happening)

      Also regarding the timeout being 0 from time to time with randomSleep on, the actual waiting time can be ANY value from 0 to the specified sleep value in milliseconds. This includes many possible sleeptimes shorter than humans can notice.

      On another note regarding randomness:
      Apple once changed the RNG(random number generator) used by the shuffle function of iTunes from a completely random to an almost completely not random algorithm, because people were complaining the absolute randomness wasn't random. Since then no more complaints arrived and the less random algorithm is used.

      That can be caused by StarMade using a different Mixer than MusicMade, so the samples mixed instead of fusing.
      E.g. instead of: sample1=MMsample1+SMsample1 ; sample2=MMsample2+SMsample2 ; …
      it became: sample1=MMsample1 ; sample2=SMsample1 ; sample3=MMsample2 ; sample4=SMsample2 ; …
      --- Updated post (merge), Oct 19, 2014, Original Post Date: Oct 19, 2014 ---
      Woops, I made a mistake and uploaded the wrong build :/
      Anyhow, that is fixed now.
       
    19. Archer6621

      Joined:
      Jun 24, 2013
      Messages:
      710
      Hahah, that might've been a big part of the problem indeed :)

      Gonna try the new one out.

      EDIT: You sure you fixed it? The file I just downloaded has exact the same filesize as the one I tried that did not work.

      And I tested it again, but the pause is still not working as intended, the random option is off btw, and I've set the waiting time to 120000 ms, but it resumes with the next track within a second.
       
      #19 Archer6621, Oct 19, 2014
      Last edited: Oct 19, 2014
    20. Archer6621

      Joined:
      Jun 24, 2013
      Messages:
      710
    Loading...