al - Audio Library Functions gDP - DP GBI Macros gdSP - General GBI Macros gSP - SP GBI Macros gt - Turbo Microcode RDP gu - Graphics Utilities Math - Math Functions nuSys - NuSystem os - N64 Operating System sp - Sprite Library Functions uh - Host to Target IO 64DD - N64 Disk Drive
|
alCents2RatioFormat#include <libaudio.h> f32 alCents2Ratio(s32 cents); Arguments
It is a utility routine for converting a detune value (measured in cents) into a ratio to be multiplied against the base pitch. Negative values lower the pitch, and positive values raise the pitch. Example A value of 1200 cents will produce a ratio value of 2, which when multiplied times the base pitch, will produce a pitch one octave higher. A value of -1200 will produce a ratio value of 0.5, which when multiplied against the base pitch will produce a pitch of one octave lower.
|