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

dynamic patching #99

Closed
Reinissance opened this issue Mar 10, 2018 · 5 comments
Closed

dynamic patching #99

Reinissance opened this issue Mar 10, 2018 · 5 comments
Projects

Comments

@Reinissance
Copy link

By now I can add and move GUIs around or change the size of the patch with messages to pd like "donecanvasdialog" etc., but the changes only take effect after closing and reopening the plugin (AU-effect on OSX High Sierra, testing with GarbageBand)
Would love to have the possibility to force redraw of the opened plugin...
Regards Reini

@pierreguillot
Copy link
Owner

I have to see how other applications (like PdParty and PdDroidParty) manage this. Perhaps a solution could be to send a message like [redraw( to the plugin via the object [send camomile] and it would redraw all the GUI?
Do you have a concret example to use this feature?
I'd like to know if you need to redraw frequently - in this case this approach would be too heavy - or just once from time to time - in this case I guess that redrawing everything wouldn't be a problem.

@Reinissance
Copy link
Author

As far as I made my experiments (about a year ago...) PdParty does not support it either. But I think as you proposed redrawing should be called from inside the patch, after a certain button is pushed for example, like in the example-patch attached.
dynPatch.zip

@pierreguillot
Copy link
Owner

Great! Thanks! I think it could be totally feasible using the redraw message.

There are only two things I need to warn you about (and that I need to write to remember):
1 - For the moment, the GOP abstraction are not supported so you'll have to use a slightly different approach for the bang (but using the send and receive message, it should not be too difficult). I guess we should wreate another issue/feature request for this.
2 - As far I remember, the resizing of the plugin interface is not well supported by all the DAW. I'll try to find a trick

@pierreguillot pierreguillot added this to To do in v1.0.4 via automation Mar 16, 2018
@pierreguillot
Copy link
Owner

See the issue. Does it seems good to you?

@Reinissance
Copy link
Author

This is perfect, thank You so much!

v1.0.4 automation moved this from To do to Done Mar 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
v1.0.4
  
Done
Development

No branches or pull requests

2 participants