In Plug'n Script, how do I duplicate the input and sum the duplicates for the output?

Official support for: bluecataudio.com
Post Reply New Topic
RELATED
PRODUCTS

Post

Hi, brand new to coding, and I got a simple distortion effect working with Plug'n Script.

I'd like to split the input signal to 3 parallel paths: one dry, one with distortion A, and one with distortion B, then sum them together for the output.

I've read through the manual and I'm sure the answer is obvious, but I have no background in coding so I'd be grateful if someone spelled it out for me.

Thanks!

Post

Hi,

If you are using the per-sample processing function (ProcessSample), you can simply (for eac channel):
- store the input sample in a temp double variable "input"
- process it with your distA and store it into a double variable "distA"
- process it with your distB and store it into a double variable "distB"
- store the sum into the output sample sample[ch]=input+distA+distB.

I hope this helps.

Post Reply

Return to “Blue Cat Audio”