[REQUEST] AdPlug music plugin

Post your work in progress addons and get feedback

Post » Wed Feb 04, 2015 8:34 pm

I love the sound of the old OPL chip music in early to mid nineties games, and the best method of emulation these days tends to be AdPlug: http://adplug.sourceforge.net

I know over at the Adventure Game Studio forums they managed to get AdPlug ported as an addon to their engine: http://www.adventuregamestudio.co.uk/fo ... c=23365.40

There's also the MAME OPL and Dosbox OPL emulators, but AdPlug is probably the easiest way of doing this. Anybody good with porting code that wants/needs this? :)
B
41
S
12
G
14
Posts: 1,117
Reputation: 11,248

Post » Wed Feb 04, 2015 8:58 pm

There's no plugin but you can play mod files with examples here:
request-flodjs-mod-xm-music-player_t104503?&hilit=mod
B
89
S
30
G
96
Posts: 5,160
Reputation: 63,956

Post » Thu Feb 05, 2015 6:02 am

Thanks, mod files are a lot different to how adlib works. Adlib is basically a 4-operator fm synthesizer that accepts midi-type files, whereas mod-type files, as you'll know, have patterns that trigger small samples packed directly into the file. It would be impossible to emulate precisely the sound adlib using mod files.
B
41
S
12
G
14
Posts: 1,117
Reputation: 11,248

Post » Thu Feb 05, 2015 7:23 pm

To me it's just another file format. It looks like it's been ported to javascript here:
http://www.wothke.ch/AdLibido/

It likely can be used in a similar manner to the stuff in that other topic.
B
89
S
30
G
96
Posts: 5,160
Reputation: 63,956

Post » Thu Feb 05, 2015 8:11 pm

R0J0hound wrote:To me it's just another file format. It looks like it's been ported to javascript here:
http://www.wothke.ch/AdLibido/

It likely can be used in a similar manner to the stuff in that other topic.


Precisely, so hopefully if there's enough interest, someone with skills might be able to look into porting it to C2? :D
B
41
S
12
G
14
Posts: 1,117
Reputation: 11,248

Post » Sun Feb 08, 2015 12:51 pm

Here's another example of OPL emulation: http://opl3.cozendey.com if I had proper programming skills I'd take a look myself, I'd love to hear from anyone else that's interested in having this functionality available in C2.
B
41
S
12
G
14
Posts: 1,117
Reputation: 11,248

Post » Tue Feb 10, 2015 8:07 am

Okay, since a it has already been ported to JavaScript, @r0j0hound what is the next step to get this working with construct?
B
41
S
12
G
14
Posts: 1,117
Reputation: 11,248

Post » Tue Feb 10, 2015 6:42 pm

The next step would be to make a plugin that runs the js code necessary to start playing sound. The js libraries usually have a working example that you'd mostly copy.
B
89
S
30
G
96
Posts: 5,160
Reputation: 63,956

Post » Wed Feb 11, 2015 2:19 pm

So here are the repos for the js version: https://github.com/wothke , as I said I have absolutely no experience in javascript or writing plugins, but I'm interested in how difficult it would be to port this over. @R0J0hound what type of library would you suggest might be closest to this?
B
41
S
12
G
14
Posts: 1,117
Reputation: 11,248

Post » Wed Feb 11, 2015 5:48 pm

The library to use depends on what file format you want to play. Taking that adpug link I posted and tweaking the js it uses a bit results in the attached capx. It uses the same method as my mod player capx'. All it does is play any file you specify. Any other features would require delving deep into the source to: A find if such a feature is possible and B. figuring out how to use it.
You do not have the required permissions to view the files attached to this post.
B
89
S
30
G
96
Posts: 5,160
Reputation: 63,956

Next

Return to Work in Progress Addons

Who is online

Users browsing this forum: No registered users and 1 guest