Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /storage/content/49/145849/famitracker.com/public_html/forum/classes/dbHandler.php on line 29 FamiTracker
Login:
Menu:
Post: Author:
FamiTracker > General > FamiTracker Talk > FDS Frequency Calculation? Owner: retrobanana New post
Page 1 of 1 Sort:  
FDS Frequency Calculation? Posted: 2013-08-20 23:53 Reply | Quote
retrobanana



Member for: 3226 days
Status: Offline

#50685
I've discovered that if I make the FDS modulation frequency fast enough, I can make cool FM sounds. I would like to set the frequency so it is an integer ratio of the note being played. How can I calculate what frequency I will get for a given value of the modulation rate?

Posted: 2013-08-21 03:10  (Last Edited: 2013-08-21 03:10) Reply | Quote
Xyz_39808

Avatar

Member for: 4180 days
Location: South Texas
Status: Offline

#50687
[url=http://www.phy.mtu.edu/~suits/notefreqs.html]http://www.phy.mtu.edu/~suits/notefreqs.html
You should use the Hxx effect to determine modulation depth, I0x to determine the high bit and Jxy to determine low bits

Like I02 J6E for 622 decimal which is D#5

Posted: 2013-08-21 12:58 Reply | Quote
rainwarrior

Avatar

Member for: 4150 days
Location: Canada
Status: Offline

#50701
[url=http://wiki.nesdev.com/w/index.php/FDS_audio#Frequency_calculation_and_timing]http://wiki.nesdev.com/w/index.php/FDS_audio#Frequency_calculation_and_timing

Posted: 2013-08-21 16:36 Reply | Quote
retrobanana



Member for: 3226 days
Status: Offline

#50706
Thank you! I found the FDS page on Nesdev but when I calculated the frequency value for the note I wanted and entered it into the "modulation speed box", the frequency didn't seem to be correct. The scaling is inverted there.

Has anyone used the FDS to make FM sounds before?

Posted: 2013-08-21 17:21 Reply | Quote
rainwarrior

Avatar

Member for: 4150 days
Location: Canada
Status: Offline

#50709
Yes, but it's very poor for FM sounds. It's true frequency modulation, not phase modulation like all of the normal FM implementations. The result of this is that maintaining a stable phase relationship is more or less impossible, especially with the inherently imprecise and unbalanced way the modulator unit works.

Posted: 2013-08-22 13:44 Reply | Quote
poodlecock

Avatar

Member for: 3398 days
Location: !wow
Status: Offline

#50727
I remember nicetas_c doing something like this before, but I think he said that it's really hard to work with. And, as rainwarrior said, this is real FM, not that PM everything else uses, so you're gonna have that pitch weirdness if you go this route. One that, or only use notes that sound good (which is quite limiting...)

_______________________
"im going to continue making this crazy stuff then after a while my style will be so sick that you will be like damn suuun that shit is so sick i dont even get it. i will be like bro its ok.. you dont have to." -omgdonut
RE: FDS Frequency Calculation? Posted: 2013-08-28 05:17 Reply | Quote
SriK

Avatar

Member for: 3774 days
Location: University of Maryland, College Park
Status: Offline

#50881
Here's a .ftm I made when working on my DC6 entry, with all the Ixx/Jxx commands for each note. Pitches are still a bit off though, but I don't think it can be helped. Hopefully it helps.


Attachments:
fdstest.ftm (1 Kb)
Page 1 of 1 Sort: