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

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
[email protected] mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list

Reply via email to