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 > Would like some help with the Pitch Effect Owner: Spankenstein New post
Page 1 of 1 Sort:  
Would like some help with the Pitch Effect Posted: 2010-11-14 13:40 Reply | Quote
Spankenstein



Member for: 4236 days
Status: Offline

#11195
Hi there.

Just started using this tracker, in fact, it's the first tracker I've ever used and I would like to ask a question about the Pitch Effect

Is the 16ms time step based on the time for one frame at 60Hz? (16.66666..)

Does the effect do the following to the note:

- Take the current frequency (Hz)
- Minus the the number in parse text box (i.e. negative nos. negated)
- Repeat every 16ms if the '|' is used

So '| 8' would decrease the frequency by 8Hz every 16ms?

Why does:

'| 8' settle on an audible pitch

whereas:

'| -8' doesn't?

Thank you.



Posted: 2010-11-14 16:53 Reply | Quote
nicetas_c



Member for: 4582 days
Location: AB, CA
Status: Offline

#11196
- Take the current period register
- Add the first number of the MML string to the register (so negative means minus)
- For the next frame add the next number of the MML string until all values are added
- If the | is present, then the next number of the last number will be the one right after the |

16ms is based on the clock period, set to 60Hz by default. The one you see is in fact ( 1000 ÷ 60 )ms multiplies by the envelope size and then floored. Even the clock speed is different through [Tracker] --> [Engine Speed] --> [Custom] it will still use ( 1000 ÷ 60 )ms for the calculation.

Also note that 16ms instead of ( 1000 ÷ 60 )ms was used in early versions of FamiTracker.

About | 8 and | -8: | 8 constantly adds the period register until it reaches the highest 7FF when the frequency is about 55Hz; | -8 means that the register will go all the way to 0, and that means the frequency will be 111860 ÷ 0 = infinity/meaningless, and so no sound will be made.

Posted: 2010-11-14 18:01 Reply | Quote
Spankenstein



Member for: 4236 days
Status: Offline

#11197
Thanks for the help nicetas.

[quote=nicetas_c]
About | 8 and | -8: | 8 constantly adds the period register until it reaches the highest 7FF when the frequency is about 55Hz; | -8 means that the register will go all the way to 0, and that means the frequency will be 111860 ÷ 0 = infinity/meaningless, and so no sound will be made.[/quote]

You've lost me there but I've probably made some wrong assumptions

Is 7FF hexadecimal? If so then it equates to 2047 indicating there are 2048 values for the period.

If frequency is the reciprocal of period then 1 / 2047 doesn't equal 55 Hz. How did you calculate 55Hz from the period register?

Posted: 2010-11-14 18:49 Reply | Quote
nicetas_c



Member for: 4582 days
Location: AB, CA
Status: Offline

#11199
7FF is in base 16, so that means 2047. The formula between the period register and the actual frequency is HP=111860 where P and H are the register and the frequency respectively.

Posted: 2010-11-14 19:45 Reply | Quote
Spankenstein



Member for: 4236 days
Status: Offline

#11200
Could you please explain where the relationship 'HP=111860' is derived from? It doesn't make sense to me.

Posted: 2010-11-14 20:04 Reply | Quote
nicetas_c



Member for: 4582 days
Location: AB, CA
Status: Offline

#11201
It isn't supposed to make sense either, go ask the one who made the 2A03 sound chip.

Posted: 2010-11-15 00:23  (Last Edited: 2010-11-15 00:29) Reply | Quote
Spankenstein



Member for: 4236 days
Status: Offline

#11204
Cool, I wont sweat it then

Can you please tell me your source of information for the chip? In other words where did you learn of the H to P ratio, or did you just get the value from the maximum possible value?

Posted: 2010-11-15 01:21 Reply | Quote
TechEmporium

Avatar

Member for: 4485 days
Status: Offline

#11208
There are multiple sources on the NESDev website:

[url=http://nesdev.parodius.com]http://nesdev.parodius.com

You may also want to download a copy of the help file that normally comes with FamiTracker (if you don't have it already).

_______________________
Technology: the one thing that's hated & cursed at by all engineers, technologists, scientists & technicians!

(Lousy modern technology! )
Posted: 2010-11-15 12:46 Reply | Quote
Spankenstein



Member for: 4236 days
Status: Offline

#11213
Thank you

Page 1 of 1 Sort: