N64® Functions Menu

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

Nintendo® Confidential

   

alCents2Ratio

Format
#include <libaudio.h>
f32 alCents2Ratio(s32 cents);


Arguments
  • cents is the value measured in cents (a cent is 100th of a whole step)
What This Function Does
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.


Nintendo® Confidential

Warning: all information in this document is confidential and covered by a non-disclosure agreement. You are responsible for keeping this information confidential and protected. Nintendo will vigorously enforce this responsibility.


Copyright © 1998
Nintendo of America Inc. All rights reserved
Nintendo and N64 are registered trademarks of Nintendo
Last Updated January 1998