Mod Archive Forums Mod Archive Forums
Advanced search  

News:

Please note: Your main modarchive.org account will not work here, you must create a forum account to post on the forums.

Pages: [1] 2   Go Down

Author Topic: NfmM MOD Player  (Read 32622 times)

0 Members and 1 Guest are viewing this topic.

DragShot

  • New User
  • Offline Offline
  • Posts: 22
    • View Profile
NfmM MOD Player
« on: December 13, 2013, 03:39:36 »

Hello everybody. My name is Dany, 18 years old. I'm from Lima, Peru; and one of the things I like to do is to develop software. I've created some apps so far and I'm getting more skilled in Java.

Meanwhile, as I noticed there is a software section in this forum, I just wanted to post my own application. It's a ProTracker/FastTracker/ModPlugTracker module (.mod) desktop player made for JavaSE 1.7 (aka Java 7).

Specifically speaking about it, it's a dedicated player made for use in conjunction with a online car game called Need for Madness, which uses this module format for its soundtracks. Actually, many people got to know this site due to the creator's advice of looking for some good soundtracks in ModArchive.

Have a little screenshot of the version 2.1 being developed:


Current features:
- Local .mod files and zipped mod files support, using the game's engine called ModSlayer (which I couldn't find anywhere, so I assume it was made by the same guy who developed such game, I should ask him about it anyway).
- Playlists: playback, saving, loading, creation of new playlists using online search in the servers of Need for Madness.
- Tailor-made swing components for the GUI.
- Self-updateable.

Under development:
- Rise the time limit per track from 6:45 to 8:00 minutes (or a bit more).
- Optimization of controls (mainly redirecting controls to the output mixer instead of the audio clip, to get an actual control over the volume instead of just adjusting the gain).
- Integration of the HiFi Look&Feel, available in the jTattoo skins package (what you can see in this preview).
- Other minor improvements and bug fixes.

More info & download: http://dragshot.webcindario.com/software/modplayer.php

By the way, does somebody here know where I can know more about the internal bytecode in .mod files? I want to extend the engine being used in the player for stuff like adding compatibility with more effects, fixing some sampling issues and so, because this engine is really great at rendering the audio data but it's not perfect reading samples and certain effects.
« Last Edit: November 30, 2021, 21:39:02 by DragShot »
Logged

Saga Musix

  • TMA Moderator
  • Top Poster
  • ****
  • Offline Offline
  • Posts: 2571
  • I love OpenMPT! And Modules! And TMA! And Pie! :>
    • View Profile
    • Saga Musix - free module music and more!
Re: NfmM MOD Player
« Reply #1 on: December 13, 2013, 09:44:07 »

- Rise the time limit per track from 6:45 to 8:00 minutes (or a bit more).
Why limit it at all? There are mods well over the 10 minutes barrier.

By the way, does somebody here know where I can know more about the internal bytecode in .mod files? I want to extend the engine being used in the player for stuff like adding compatibility with more effects, fixing some sampling issues and so, because this engine is really great at rendering the audio data but it's not perfect reading samples and certain effects.
Check e.g. the famous modfil11.txt or other documentation available at ModLand, though I didn't read through those documents, so cannot comment on their accuracy (which is a big problem with many documents about module formats).
Logged
» My TMA artist profile
» Visit my music site: https://sagamusix.de/ [de, en]
» Visit my programming website: https://sagagames.de/ [de]
» Open ModPlug Tracker

arist9912

  • New User
  • Offline Offline
  • Posts: 5
    • View Profile
Re: NfmM MOD Player
« Reply #2 on: December 13, 2013, 16:57:28 »

Why limit it at all? There are mods well over the 10 minutes barrier.
Check e.g. the famous modfil11.txt or other documentation available at ModLand, though I didn't read through those documents, so cannot comment on their accuracy (which is a big problem with many documents about module formats).

Or try to examine the code of IBXM(a mod player, plays MOD, S3M and XM; the sourcecode is included in the jar file)

IBXM: http://code.google.com/p/micromod/downloads/list

For the playback time limit, in the ModArchive there are modules with 1 hour lenght
try: http://modarchive.org/index.php?request=view_by_moduleid&query=157663
« Last Edit: December 13, 2013, 17:03:03 by arist9912 »
Logged

DragShot

  • New User
  • Offline Offline
  • Posts: 22
    • View Profile
Re: NfmM MOD Player
« Reply #3 on: December 13, 2013, 20:03:40 »

Why limit it at all? There are mods well over the 10 minutes barrier.

The engine I use renders the song into an array of bytes. I've noticed this limited the time per song to 6:45, and some .mod songs I've listened reached 7:30. I'm trying to see how much I can extend such limit, seeing how does this affect the heap memory required and stuff (although I don't think it should be a lot).

Check e.g. the famous modfil11.txt or other documentation available at ModLand, though I didn't read through those documents, so cannot comment on their accuracy (which is a big problem with many documents about module formats).

Thank you :D , it has exactly what I wanted to read.

Or try to examine the code of IBXM(a mod player, plays MOD, S3M and XM; the sourcecode is included in the jar file)

IBXM: http://code.google.com/p/micromod/downloads/list

I'm trying luck with 2 engines, one of them resulted being way too confusing xD , but the other is more organized, so I can read its sources. I'll add this one too, thank you.

For the playback time limit, in the ModArchive there are modules with 1 hour lenght
try: http://modarchive.org/index.php?request=view_by_moduleid&query=157663

