Open FunkMonkey opened 5 years ago
Thanks for the suggestion - I think it's a great idea.
To make this API proposal truly flexible and extensible I think it would be important to support custom transformations (i.e. not just the "built-in" ones), i.e. the user should be able to define a transformation subclass based on an expected API so they can implement a transformation of their choice (I think this is what you are proposing too, right?).
Beyond the actual implementation (tests and logic around timing information are going to be critical here), this probably merits some brainstorming to come up with a clean API design - currently the supported transformations are hard-coded, I think it would have to be replaced entirely with a template transformation class and a process/API for subclassing it. Open to suggestions!
p.s - I'm a little pushed for time right now so apologies if I'm slow to respond, should have more time in the near future.
It would be nice if Scaper could provide a way to add custom audio filters to the events and backgrounds. I imagine something like this:
Where
transformations
is a list of functions or objects that transform the audio signal in sequence.What do you think?