frequenzband-abhängiges mid/side-processing

jet2

jet2

Registriert
07.09.11
Beiträge
14.392
Reaktionen
9.718
Ort
Berlin
Punkte
48.834
hab grad auf die schnelle mal ein reaper-script umgebaut.

problem:
ich wollte gerne mal auf einem einfachen weg ein frequenzband-abhängiges mid/side-processing machen.
das war mir immer zu viel fummelei.

da hab ich vorhin den js-3 band splitter genommen und leicht umgebaut, sodass auf dem ersten stereokanal die mitten (anstelle der bässe) rauskommen.
dazu hab ich noch den 3-band-joiner angepasst.

somit kann ich zwischen die beiden plugins eine beliebige effektkette (in diesem fall mid/side-processing mit dem object-delay) einfach zwischenschieben.

meinen frequenzbereich stelle ich mir im selbstgebastelten splitter dazu ein.
upload_2021-3-7_19-22-0.png


hier noch der joiner:
upload_2021-3-7_19-47-8.png



das ganze sieht dann für ein side-processing so aus (mono-kanal1 für mid, mono-kanal2 für side):
upload_2021-3-7_19-19-23.png



Im folgenden der code für die beiden js-scripte.
einfach in eine textdatei kopieren und in den ordner reaper/effects und da vielleicht noch in einen unterordner legen.


hier der code für den 3-band splitter mid:
Code:
// (C) 2006, Michael Gruhn. //modified by jet2 (C) 2020

// NO WARRANTY IS GRANTED. THIS PLUG-IN IS PROVIDED ON AN "AS IS" BASIS, WITHOUT
// WARRANTY OF ANY KIND. NO LIABILITY IS GRANTED, INCLUDING, BUT NOT LIMITED TO,
// ANY DIRECT OR INDIRECT,  SPECIAL,  INCIDENTAL OR CONSEQUENTIAL DAMAGE ARISING
// OUT OF  THE  USE  OR INABILITY  TO  USE  THIS PLUG-IN,  COMPUTER FAILTURE  OF
// MALFUNCTION INCLUDED.  THE USE OF THE SOURCE CODE,  EITHER  PARTIALLY  OR  IN
// TOTAL, IS ONLY GRANTED,  IF USED IN THE SENSE OF THE AUTHOR'S INTENTION,  AND
// USED WITH ACKNOWLEDGEMENT OF THE AUTHOR. FURTHERMORE IS THIS PLUG-IN A  THIRD
// PARTY CONTRIBUTION,  EVEN IF INCLUDED IN REAPER(TM),  COCKOS INCORPORATED  OR
// ITS AFFILIATES HAVE NOTHING TO DO WITH IT.  LAST BUT NOT LEAST, BY USING THIS
// PLUG-IN YOU RELINQUISH YOUR CLAIM TO SUE IT'S AUTHOR, AS WELL AS THE CLAIM TO
// ENTRUST SOMEBODY ELSE WITH DOING SO.

desc:3-Band Splitter Mids first
desc:3-Band Splitter (Splits In Mid:1+2,Low:3+4,High:5+6) [jet2]
//tags: processing routing
//author: LOSER, jet2

slider1:120<0,22000,1>Crossover 1 (Hz)
slider2:6000<0,22000,1>Crossover 2 (Hz)

in_pin:left input
in_pin:right input
out_pin:low output left
out_pin:low output right
out_pin:mid output left
out_pin:mid output right
out_pin:high output left
out_pin:high output right

@init
cDenorm=10^-30;

@slider
freqHP = max(min(slider2,srate),slider4);
xHP = exp(-2.0*$pi*freqHP/srate);
a0HP = 1.0-xHP;
b1HP = -xHP;

freqLP = min(min(slider1,srate),slider2);
xLP = exp(-2.0*$pi*freqLP/srate);
a0LP = 1.0-xLP;
b1LP = -xLP;

@sample

s0 = spl0;
s1 = spl1;

t0 = (tmplLP = a0LP*s0 - b1LP*tmplLP + cDenorm);
t1 = (tmprLP = a0LP*s1 - b1LP*tmprLP + cDenorm);

t4 = s0 - (tmplHP = a0HP*s0 - b1HP*tmplHP + cDenorm);
t5 = s1 - (tmprHP = a0HP*s1 - b1HP*tmprHP + cDenorm);

t2 =  s0 - t0 - t4;
t3 =  s1 - t1 - t5;


spl0 = t2;
spl1 = t3;

spl2 = t0;
spl3 = t1;

spl4 = t4;
spl5 = t5;

der joiner:
Code:
// (C) 2006, Michael Gruhn. // modified by jet2 (C) 2020

// NO WARRANTY IS GRANTED. THIS PLUG-IN IS PROVIDED ON AN "AS IS" BASIS, WITHOUT
// WARRANTY OF ANY KIND. NO LIABILITY IS GRANTED, INCLUDING, BUT NOT LIMITED TO,
// ANY DIRECT OR INDIRECT,  SPECIAL,  INCIDENTAL OR CONSEQUENTIAL DAMAGE ARISING
// OUT OF  THE  USE  OR INABILITY  TO  USE  THIS PLUG-IN,  COMPUTER FAILTURE  OF
// MALFUNCTION INCLUDED.  THE USE OF THE SOURCE CODE,  EITHER  PARTIALLY  OR  IN
// TOTAL, IS ONLY GRANTED,  IF USED IN THE SENSE OF THE AUTHOR'S INTENTION,  AND
// USED WITH ACKNOWLEDGEMENT OF THE AUTHOR. FURTHERMORE IS THIS PLUG-IN A  THIRD
// PARTY CONTRIBUTION,  EVEN IF INCLUDED IN REAPER(TM),  COCKOS INCORPORATED  OR
// ITS AFFILIATES HAVE NOTHING TO DO WITH IT.  LAST BUT NOT LEAST, BY USING THIS
// PLUG-IN YOU RELINQUISH YOUR CLAIM TO SUE IT'S AUTHOR, AS WELL AS THE CLAIM TO
// ENTRUST SOMEBODY ELSE WITH DOING SO.

desc:3-Band Mid Joiner
desc:3-Band-Joiner (Combines Signal From 3-Band Mid Splitter) [jet2]
//tags: processing routing
//author: LOSER // jet2

slider1:0<-24,24,.1>Mid (dB)
slider2:0<-24,24,.1>Low (dB)
slider3:0<-24,24,.1>High (dB)

in_pin:low input left
in_pin:low input right
in_pin:mid input left
in_pin:mid input right
in_pin:high input left
in_pin:high input right
out_pin:left output
out_pin:right output

@init
c_ampdB = 8.65617025;

@slider
band1 = exp(slider1/c_ampdB);
band2 = exp(slider2/c_ampdB);
band3 = exp(slider3/c_ampdB);

@sample
spl0 = spl0 * band1 + spl2 * band2 + spl4 * band3;
spl1 = spl1 * band1 + spl3 * band2 + spl5 * band3;
 
Zuletzt bearbeitet:

Ähnliche Themen


Oft gelesene Themen

Zurück
Oben