I'll have that in count, but... you know, that isn't exactly a .mod file.

PS: "Wants more pie"? LOL, I love these ranks xD!
Logged

DragShot

  • New User
  • Offline Offline
  • Posts: 22
    • View Profile
NfmM MOD Player - New update!
« Reply #4 on: December 17, 2013, 04:28:11 »

I've released a new version of the player. It comes with the new Look&Feel and also with support for 6 new effects: Bxx (position jump), E6 (row loop), E9 (note retrigger), EA (fine volume slide up), EB (fine volume slide down) and EC (note cut). I've raised the buffer size as much as I could without overloading the heap space to can render longer tracks.

Here it is a preview:


Now it shows the module format and the number of channels, plus some effects which aren't supported by the original engine it came from to warn the users about possible differences in playback between this player and the game.

To update the player from the version 2.0, go to Info > Check for updates and when it shows the details about the new version, accept the download. The new version should be downloaded and installed automatically, restarting the player and opening the new version. It also can be downloaded from the website: http://dragshot.webcindario.com/software/modplayer.php
« Last Edit: November 30, 2021, 21:39:26 by DragShot »
Logged

Saga Musix

  • TMA Moderator
  • Top Poster
  • ****
  • Offline Offline
  • Posts: 2571
  • I love OpenMPT! And Modules! And TMA! And Pie! :>
    • View Profile
    • Saga Musix - free module music and more!
Re: NfmM MOD Player
« Reply #5 on: December 17, 2013, 09:38:03 »

Frankly, when you're already about to implement own effects, you may want to rewrite the whole thing in a sane way, without having to render the whole song in a static buffer. A MOD player is fairly simple to program.
Logged
» My TMA artist profile
» Visit my music site: https://sagamusix.de/ [de, en]
» Visit my programming website: https://sagagames.de/ [de]
» Open ModPlug Tracker

DragShot

  • New User
  • Offline Offline
  • Posts: 22
    • View Profile
Re: NfmM MOD Player
« Reply #6 on: January 20, 2014, 19:29:20 »

Frankly, when you're already about to implement own effects, you may want to rewrite the whole thing in a sane way, without having to render the whole song in a static buffer. A MOD player is fairly simple to program.
In that way it's relatively easy to skip between parts in the song and export it all into a .wav file quickly; but yeah, I'm looking for better mechanisms for the payback, mainly to save memory and stuff.

Duh, just noticed I posted this thread is the wrong section -_- (I missed the respective readme for this section and I didn't even find the proper section before posting the topic in first place). Could you move it into the Players section when you get some free time? Thanks a lot.
« Last Edit: January 20, 2014, 19:32:55 by DragShot »
Logged

DragShot

  • New User
  • Offline Offline
  • Posts: 22
    • View Profile
NfmM MOD Player - New update!
« Reply #7 on: January 26, 2014, 05:02:23 »

NfmM MOD Player has been updated!

The version 2.2 is now up and includes the following changes:

- Added the option to search in The Mod Archive. Find any module from a repository with thousands! (Thanks a lot for the API key, it's safe in a web server which performs the requests between the search engine and the player). More options will be added in future releases to improve the results.
- The script format used in playlists has been changed to support local modules, modules from ModArchive and modules from Need for Madness Multiplayer in the same playlist. I'm keeping backwards compatibility with the previous format.
- Added the option to download a module being listened from The Mod Archive, or to save any other file as a module file or a module compressed into a zip. However, modules CANNOT be downloaded from NfmM, because the players haven't authorized such copies to be downloaded, and also several of them are from ModArchive.
- Minor interface and engine changes to work with the new features in a proper way.

To update your player, go to Info > Check for updates and when it shows the details about the new version, accept the download. The new version should be downloaded and installed automatically, restarting the player and opening the new version.

It can also be downloaded from here: http://dragshot.webcindario.com/software/modplayer.php
« Last Edit: November 30, 2021, 21:39:50 by DragShot »
Logged

m0d

  • Creator of Meow Meow Meow Kitty Song
  • Global Moderator
  • Top Poster
  • ****
  • Offline Offline
  • Posts: 1867
  • Original Site Admin/Designer/Coder
    • View Profile
    • Science & Art - Eindhoven.space - RedHeat Music & More
Re: NfmM MOD Player
« Reply #8 on: February 28, 2014, 13:50:26 »

Cool stuff :)
Logged
👨‍💻 Creator, Musician & HF Packet Radio Network Core
🎧 Discover great music via other member's special picks in the MFG
☕️ Get m0d a coffee via Ko-Fi.com
💬 IRC irc.rizon.net #modarchive
💬 Modarchive Discord

Jay

  • Newbie
  • Offline Offline
  • Posts: 59
    • View Profile
Re: NfmM MOD Player
« Reply #9 on: March 03, 2014, 23:57:42 »

I can't seem to run this, am I missing a lib? Running from the command line gives:

Code: [Select]
Exception in thread "main" java.lang.UnsupportedClassVersionError: ds/modplayer/ModPlayer : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:643)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
Could not find the main class: ds.modplayer.ModPlayer. Program will exit.

Linux Mint 13 (Ubuntu based) x86_64 running 3.8.0-26-generic. I have both JRE6 and JRE7 installed (just updated to the latest vers.)
Logged
Pages: [1] 2   Go Up