-
Notifications
You must be signed in to change notification settings - Fork 67
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
Implementing Custom Filters #145
Comments
You'll want this: http://pixijs.io/pixi-sound/docs/PIXI.sound.filters.Filter.html You pass in an AudioNode (or a source and destination if you have a bigger chain). That's it. There are examples in src/filters folder (e.g., MonoFilter) To get access to the WebAudio Context (in order to create AudioNodes), you'd get that from Hope that helps. If you come up with any cool filters, would gladly add them to the project. |
Thank you! Followup question,
I'm assuming this is because I've loaded the library incorrectly, or perhaps prepped it incorrectly after forking pixi-sound and adding my own Filter class definitions. Any advice on this? |
Please provide some more context about the issue you're having or make an example/repo that reproduces. I'm not sure what you're doing. Here's an simple example using Webpack: |
If your project is built so that |
thank you @andrewstart, that helps greatly. @bigtimebuddy , just realized you may have been suggestion creating a custom audio filter by creating it as a JS class or Object that can be implemented through the pixi-sound Filters interface. This would not require any extension of the pixi-sound library using TypeScript. Am I understanding correctly? Thank you both for your advice. |
Wondering if there are any hints or documentation about implementing additional filters?
Thanks,
The text was updated successfully, but these errors were encountered: