Skip to content

Commit

Permalink
arch changes for 5>7 upmix v2
Browse files Browse the repository at this point in the history
  • Loading branch information
junh1024 committed May 25, 2021
1 parent 23f04ac commit e002221
Show file tree
Hide file tree
Showing 3 changed files with 96 additions and 18 deletions.
48 changes: 34 additions & 14 deletions Converters/5.1 to 7.1 Upmix V2 (M).txt
Original file line number Diff line number Diff line change
@@ -1,43 +1,63 @@
desc: upmix from 5.1 to 7.1 by duplicating rears for ITU/Circle 7.1

slider1:0<-100,100,1>Rear/Side Balance
slider2:0<0,1,0.01>Pan
slider3:1024<512,8192,512>Blocksize
slider4:0.1<0.05,1,0.05>Responsiveness
slider1:1<0,1,1{Square (disabled),Circle (ITU),Circle + (disabled)}>Mode
slider2:100<0,200,1>Amount (%)
slider3:0<0,1,0.01>FL
slider4:0<0,1,0.01>Pan
slider5:0.2<0.05,1,0.05>Responsiveness
slider6:1024<512,8192,512>Blocksize

// slider1:0<-100,100,1>Rear/Side Balance
// slider2:0<0,1,0.01>Pan
// slider3:1024<512,8192,512>Blocksize
// slider4:0.1<0.05,1,0.05>Responsiveness

import surroundlib2.txt


@init


@slider
// gain = 2^(slider1/6); // convert from dB to a multiplier

//parameter migration from old version

slider3>300?
(
slider6=slider3 ;
slider5=slider4 ;
slider4=slider2 ;
slider2=slider1+100;
);

@block
count+=samplesblock;

(count>blocksize)?
(
slider2=MidSide_stats_analyze(slider2,response);
slider4=MidSide_stats_analyze(slider4,response);
count=0;
);

//convert pan to slider
// slider1=(slider2-0.5)*200;
// depth_temp=( ( ( slider1/2 )+ 50 ) *$pi)/200; //map -100 to 100 to 0>half pi

depth_temp=(slider2/2*$pi); //map -100 to 100 to 0>half pi
depth_temp+=( ( ( slider1/2 ) ) *$pi)/200; //map -100 to 100 to 0>half pi
depth_temp=(slider4/2*$pi); //map -100 to 100 to 0>half pi

slider2<100?depth_temp*=slider2/100:depth_temp+=((slider2-100)/100)*($pi/2);

// depth_temp=max(min(depth_temp,$pi/2),($pi/-2));
// depth_temp+=( ( ( slider2-100 ) ) *$pi)/200; //map -100 to 100 to 0>half pi

side_coeff=cos( depth_temp - ($pi/2) );
depth_temp=min(depth_temp,$pi/2);

side_coeff=sin( depth_temp );
back_coeff=cos( depth_temp );

blocksize=slider3;
response=slider4;
blocksize=slider6;
response=slider5;


@slider
// gain = 2^(slider1/6); // convert from dB to a multiplier



Expand Down
44 changes: 40 additions & 4 deletions Converters/Multi Mix Convert (L).txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ desc:Multi-format surround converter in ALPHA. Pan law -3dB.
// s10 upmix


