dasp icon indicating copy to clipboard operation
dasp copied to clipboard

[Question] Is there a way to dynamically add a signal to mix?

Open TonalidadeHidrica opened this issue 3 years ago • 1 comments

I want to play a music and some sound effects. Can I dynamically add another Signal to mix while playing? As I see the Signal API, it seems to be designed for static mixing.

TonalidadeHidrica avatar Mar 25 '21 14:03 TonalidadeHidrica

@TonalidadeHidrica that's right, using the Signal API it might be easier to reconstruct the full signal when you want to add or remove Signals dynamically. Alternatively, you could implement Signal for your own "signal collection" type that allows for adding/removing signals.

For dynamic composition of audio graphs, you might want to consider the dasp_graph crate - you can find a section in the docs discussing the difference to the dasp Signal API here.

mitchmindtree avatar Aug 04 '21 17:08 mitchmindtree