Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Saving state, stage 2 #786

Open
5 tasks
p0nce opened this issue Aug 17, 2023 · 0 comments
Open
5 tasks

Saving state, stage 2 #786

p0nce opened this issue Aug 17, 2023 · 0 comments
Labels
Enhancement This issue is about a new feature rather than a bug.

Comments

@p0nce
Copy link
Collaborator

p0nce commented Aug 17, 2023

Follow-up from #352

The goal is to save/restore any extra state that allows to render audio, not necessarily global UI settings (somehow best handled with a VFS abstraction and config files I think).

  • Find a binary-serializable, nestable, thread-safe, with key-values, suitable for large blocks of data.
    • Probably take an existing data format like CBOR, BJSON, etc. Something with 1:1 human readable version would help. Not Turtle lol. A DOM but for data.
    • A big point is to handle the bidirectional communcation for UI and DSP. Same problems as Parameter, who lacked two interfaces for each view. Probably we need an algorithm of tree merging?
    • Typical Java UI library have listener that listens to generic Event. This is useful when we don't know yet that there will be a button widget with an onButtonClick event. See also Javascript solutions. If we do State V2, ideally it should be able to replace any such listener. Mouse, keyboard, and params would be branches of the tree.
  • Make such variant values have Listener of their own, callback on add/remove, things like that
@p0nce p0nce added the Enhancement This issue is about a new feature rather than a bug. label Aug 17, 2023
@p0nce p0nce added the Blocked Resolution depends on another issue. label Aug 26, 2023
@p0nce p0nce removed the Blocked Resolution depends on another issue. label Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement This issue is about a new feature rather than a bug.
Projects
None yet
Development

No branches or pull requests

1 participant