slider1:15<0,23,1{x,2.0 Stereo,5.1/3.0 (Film),4.0 Quad,5.1 (SMPTE),5.1.2 (SMPTE),7.1 (SMPTE-Dolby),7.1 (SMPTE-MS),5.1.4/5.1.6 Auro-3D (SMPTE),7.1.2/7.1 Atmos Base (SMPTE-Dolby),7.1.4 DTS-X (SMPTE-Dolby),7.1.4 MPEG-H (SMPTE-MS),13,14,9.1.6 Atmos CBA (SMPTE-Dolby),15.1 junh1024 (SMPTE-MS),17,18,19,20,21,22,23,22.2 NHK}>Input layout
slider2:14<0,23,1{x,2.0 Stereo,x,4,5.1 (SMPTE),5.1.2 (SMPTE),7.1 (SMPTE-Dolby),7.1 (SMPTE-MS),5.1.4/5.1.6 Auro-3D (SMPTE),7.1.2/7.1 Atmos Base (SMPTE-Dolby),7.1.4 DTS-X (SMPTE-Dolby),7.1.4 MPEG-H (SMPTE-MS),13,14,9.1.6 Atmos CBA (SMPTE-Dolby),15.1 junh1024 (SMPTE-MS),17 Reserved,18 Reserved,19,20,21 Reserved,22 Reserved,23 Reserved,22.2 NHK}>Output layout
slider1:15<0,23,1{x,2.0 Stereo,5.1/3.0 (FILM),4.0 Quad,5.1 (SMPTE),5.1.2 (SMPTE),7.1 (SMPTE-Dolby),7.1 (SMPTE-MS),5.1.4/5.1.6 Auro-3D (SMPTE),7.1.2/7.1 Atmos Base (SMPTE-Dolby),7.1.4 DTS-X (SMPTE-Dolby),7.1.4 MPEG-H (SMPTE-MS),13,14,9.1.6 Atmos CBA (SMPTE-Dolby),15.1 junh1024 (SMPTE-MS),17,18,19,20,21,22,23,22.2 NHK}>Input layout
slider2:14<0,23,1{x,2.0 Stereo,5.1 (FILM),4,5.1 (SMPTE),5.1.2 (SMPTE),7.1 (SMPTE-Dolby),7.1 (SMPTE-MS),5.1.4/5.1.6 Auro-3D (SMPTE),7.1.2/7.1 Atmos Base (SMPTE-Dolby),7.1.4 DTS-X (SMPTE-Dolby),7.1.4 MPEG-H (SMPTE-MS),13,14,9.1.6 Atmos CBA (SMPTE-Dolby),15.1 junh1024 (SMPTE-MS),17 Reserved,18 Reserved,19,20,21 Reserved,22 Reserved,23 Reserved,22.2 NHK}>Output layout
slider3:75<0,100 ,1>Height height
slider4:0<0,100 ,1>ELL height
slider5:0<-100,100,1>Top Side Depth (+ve is front)
Expand Down Expand Up @@ -345,14 +345,34 @@ rear_width(R_width_coeff);
Top_Side_Depth_71_to_51( (slider5 +100)/ 200 );
);


//51 film


//51b
mode_out==5?
(mode_out==3||mode_out==5)?
(
downmix_151_71_v1();
silence_top_layer_151();
spl6=0;
spl7=0;

mode_out==3?
(
in1 = spl1 ;
in2 = spl2 ;
in3 = spl3 ;
in4 = spl4 ;
in5 = spl5 ;

spl2=in1 ;
spl1=in2 ;
spl5=in3 ;
spl3=in4 ;
spl4=in5 ;
);


);

//512sh
Expand Down Expand Up @@ -398,14 +418,30 @@ mode_out==9?


//712sh
mode_out==10?
(mode_out==10||mode_out==20)?
(

Height_height_adj_v1(Height_height);
silence_top_layer_151() ;
spl8=heightsL;
spl9=heightsR;
swap_Side_Back_ELL();

//712 film
(mode_out==20)?
(

temp_C=spl2;
spl2=spl1;
spl1=temp_C;
temp_LFE=spl3;
spl3=spl4;
spl4=spl5;
spl5=spl6;
spl6=spl7;
spl7=temp_LFE;
);

);

//714h
Expand Down
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,28 @@ To install Python for Windows, go to https://www.python.org/downloads/windows/
Then you're ready to go. Run a Reascript by going Actions > Show > Load, Run.


## VST Compatibility
VST Compatibility for windows is achieved through ReaJS. You can then run some FX in your favorite DAW (surround FX may not work in some hosts) or even live in APO Equalizer.

1. Install Reaplugs 64bit https://www.reaper.fm/reaplugs/ into "C:\Program Files\VSTPlugIns"
2. Navigate into that directory , and search for "reajs.ini"
3. Open "reajs.ini" and change the file to these if using surround. Use 8 for 7.1.
```
inputs=6 ; number of audio inputs (0-64)
outputs=6 ; number of audio outputs (0-64)
```
4. Extract [this zip](https://github.com/junh1024/Reaper-Surround/archive/master.zip) into "JS\Effects\"
5. Load ReaJS into your host and select your FX

### AAX Compatibility
AAX Compatibility for Pro Tools windows is limited due to the FILM order for channels and limited options for channel count. I haven't tested this.

6. Follow steps 1-4 as above
7. Insert ReaJS in a VST to AAX loader like DDMF metaplugin
8. Insert the loader into a 2 or 6ch track
9. Load ReaJS into your loader and select your FX
10. If a 5.1 surround FX was selected previously, load another ReaJS, select "Multi Mix Convert (L).txt", and select 5.1 SMPTE input, 5.1 FILM output.

### Note 1
**Block-based effects**

Expand Down

0 comments on commit e002221

Please sign in to comment.