[PD] [writesf~] sample rate problem?
reduzierer at yahoo.de
Tue Jul 3 10:03:26 CEST 2007
On Tue, 2007-07-03 at 00:49 +0200, Roman Haefeli wrote:
> i hacked around a bit in aiff-files. here the flag '-rate 96000' didn't
> have any effect on the resulting aiff-files as well. it seems like it is
> hardcoded to 44100 for aiff-files. can anyone confirm this by reading
> the source of [writesf~]?
> anyway, i found out, how to fix aiff-files. the interesting bytes are
> 28-31, resp. 0x0000001C -> 0x0000001F
> you'll find this:
> 40 0E AC 44
> change this to:
> 40 0F BB 80
two additions are needed:
- the posistion in the header is not fixed. bytes no. 28-31 is only
valid for files made with pd/[writesf~].
- 40 UV WX YZ seems to be kind of a floating point format, where UV is
the exponent part (where 0x0E means '*1', 0x0F means '*2', 0x0D means
'*0.5', etc.) and WX YZ the fraction part.
Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de
More information about the Pd-list