Комментарии:
hi! 😜
ОтветитьMy ears are ringing now 😅
ОтветитьJust two sines right?
ОтветитьThe code for this is as follows:
desc:2-Signal Harmonic Mean
in_pin:left carrier input
in_pin:right carrier input
in_pin:left modulator input
in_pin:right modulator input
out_pin:left output
out_pin:right output
@sample
(spl0 == 0 || spl2 == 0) ? (
spl0 = 0;
) : (
((spl0 + spl2) == 0) ? (
spl0 = 0;
) : (
rspl0 = 1/spl0;
rspl2 = 1/spl2;
tspl0 = 2/(rspl0 + rspl2);
(tspl0 > 1 || tspl0 < -1) ? (
spl0 = 1/tspl0;
) : (
spl0 = tspl0;
)
)
);
(spl1 == 0 || spl3 == 0) ? (
spl1 = 0;
) : (
((spl1 + spl3) == 0) ? (
spl1 = 0;
) : (
rspl1 = 1/spl1;
rspl3 = 1/spl3;
tspl1 = 2/(rspl1 + rspl3);
(tspl1 > 1 || tspl1 < -1) ? (
spl1 = 1/tspl1;
) : (
spl1 = tspl1;
)
)
)
As I said in the description, I HIGHLY recommend oversampling this unless you want extreme aliasing.