[PD] saving parameters in "audio" file

IOhannes m zmölnig zmoelnig at iem.at
Sun Oct 1 21:16:51 CEST 2017


On 10/01/2017 08:25 PM, richard millig @ selma wrote:
> dear list,
> 
> i'm saving different parameters in an array to load them later again.
> when i close the patch and open it again later sometimes the values stay
> in the array, sometimes not. so i did try to save the array in an
> "audio" file with [soundfiler], but this will "normalize" my values.

that's because you are using a soundfile format that uses fixed-point
values (e.g. 16bit WAV or AIFF), and cannot hold values with a magnitude >1.
so either store your values in a "normalized" fashion (so they don't
exceed -1..+1) and rescale them to their actual values on use; or use
floating-point for storing the values ("-bytes 4")

gfmasdr
IOhannes

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20171001/17080fd2/attachment.sig>


More information about the Pd-list mailing list