Mod Archive Forums Mod Archive Forums
Advanced search  


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

Pages: [1]   Go Down

Author Topic: Ruby implementation of a MOD player  (Read 1097 times)

0 Members and 1 Guest are viewing this topic.


  • Tasted the Pie
  • Offline Offline
  • Posts: 1
    • View Profile
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

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

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]   Go Up