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

RJ_SCENE_SAVE prepare message #22

Open
danomatika opened this issue Nov 16, 2016 · 3 comments
Open

RJ_SCENE_SAVE prepare message #22

danomatika opened this issue Nov 16, 2016 · 3 comments

Comments

@danomatika
Copy link
Contributor

danomatika commented Nov 16, 2016

I have an abstraction that uses a table to store sequences that I'm saving and loading via [u_dispatch] objects. I ran into an issue where I need to know when the state is being saved but before the actual "save" message is sent out in order to dump the contents of the table into [u_dispatch]. Otherwise, it's too late to dump the table by the time the "save" message is received.

I'd like to propose adding a "prepare" message to RJ_SCENE_SAVE and sending out just before sending the "save" message. I'm doing the following and the is working well:

[ prepare, save <
|
[ s RJ_SCENE_SAVE ]
@footils
Copy link
Contributor

footils commented Nov 16, 2016

Hi,

hm, I'm not (yet) convinced that it would be necessary to do any
changes to u_dispatch/u_loader/u_sssad. Maybe it's indeed better solved
outside as you seem to have done?

You already can send "prepare" to RJ_SCENE_SAVE if you like. Just listen
on RJ_SCENE_SAVE, route out "prepare" to do any preparations like
dumping the table. Then send "save" after "prepare".

Or maybe I don't understand how you propose to add the "prepare" message ...

All the best

Frank

On Tue, Nov 15, 2016 at 07:28:34PM -0800, Dan Wilcox wrote:

I have an abstraction that uses a table to store sequences that I'm
saving and loading via [u_dispatch] objects. I ran into an issue where
I need to know when the state is being saved but before the actual
"save" message is sent out in order to dump the contents of the table
into [u_dispatch]. Otherwise, it's too late to dump the table by the
time the "save" message is received.

I'd like to propose adding a "prepare" message to RJ_SCENE_SAVE and
sending out just before sending the "save" message. I'm doing the
following and the is working well: [prepare, save<.

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
#22

Frank Barknecht _ ____footils.org

@danomatika
Copy link
Contributor Author

Right. No changes are directly necessary. I'm proposing that a "prepare" message be added to the documentation as this is a general problem that is applicable beyond my set of rjlib compatible abstractions.

@footils
Copy link
Contributor

footils commented Nov 16, 2016

Hi,

I see. That's a good idea. I'll write something up to add to
u_loader-help.pd - or do you already have something?

Ciao

Frank

On Wed, Nov 16, 2016 at 03:33:12AM -0800, Dan Wilcox wrote:

Right. No changes are directly necessary. I'm proposing that a "prepare" message be added to the documentation as this is a general problem that is applicable beyond my set of rjlib compatible abstractions.

You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
#22 (comment)

Frank Barknecht _ ____footils.org

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants