On Tue, 14 Jul 2009, [email protected] wrote:
> so you can only restore your songs if you resample your samples you use
> with sox. than i think you get a normal result.
I think the OP is looking for an upgrade path... and we might be able to
provide one:
When opening a file:
if... it was saved in a version before 0.9.4
and... pitch factor is set to a non-zero value
and... the AudioDriver sample rate is different from
the sample rate of the WAV/FLAC file
then:
fCorrection = 12.0 * log(fileRate / driverRate) / log(2.0)
fPitch -= fCorrection
In the case of the OP:
fPitch = 1.20
fCorrection = 12.0 * log(48000.0 / 44100.0) / log(2.0)
= 1.47
fPitch = fPitch - fCorrection = 1.20 - 1.47
= -0.27
This correction is not far from what the OP said the correction should be
(0.12). Also, it's just a guess... but I'll bet that he originally set
the pitch to 1.2 to compensate for the sample rate mismatch (whether he
knew it or not).
-gabriel
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Hydrogen-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hydrogen-devel