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

Author Topic: How to set the sample size to cover exactly 4 rows  (Read 6312 times)

0 Members and 1 Guest are viewing this topic.

YuGiOhJCJ

  • New User
  • Offline Offline
  • Posts: 17
    • View Profile
    • YuGiOhJCJ
How to set the sample size to cover exactly 4 rows
« on: July 19, 2013, 11:59:26 »

Hello,

In the sample editor, I can chose the sample size.
If the sample size is low, the played note will cover a low number of rows (if it is very low, it can cover zero rows and only some ticks in the row).
If the sample size is big, the played note will cover a big number of rows (if it is very big, it can cover more than one pattern).

The problem is how to determine the sample size to cover exactly a number of rows (or ticks).

As example, I have BPM 125 and speed 6 (the default MilkyTracker values).
It means that I have 6 ticks per row.
I think the BPM and speed must be take in account to answer this question.

How to set the sample size to cover exactly 4 rows ?

Thank you.
Regards.
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: How to set the sample size to cover exactly 4 rows
« Reply #1 on: July 19, 2013, 19:46:19 »

The tick duration is (sampling frequency * 5) / (tempo * 2) samples, so if we assume a sampling frequency of 44092 Hz (can't get closer to the standard 44.1KHz in the XM format), that would be 44092 * 5 / (125 * 2) = 881 samples pro tick. 4 rows = 6 * 4 = 24 ticks, so 21144 samples in total.
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
Pages: [1]   Go Up