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

Ways of accessing members of "control side" struct in SignalProcessor's process/vice versa? #6

Open
derekxkwan opened this issue May 16, 2021 · 0 comments

Comments

@derekxkwan
Copy link

I'm a bit of a noob to Rust so apologies in advance...

I can't seem to find a way to access things in the struct declared in external!{} (such as pub struct XFade {} in the xfade example as the self passed into processed seems to be of type&mut SignalProcessor) from process. The reason I'd want to do this is to change some parameters on the control-rate side of the things with various methods (something like a float method or a list method) and have them effect what is going on the signal processing side of things. I've been digging through the rest of the code and still am not sure how to approach this. Is there a way to do this? Thanks!

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

1 participant