Need Convolver.sf.net DSP basic help |
![]() ![]() |
Need Convolver.sf.net DSP basic help |
Feb 28 2006, 14:31
Post
#1
|
|
|
Group: Members Posts: 27 Joined: 15-October 05 Member No.: 25136 |
Hello,
I tried setting up a basic stereo channel swapper using Convolver, but I encountered the following problems: (XP SP2 / French with Japanese system locale, if that matters) 1. I'm not too sure if I wrote the filter correctly CODE 44100 2 2 3 where the IR file is PCM 44100 Hz 16 bits monaural WAV file made of 5 seconds of silence. (Having it empty threw a div by zero exception, huh)0 0 0 0 C:\_\MonoIR.wav 0 0.0 1.0 C:\_\MonoIR.wav 0 1.0 0.0 <empty line> 0.0 1.0 and 1.0 0.0 is what I imagined would swap the channels, but the resulting file (using convolverCMD) is simply silence >_< Did I get something wrong? What is the IR waveform supposed to contain, then? 2. How are the filters supposed to connect? I tried inserting ConvolverWrapper using graphedit, but it doesn't fit anywhere 3. There's a broken link on the main page. It should point to http://convolver.sourceforge.net/zoom.html 4. I do not have ZP Pro, is it possible to manually set the filter's merit so that it is automatically loaded? Actually, I own a faulty motherboard that inverts stereo (observed in both Windows & Linux), so I've been looking for a channel swapper. A convolver is probably overkill |
|
|
|
Feb 28 2006, 15:13
Post
#2
|
|
|
Group: Members Posts: 92 Joined: 29-October 03 Member No.: 9536 |
Rasqaul, Thanks for your feedback.
1. What you need is a Dirac Delta Function filter (ie, a 1 followed by one or more 0s), not just all zeros, which will produce silence, as you have observed. Think of convolution as a form of multiplication. The makeIR utility that comes with Convolver should help you. Are you saying that you get a div-by-zero exception if the filter file is completely empty, or something else? If something else, please send me the filter + config files (jrp <at< dial dot pipex dot com). The config file looks ok to me. 2. You should be able to insert convolverFilter or Wrapper between the something that produces PCM and something that requires it. So try File|rendering a sound file, break the final link before your output device, and insert C'Filter or C'Wrapper. 3. I'll fix the link. Thanks. 4. You should be able to play with the ZP Pro trial for 30 days. Let me know how you get on. This post has been edited by jrp: Feb 28 2006, 15:55 |
|
|
|
Feb 28 2006, 20:14
Post
#3
|
|
|
Group: Members Posts: 27 Joined: 15-October 05 Member No.: 25136 |
QUOTE (jrp @ Feb 28 2006, 03:13 PM) Rasqaul, Thanks for your feedback. Thanks for your assistance and quick reply. QUOTE (jrp @ Feb 28 2006, 03:13 PM) 1. What you need is a Dirac Delta Function filter (ie, a 1 followed by one or more 0s), not just all zeros, which will produce silence, as you have observed. Think of convolution as a form of multiplication. The makeIR utility that comes with Convolver should help you. Thanks. I had trouble figuring out the format for makeIR to produce the Dirac but now it's fine. For the record, here's my input.txt:CODE PCM 32 1 44100 1 0 undocumented generate_dirac_delta.exe was also helpful to generate this before I groked the makeIR man. QUOTE (jrp @ Feb 28 2006, 03:13 PM) Are you saying that you get a div-by-zero exception if the filter file is completely empty, or something else? Actually I got a generic wrapped exception with a diagnosis message of unknown error (or something similar) in a catch(...) block of channelpaths.cpp. To answer your question, it happens when the wav file has 0 sample. My point is, the debug message is kinda lacking, maybe handling the empty case and bailing out would have been better (and fool-proof).QUOTE (jrp @ Feb 28 2006, 03:13 PM) 2. You should be able to insert convolverFilter or Wrapper between the something that produces PCM and something that requires it. So try File|rendering a sound file, break the final link before your output device, and insert C'Filter or C'Wrapper. Providing a correct IR file fixed this.QUOTE (jrp @ Feb 28 2006, 03:13 PM) 4. You should be able to play with the ZP Pro trial for 30 days. Actually, ZP Standard is sufficient.In Options>Filter Control>Management, specify 'Using Filter File' and close the player. Then, edit "zplayer.filters" is ZP's install dir and append the following directive: CODE LoadFilter({6105E395-1C5A-4b3e-9701-FB71C2523AB6},Convolver Wrapper) However, if the IR file is not specified in the property page, I'm not sure the filter would connect to the graph. Maybe one has to use GraphEdit first. I suggest a "do-nothing" setup be provided when installing. In any case, setting (with hex-edition) the wrapper's merit to 00800000 (MERIT_PREFERRED) and performing registration again did not help in auto--inserting the filter in other directshow apps. |
|
|
|
Feb 28 2006, 21:56
Post
#4
|
|
|
Group: Members Posts: 92 Joined: 29-October 03 Member No.: 9536 |
QUOTE (Rasqual @ Feb 28 2006, 11:14 AM) Actually, ZP Standard is sufficient. In Options>Filter Control>Management, specify 'Using Filter File' and close the player. Then, edit "zplayer.filters" is ZP's install dir and append the following directive: CODE LoadFilter({6105E395-1C5A-4b3e-9701-FB71C2523AB6},Convolver Wrapper) However, if the IR file is not specified in the property page, I'm not sure the filter would connect to the graph. Maybe one has to use GraphEdit first. I suggest a "do-nothing" setup be provided when installing. In any case, setting (with hex-edition) the wrapper's merit to 00800000 (MERIT_PREFERRED) and performing registration again did not help in auto--inserting the filter in other directshow apps. There is a bug (that I thought that I had fixed, but which will be fixed in the next release) where is a filter has not been set (through ConvolverWMP) then ConvolverFilter/Wrapper will not start. I am keen to get the merit right. It is set at the moment to MERITDONOTUSE+1 for compatibilty with TheaterTek. This post has been edited by jrp: Feb 28 2006, 21:57 |
|
|
|
Mar 2 2006, 00:42
Post
#5
|
|
|
Group: Members Posts: 92 Joined: 29-October 03 Member No.: 9536 |
Added dithering and noise shaping capability (more types of noise shaping to come)
Convolver 3.2 released Fixed initialization when no filter set More optimization See http://convolver.sf.net and https://sourceforge.net/project/showfiles.p...lease_id=397861 |
|
|
|
Mar 2 2006, 02:16
Post
#6
|
|
|
Group: Members Posts: 27 Joined: 15-October 05 Member No.: 25136 |
Would it be possible for Convolver not to leave wisdom.fftw files everywhere? (Naughty boy)
|
|
|
|
Mar 2 2006, 18:53
Post
#7
|
|
|
Group: Members Posts: 92 Joined: 29-October 03 Member No.: 9536 |
|
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 26th May 2013 - 04:31 |