-
Notifications
You must be signed in to change notification settings - Fork 14
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
How to use existing processors with stereo or multichannel audio feeds? #417
Comments
Hey 👋 . These are indeed mono since you need to make a decision on how to handle multi-channel input. However you're right that looks a bit fishy 😅. You should use the |
Thanks for the reply! I went the route of allocating a processor per channel and then calling them in my own impl of Given that this whole project is a big experiment I'm certainly not expecting any major changes, but it might be worth considering splitting the single-sample vs multi-channel methods out into two separate traits. That might make it easier to ensure you don't accidentally call the default method impl from the Regardless, thanks again for your work on this library, it made implementing some audio reactivity in a lighting art project very straightforward. |
Thanks for your feedback! I'll try to incorporate that. I'm glad it was helpful in some way. |
I'm going to close this and use #440. Thanks for the suggestions and feedback! |
Hello, and thanks in advance for this whole vast library! Lots of useful things in here, and I'm having a lot of fun integrating a few of them into my project.
I'm a bit confused how to use tools like
EnvelopeFollowerProcessor
andFilterProcessor
with audio streams with more than one channel. Since both of them contain internal state, it seems like I need to instantiate one instance of each of them per-channel. I'm not sure how to elegantly wire this up, though. This is especially confusing due to this section of code in the implementation ofFilterProcessor
:augmented-audio/crates/augmented/dsp/dsp-filters/src/rbj/mod.rs
Lines 214 to 224 in c2328e0
It appears that for each frame, we only use the 0th channel as input, and then overwrite the result of the filter operation onto all other channels in the frame, essentially ignoring the other input channels and producing identical output on all channels. Am I missing something here?
The text was updated successfully, but these errors were encountered: