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.

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - valeureux

Pages: [1]
1
Project / Coder's Corner / Ruby implementation of a MOD player
« on: June 20, 2023, 23:45:29 »
Hello since few day I have start to implement a ruby mod player.
I make it opensource and it will be use to add mod music into game, especially game
made with dragonruby.
Here is the github
https://github.com/levaleureux/dr_mod

So far I can read the patterns and sound positons.
I use this document as a base of my work.

https://www.lim.di.unimi.it/IEEE/VROS/FAQ/CRAMIG2.HTM

My concern is now I try to play the sample. Apparently I have an array of value.
Then I try to normalize them.

But when I play them it sound different from the same MOD played by another tracker.
I use Milkytracker and it sound pretty much like the on line player of modarchive.
So I suppose I have some issue with the sample frequency...

How I can find the proper formula to find te corect sample frequency.
Also it will be very cool If you know how to test it.
Normaly I try to unit test thing but for that I will need some data with the before and after.
And here I don't really know how to start.

So far I'm quite happy from what I have done with the patterns I hope I will finish this last phase :)
Any help or links or small hint will be very appeciate. :)


Pages: [1]