Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


MOD period

This topic is 6153 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Well, I was just wondering how to read the period from a mod file. If you are initiated in this subject you probably know that a ''note'' is written in this format Byte 1 Byte 2 Byte 3 Byte 4 --------- --------- --------- --------- 7654-3210 7654-3210 7654-3210 7654-3210 wwww XXXX xxxxxxxxx yyyy ZZZZ zzzzzzzzz wwwwyyyy ( 8 bits) : sample number XXXXxxxxxxxx (12 bits) : sample ''period'' ZZZZzzzzzzzz (12 bits) : effect and argument this I copied from Modfil11.txt. As you can see the first bytes low nibble and the second byte make up the period but howdo I use this period?. I have read this: 7093789.2 ----------- = x Hz period * 2 But I have to divide by period*4 to make it sound right. Why?

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!