Old 03-05-2021, 06:20 AM   #1
mschnell
Human being with feelings
 
mschnell's Avatar
 
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 14,688
Default EEL: Variable <-> File

I think that jsfx @serialize uses a propriety file format do read and write varabels / memory dumps in dedicated files (preset / Project file). I think it's binary Floating point base 64.

Are there API functions for ReaScript to read/write this format ?

Does it make sense to use this format with ReaScripts (e.g. to load and store variables in gmem to share with JSFXes) or should we better use something else ?

Could using pure binary format be an option ?

-Michael
mschnell is offline   Reply With Quote
Old 03-23-2021, 05:11 AM   #2
Hypex
Human being with feelings
 
Join Date: Mar 2015
Location: Australia
Posts: 451
Default

I wonder, could the SetExtState and GetExtState functions help? Or even SetProjExtState and GetProjExtState? Which allow persistent data across projects.


Otherwise, variables "are stored in a more compact 32 bit representation", according to this:
https://www.cockos.com/reaper/sdk/js/js.php


Maybe just write some data and check it in a text or hex viewer. You can't get more compact than binary. Unless it uses BCD for portability.
Hypex is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 09:37 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.