INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: how to make a config file for DSP convolution  (Read 534 times)

boot77

  • Junior Woodchuck
  • **
  • Posts: 60
how to make a config file for DSP convolution
« on: August 30, 2023, 07:06:06 am »

Dear all,

I am a newbie when it comes to REW and convolution. I did my first REW measurements and created EQ wav files to use in JRiver.
As I understand I need to create a config file because I have multiple filters (WAV files) I want to use.

I have created seperate filters for the main channels L + R and the sub. I have the AVR set to out put 5.1 (windows sound setting) but I will be listing to stereo music. I think I will need to have JRSS mixing enable for stereo to mix to 2.1. If not there will be no sub channel to be process for the convolution filter, right?

How do I know which channel number are which? How do I setup to config file properly? I will be adding the surrounds later.


​19200 3 3 0​
0 0 0​
0 0​ 0
C:\path\convolution_wav\filter-192k_L.wav​
0​
0.0​
0.0​
C:\path\convolution_wav\filter-192k_R.wav​
1​
1.0​
1.0​
C:\path\convolution_wav\filter-192k_SUB.wav​
2
2.0​
2.0​

or should it look like this  ?

19200 6 6 0​
0 0 0​ 0 0 0
0 0​ 0 0 0 0
C:\path\convolution_wav\filter-192k_L.wav​
0​
0.0​
0.0​
C:\path\convolution_wav\filter-192k_R.wav​
1​
1.0​
1.0​
C:\path\convolution_wav\filter-192k_SUB.wav
2
2.0​
2.0​

I am a bit lost, so help is much appreciated
Logged

mattkhan

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3971
Re: how to make a config file for DSP convolution
« Reply #1 on: August 31, 2023, 03:47:23 am »

as far as I recall 2.1 really means 6 channel output with silence in channels 3/5/6 which means it follows multichannel channel mappings, i.e. 1 = L, 2 = R, 4 = SW hence the cfg file is more like the 2nd option

Code: [Select]
19200 6 6 0​
0 0 0​ 0 0 0
0 0​ 0 0 0 0
C:\path\convolution_wav\filter-192k_L.wav​
0​
0.0​
0.0​
C:\path\convolution_wav\filter-192k_R.wav​
0
1.0​
1.0​
C:\path\convolution_wav\filter-192k_SUB.wav
0
3.0​
3.0​

note that the 1st digit after each wav is 0 in each case as this refers to the channel number in the wav file

in your case I think you can also make an appropriately sized (6 channel) multichannel wav and just use that if it's easier
Logged

boot77

  • Junior Woodchuck
  • **
  • Posts: 60
Re: how to make a config file for DSP convolution
« Reply #2 on: August 31, 2023, 04:01:13 am »

tnx for you input. I will look into how to create a 6 channel wav in REW. Did not know that was even possible.

In the future I would like to add the additional channels. Just to be sure I get the mappings right, I guess

3= center
5 = L sur
6 = R sur

In the multi channel  the count does not start with a input/channel "0"?
Logged

mattkhan

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3971
Re: how to make a config file for DSP convolution
« Reply #3 on: August 31, 2023, 08:04:04 am »

I don't think REW can do it, you can easily do it in audacity or similar though

cfg file channel references are always 0 indexed
Logged

boot77

  • Junior Woodchuck
  • **
  • Posts: 60
Re: how to make a config file for DSP convolution
« Reply #4 on: September 04, 2023, 06:16:19 am »

After some more googling I found the attached images with the channel numbers and to what channels they map.
In this example there was an additional sub added.

But still got a question. I will maken filters for the mains (L+R) and the LFE

I think I will need to have JRSS mixing enable for stereo to mix to 2.1. If not there will be no sub channel to be process for the convolution filter, right?

Otherwise I would need to route the L+R to the LFE as well. I thought JRSS mixing would do the same (and handel the crossovers as well)....
Logged

mattkhan

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3971
Re: how to make a config file for DSP convolution
« Reply #5 on: September 04, 2023, 06:25:15 am »

Diagram looks confusing, not sure how that relates

It's entirely up to you how to create a sw output and what goes into it however thread so far implied a stereo source but you are talking about LFE so is it really a multi channel mixdown?
Logged

boot77

  • Junior Woodchuck
  • **
  • Posts: 60
Re: how to make a config file for DSP convolution
« Reply #6 on: September 04, 2023, 07:51:42 am »

I added the diagram just for the channel numbers.

0= Left
1= Right
2= Center
3= Sub (LFE)
4= Left surround
5= Right surround

I might be confusing indeed.
You are correct, the input (music) is stereo. But would like a (processed) 2.1 output to the AVR (or 5.1 with no sound and filters on the center and surrounds).

On the forum or wiki I read there is a top down processing order for the JRiver DSP.

So when the source is 2.0 I would like to use JRSS to upmix it to a 2.1. This new 2.1 remixed source is the input for the convolution filter (assumption).

S0 I would end up with something like this:

19200 3 6 0​
0 0 0​
0 0​ 0 0 0 0
C:\path\convolution_wav\filter-192k_L.wav​
0​
0.0​
0.0​
C:\path\convolution_wav\filter-192k_R.wav​
0
1.0​
1.0​
C:\path\convolution_wav\filter-192k_SUB.wav
0
2.0​
3.0​

the other option (not using JRSS mix)

19200 2 6 0​
0 0 
0 0​ 0 0 0 0
C:\path\convolution_wav\filter-192k_L.wav​
0​
0.0​
0.0​
C:\path\convolution_wav\filter-192k_R.wav​
0
1.0​
1.0​
C:\path\convolution_wav\filter-192k_SUB.wav
0
0.0​
3.0​
C:\path\convolution_wav\filter-192k_SUB.wav
0
1.0​
3.0​

Don't know if this make thinks clearer or just more confusing



Logged

mattkhan

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3971
Re: how to make a config file for DSP convolution
« Reply #7 on: September 04, 2023, 09:41:05 am »

I wouldn't call it upmix, it's bass management

If jrss does what you need then something like option 1 will work (albeit it's using channel 3 as the input not 2), if it doesn't then your crossover needs to be baked into the filters (as per option 2)
Logged
Pages: [1]   Go Up