0
0

hello every one, here is my first post in here :smile:

Ok I’m working on a generated synth tools, that provide a calculated sample in memory, then I tried to remap this sample to a mod file.
so far I just worked with a simple sinewave at C4 tone 16bit mono 44100. work well with a FSOUND_PlaySound but if I remap this sample to a module XM (or MOD) playing a C4 note, it is absolutely not the correct tone!?

So, what am I needed to do, to have the correct note ?
is there an option with FMUSIC_SetSample to tune the sample directtely to the correct tone? or am I needed to resample and recalculate my sample down ?

maybe someone could point me where to go? :smile:

regards
Lemon

  • You must to post comments
0
0

Thanks for the reply.
yes it play a middle C with a tuned sample that I don’t remap;
I explain:
I play a sine wave at 261.5Hz that is near a middle C (~C5) and sampled it at 44100 Hz on my PC. then I need to recalculate it at 8363Hz like that the sample become correct inside the tracker.
now if I want to remap an instrument with fmod it can not retune the sample correctely.
If I use fsound_sample_setdefaults (as you wrote) it will affect only the FSOUND_PlaySound function but not the F_API FMUSIC_PlaySong . 😐
it seems that when the module is played the buffered sample (at 44100 samplerate)is played as is, but not as the settings (8363 samplerate) are saying.

I did try with different samplerate from 4000 to 48000 but nothing change.

so what would be the good way ? recalculate a new sample buffer at 8363Hz samplerate ? or play a very high frequency sampled at 44100Hz ?

if someone could explain me or point me on how is working the XM format player, would helpme understand.

regards
Lemon

PS sorry for my bad english.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.