voice:frequency()

Discuss using and improving Lua and the Lua Player specific to the PSP.

Moderators: Shine, Insert_witty_name

Post Reply
Knifa
Posts: 4
Joined: Tue Dec 27, 2005 8:59 pm

voice:frequency()

Post by Knifa »

What format is this function in? 0-255 could mean anything.

Wouldn't it make more sense if it was in as the playback rate, as in, 44khz and the like?
MikeHaggar
Posts: 116
Joined: Mon Jul 18, 2005 2:20 am

Post by MikeHaggar »

hm... frequency goes from 0 to 88000 if you believe the music test script... so I'd guess you use 44000 (or 44100?) for 44khz...
Knifa
Posts: 4
Joined: Tue Dec 27, 2005 8:59 pm

Post by Knifa »

It says the range for it on the documentation is 0 to 255.
mrn
Posts: 116
Joined: Wed Nov 02, 2005 2:26 am

Post by mrn »

I've got an idea.

What U need is to
1. generate a wave file with a 1kHz sinewave inside.
(use Goldwave or send me a mail, I'll make it 4u)

then, by
2. playing back this wavefile on the PSP with different parameteers and measuring the freqency we can

3. re-estimate the sampling frequency the particular parameter corresponds to.

ie. example:
20 ~ 8kHz
40 ~ 16kHz
60 ~ 24kHz, etcetc
Post Reply