Go Back   Cockos Incorporated Forums > REAPER Forums > Recording Technologies and Techniques

Reply
 
Thread Tools Display Modes
Old 06-28-2019, 01:16 AM   #1
pipelineaudio
Mortal
 
pipelineaudio's Avatar
 
Join Date: Jan 2006
Location: Wickenburg, Arizona
Posts: 14,051
Default How to invert the frequency response of an IR file?

I want to make a corrective sweep so that when I send thru a signal path it returns as totally flat, so that I can really do an apples to apples comparison of things.

Any good ideas on how to do that?
pipelineaudio is offline   Reply With Quote
Old 06-29-2019, 07:16 AM   #2
brainwreck
Human being with feelings
 
Join Date: Jul 2006
Posts: 20,859
Default

Maybe explain more about what you are doing?

Unless I'm missing some info, it seems that what you want to do is remove the frequency response of a system. But I'm failing to see how that would be useful for doing any type of comparison.
__________________
It's time to take a stand against the synthesizer.
brainwreck is offline   Reply With Quote
Old 06-29-2019, 07:48 AM   #3
karbomusic
Human being with feelings
 
karbomusic's Avatar
 
Join Date: May 2009
Posts: 29,269
Default

Use the sound card calibration in REW if possible, that's what it's for - to help take everything but the device under test out of the equation.
karbomusic is offline   Reply With Quote
Old 06-29-2019, 07:52 AM   #4
ashcat_lt
Human being with feelings
 
Join Date: Dec 2012
Posts: 7,293
Default

How bout we try to answer the question before we get all philosophical.

If you’re doing a test sweep (not a step function impulse), then you must be using some process to deconvolve the sweep from the recording. Most of the time you tell the deconvolver where to look for the sweep file. If you point it at a file that includes the frequency response you want to remove, It should theoretically do what you’re asking. How well it actually works in practice I can’t say.
ashcat_lt is online now   Reply With Quote
Old 06-29-2019, 07:59 AM   #5
karbomusic
Human being with feelings
 
karbomusic's Avatar
 
Join Date: May 2009
Posts: 29,269
Default

You can put anything you want calibrated out of the equation in the signal path, and it uses a sweep - Save that calibration file for later use - I'm not seeing a reason to reinvent the wheel here unless there is some reason you simply can't do it this way.


karbomusic is offline   Reply With Quote
Old 06-29-2019, 08:03 AM   #6
Lokasenna
Human being with feelings
 
Lokasenna's Avatar
 
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
Default

Quote:
Originally Posted by pipelineaudio View Post
I want to make a corrective sweep so that when I send thru a signal path it returns as totally flat, so that I can really do an apples to apples comparison of things.

Any good ideas on how to do that?
Why not split the signal path prior to the chain you're testing so you have a dry copy, invert it, and then recombine them afterward?

Or you could keep them as separate channels and use SPAN's Difference mode.
__________________
I'm no longer using Reaper or working on scripts for it. Sorry. :(
Default 5.0 Nitpicky Edition / GUI library for Lua scripts / Theory Helper / Radial Menu / Donate
Lokasenna is offline   Reply With Quote
Old 06-29-2019, 08:16 AM   #7
brainwreck
Human being with feelings
 
Join Date: Jul 2006
Posts: 20,859
Default

Is the point here to separate the system from the signal for comparing the effects of systems? If so, yea, what Lokasenna said. Just flip the phase of the signal that hasn't passed through the system and sum, making sure that the two files are time aligned and level adjusted for the most cancellation. You could do that without physically splitting the signal.

I was just reading a bit about this last night over at beatdruid.com (Airwindows wiki). The idea being talked about was to separate what a processor is doing from the signal, for further processing the isolated effects of a process of interest to taste (not processing the output of a process working on a signal...serial), before putting them back together. It's an interesting idea, I thought.

I think this is the same thing that Pipelineaudio is getting at; isolating what some process is adding from the input.
__________________
It's time to take a stand against the synthesizer.

Last edited by brainwreck; 06-29-2019 at 08:35 AM.
brainwreck is offline   Reply With Quote
Old 06-29-2019, 08:38 AM   #8
karbomusic
Human being with feelings
 
karbomusic's Avatar
 
Join Date: May 2009
Posts: 29,269
Default

I'm assuming pipe's trying to get his preamp myth testing done with charts and graphs so to speak based on his other thread. If so, it's really better to just use a test tool that takes non-DUT items out of the picture, especially if he is going to be generating response graphs etc. Maybe he's doing something else.
karbomusic is offline   Reply With Quote
Old 06-29-2019, 10:13 AM   #9
brainwreck
Human being with feelings
 
Join Date: Jul 2006
Posts: 20,859
Default

Quote:
Originally Posted by karbomusic View Post
I'm assuming pipe's trying to get his preamp myth testing done with charts and graphs so to speak based on his other thread. If so, it's really better to just use a test tool that takes non-DUT items out of the picture, especially if he is going to be generating response graphs etc. Maybe he's doing something else.
Yea, if it's only external hardware devices that will be tested, something like REW would probably be easiest to deal with. If it is internal dsp stuff, I don't know if a tool exists for that. I would love to have a jsfx tool for that.
__________________
It's time to take a stand against the synthesizer.
brainwreck is offline   Reply With Quote
Old 06-29-2019, 12:04 PM   #10
pipelineaudio
Mortal
 
pipelineaudio's Avatar
 
Join Date: Jan 2006
Location: Wickenburg, Arizona
Posts: 14,051
Default

Quote:
Originally Posted by Lokasenna View Post
Why not split the signal path prior to the chain you're testing so you have a dry copy, invert it, and then recombine them afterward?

Or you could keep them as separate channels and use SPAN's Difference mode.
How would I invert it? I think thats where I'm stuck
pipelineaudio is offline   Reply With Quote
Old 06-29-2019, 12:15 PM   #11
pipelineaudio
Mortal
 
pipelineaudio's Avatar
 
Join Date: Jan 2006
Location: Wickenburg, Arizona
Posts: 14,051
Default

Hey thanks everyone! I have been sent a ton of hardware for these tests already and thank you to everyone who did that! I will be sending it all back ASAP

So thanks Karbo for pointing at REW. I did end up buying rightmark pro, but I am happy to use REW, I just couldn't get it to do what I wanted it to

I'll try to explain what I'm trying to do and maybe you guys have ideas:

The purpose, is to have something like my round trip latency chart, where there are actual, quantifiable numbers to at least show the measurable parameters

No more "warm", "sterile", "ephonic" "harmonius" or other Deepak Oprah Choprah crap.

A lot lot lot of the claims made can be tested directly such as when they claim magical frequency responses or noise levels.

I aim to test noise, distortion and frequency response, but theres a few tricks to this

I do have to have a decent methodology so that it is truly apples to apples

I would love to do like AP win where it does a level sweep to chart distortion, but I am actually ok to do say -20dBFS, -12 dBFS, -6 dBFS and -3dBFS and show for each

One of the concerns is that most testing software tries to do most or all tests at full scale, and then really Im just measuring converter distortion. I'd like not to do that, especially for the frequency responses...and if the methodology is always stable, then these things will be relative to each other, so the absolute noise level wont matter so much as compared between them

The converters are all flat enough (even the cheapest) so thats not that much of a problem, but in order to get down to mic level, I'm using DI's and Reamps and such, not 100% sure which yet, still testing for the lowest noise and distortion, and they all have a frequency response I'd like to flatten out for the test.

REW's callibration mode sounds great for that!

Karbo, I was really unable to figure how to get REW to work this way for me and how to set the different levels for the distortion tests. Also, Rightmark allows you to make charts that show up to 8 different devices at once which are cool, anything like that in REW?

Also, any way to just have one channel showing in REW? Or to have one channel plus a reference channel showing?
pipelineaudio is offline   Reply With Quote
Old 06-29-2019, 12:36 PM   #12
karbomusic
Human being with feelings
 
karbomusic's Avatar
 
Join Date: May 2009
Posts: 29,269
Default

I thought it only showed a single channel and you had to pick a single channel for doing the measurements but could be wrong. It looks like you can overlay about anything but distortion:

karbomusic is offline   Reply With Quote
Old 06-29-2019, 12:57 PM   #13
Lokasenna
Human being with feelings
 
Lokasenna's Avatar
 
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
Default

Quote:
Originally Posted by pipelineaudio View Post
How would I invert it? I think thats where I'm stuck
The phase button on a track - that's how I've always done null tests. If it was all within the same track or something there's also JS Channel Polarity Control.
__________________
I'm no longer using Reaper or working on scripts for it. Sorry. :(
Default 5.0 Nitpicky Edition / GUI library for Lua scripts / Theory Helper / Radial Menu / Donate
Lokasenna is offline   Reply With Quote
Old 06-29-2019, 01:03 PM   #14
pipelineaudio
Mortal
 
pipelineaudio's Avatar
 
Join Date: Jan 2006
Location: Wickenburg, Arizona
Posts: 14,051
Default

But that won’t really invert the frequency response, it’ll invert all the differences, andnotmsure that’s what I want to do
pipelineaudio is offline   Reply With Quote
Old 06-29-2019, 01:11 PM   #15
Lokasenna
Human being with feelings
 
Lokasenna's Avatar
 
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
Default

You want a perfectly neutral chain + the dry signal to = a flat line, yes? That's a null test. Anything above the line is signal that the chain added, anything below the line is signal that the chain cut.
__________________
I'm no longer using Reaper or working on scripts for it. Sorry. :(
Default 5.0 Nitpicky Edition / GUI library for Lua scripts / Theory Helper / Radial Menu / Donate
Lokasenna is offline   Reply With Quote
Old 06-29-2019, 03:07 PM   #16
pipelineaudio
Mortal
 
pipelineaudio's Avatar
 
Join Date: Jan 2006
Location: Wickenburg, Arizona
Posts: 14,051
Default

You think there's a way to mod the test files to do this?

http://audio.rightmark.org/download.shtml

You can do "generate wav" to send out their test files, not sure if you could reimport modded ones AS the test files...Maybe
pipelineaudio is offline   Reply With Quote
Old 06-29-2019, 04:37 PM   #17
pipelineaudio
Mortal
 
pipelineaudio's Avatar
 
Join Date: Jan 2006
Location: Wickenburg, Arizona
Posts: 14,051
Default

For REW distortion isnt part of the measurment right? You do that separately in the RTA?
pipelineaudio is offline   Reply With Quote
Old 06-29-2019, 05:14 PM   #18
karbomusic
Human being with feelings
 
karbomusic's Avatar
 
Join Date: May 2009
Posts: 29,269
Default

Quote:
Originally Posted by pipelineaudio View Post
For REW distortion isnt part of the measurment right? You do that separately in the RTA?
No, it comes with the sweep. Everything in that particular window is from a measurement except for maybe scope - some of them (like waterfall) you have to click the generate button before it displays but distortion is there right after you measure IIRC. If I were to do it with REW, what I think I would do is create a calibration file using your chain minus the gear you are testing, save that file and use it as your calibration. As long as that file is loaded as a sound card calibration, the subsequent gear tests will have the effect of the chain subtracted from the gear response.

If you do it that way, then each time you click measure, you get a new entry over on the left that you can name to match the gear. Then you'll end up with one of those entries for every device you test, the only thing missing (I think) is being able to easily overlay them (depending on the graph you are using) some have overlay some don't. Once you have all of those, you can navigate between etc. and also save a project file that will keep the sweep results for all devices you saved with that session.

Note you can also change the calibration after the fact depending on how you do it - notice the "Change cal" button for each result in my screenshot above. Those were real tests from when I was comparing 3 sets of studio monitors I had at the time.

Last edited by karbomusic; 06-29-2019 at 05:23 PM.
karbomusic is offline   Reply With Quote
Old 06-29-2019, 05:32 PM   #19
pipelineaudio
Mortal
 
pipelineaudio's Avatar
 
Join Date: Jan 2006
Location: Wickenburg, Arizona
Posts: 14,051
Default

I'm getting the hang of it, but theres a few things

1: It seems like the spectrum analysis is smoothed out a lot, maybe not but it feels like it compared to RMAA

2. For the spectrum window that comes up after the measurement ("All SPL") is there anyway to set the scale to dBFS and have 0 at the top? Alternatively, could I do frequency sweeps in the other spectrum window, the real time one? The nice thing about RMAA is that I can compare very simply, different devices...seems like the functionality is here on REW, I just cant quite figure it out yet

3. I'd rather see this type of distortion plot, or in addition I guess

Attached Images
File Type: jpg disto.jpg (53.9 KB, 573 views)
pipelineaudio is offline   Reply With Quote
Old 06-29-2019, 06:08 PM   #20
karbomusic
Human being with feelings
 
karbomusic's Avatar
 
Join Date: May 2009
Posts: 29,269
Default

At the top right of the All SPL graph, click the "Controls" button, there's an offset you can enter for each measurement but not sure if that's what you really need. It will at least allow compensating for level changes. I think there's a smoothing control there as well but mine was off by default. I was able to create an audio chain calibration file, then use that as a calibration against some test measurements I was just playing with FWIW. Looks like you can create as many types of calibration footprints as you need (.cal), then apply those as needed to measurements - if you set it as default sc calibration in settings, it will automatically be attached to each measurement.

Last edited by karbomusic; 06-29-2019 at 06:15 PM.
karbomusic is offline   Reply With Quote
Old 06-29-2019, 06:15 PM   #21
karbomusic
Human being with feelings
 
karbomusic's Avatar
 
Join Date: May 2009
Posts: 29,269
Default

Reg #3: Isn't the plot above measuring a 1k sine instead of a sweep?
karbomusic is offline   Reply With Quote
Old 06-29-2019, 06:28 PM   #22
karbomusic
Human being with feelings
 
karbomusic's Avatar
 
Join Date: May 2009
Posts: 29,269
Default

If you want to use a sine test signal such as 1k, you can use the generator to play the signal, then the RTA to record it and the THD. Just sort of figuring it out as I go. If I'm reading this right, the loudest harmonic below (3rd) is about -45.7 dbFS (-43dBFS + -2.7dBFS peak). The THD is 1.44% but I had to clip the A/D some to get something to show up. If you hover your mouse to the left of that little overlay with the stats/THD numbers, a little box pops up allowing you to set the scale to dBFS instead of dB, aka zero on the top.


Last edited by karbomusic; 06-29-2019 at 06:43 PM.
karbomusic is offline   Reply With Quote
Old 06-29-2019, 06:48 PM   #23
karbomusic
Human being with feelings
 
karbomusic's Avatar
 
Join Date: May 2009
Posts: 29,269
Default One other thing...

After playing with it for the last hour, it seems that the most critical piece is keeping the levels for each measurement exactly the same if possible. Some graphs can be offset per measurement result, but seems to me if they are captured methodically and at the same level, everything downstream gets a lot easier. It would be nice however if you could add a per dB offset per measurement that was global to all graphs.

One other problem I see is if the gear, such as a preamp without an output control, you won't be able to push it hard enough to test it when pushed without clipping the A/D.
karbomusic is offline   Reply With Quote
Old 06-29-2019, 07:46 PM   #24
pipelineaudio
Mortal
 
pipelineaudio's Avatar
 
Join Date: Jan 2006
Location: Wickenburg, Arizona
Posts: 14,051
Default

Quote:
Originally Posted by karbomusic View Post
Reg #3: Isn't the plot above measuring a 1k sine instead of a sweep?
Yup. That’s one of the tests I want
pipelineaudio is offline   Reply With Quote
Old 06-29-2019, 07:48 PM   #25
pipelineaudio
Mortal
 
pipelineaudio's Avatar
 
Join Date: Jan 2006
Location: Wickenburg, Arizona
Posts: 14,051
Default

Quote:
Originally Posted by karbomusic View Post

One other problem I see is if the gear, such as a preamp without an output control, you won't be able to push it hard enough to test it when pushed without clipping the A/D.
That would be the same issue for the hyperbolic claims anyway so it’s ok. I think I may be able to get rew to do what I want
pipelineaudio is offline   Reply With Quote
Old 06-29-2019, 08:18 PM   #26
karbomusic
Human being with feelings
 
karbomusic's Avatar
 
Join Date: May 2009
Posts: 29,269
Default

Quote:
Originally Posted by pipelineaudio View Post
That would be the same issue for the hyperbolic claims anyway so it’s ok.
Some do have output controls and/or may use other external attenuation. If a device you are testing has an output as you are testing, seems like it should be tested both as normal and a little saturated - unless the test specifies nominal levels only.
karbomusic is offline   Reply With Quote
Old 06-29-2019, 10:58 PM   #27
pipelineaudio
Mortal
 
pipelineaudio's Avatar
 
Join Date: Jan 2006
Location: Wickenburg, Arizona
Posts: 14,051
Default

I just cannot figure out a way to make the one that can show multiple traces start with 0dBFS at the top
pipelineaudio is offline   Reply With Quote
Old 07-01-2019, 02:30 PM   #28
pipelineaudio
Mortal
 
pipelineaudio's Avatar
 
Join Date: Jan 2006
Location: Wickenburg, Arizona
Posts: 14,051
Default

Man I am stuck with this stuff...I've sent emails off ot the companies involved but nothing back yet...is there a forum community someplace for RMAA and REW?
pipelineaudio is offline   Reply With Quote
Old 07-01-2019, 02:45 PM   #29
karbomusic
Human being with feelings
 
karbomusic's Avatar
 
Join Date: May 2009
Posts: 29,269
Default

REW has a forum, probably can search for it...

https://www.avnirvana.com/forums/off...port-forum.10/

My finding the other night was one of the SPL or RTA windows allowed setting dbFS which places 0dB at the top however...

I came to the conclusion that it wasn't easily possible to have that and multiple results overlaid. That said, I'd probably it's builtin capture screenshot feature and just overlay them in photoshop or something but that's stuff I already have and know how to do <- but that would have taken less time to do than we spent searching on doing it natively thus far.
karbomusic is offline   Reply With Quote
Old 07-02-2019, 12:34 AM   #30
pipelineaudio
Mortal
 
pipelineaudio's Avatar
 
Join Date: Jan 2006
Location: Wickenburg, Arizona
Posts: 14,051
Default

I left a post at the forum...fingers crossed
pipelineaudio is offline   Reply With Quote
Old 07-02-2019, 01:09 AM   #31
pipelineaudio
Mortal
 
pipelineaudio's Avatar
 
Join Date: Jan 2006
Location: Wickenburg, Arizona
Posts: 14,051
Default

Any idea how to test noise

and especially, to get rid of this stuff

pipelineaudio is offline   Reply With Quote
Old 07-02-2019, 09:37 PM   #32
pipelineaudio
Mortal
 
pipelineaudio's Avatar
 
Join Date: Jan 2006
Location: Wickenburg, Arizona
Posts: 14,051
Default

I'm making some real progress today! Hopefully I'll have something soon
pipelineaudio is offline   Reply With Quote
Old 07-02-2019, 09:46 PM   #33
karbomusic
Human being with feelings
 
karbomusic's Avatar
 
Join Date: May 2009
Posts: 29,269
Default

karbomusic is offline   Reply With Quote
Old 07-03-2019, 10:17 AM   #34
pipelineaudio
Mortal
 
pipelineaudio's Avatar
 
Join Date: Jan 2006
Location: Wickenburg, Arizona
Posts: 14,051
Default

Starting to narrow down the methodology! Any idea why on the distortion tests, the Focusrite Octopre would look so different than all the rest of these? Does the same sort of thing on REW



pipelineaudio is offline   Reply With Quote
Old 07-03-2019, 10:40 AM   #35
karbomusic
Human being with feelings
 
karbomusic's Avatar
 
Join Date: May 2009
Posts: 29,269
Default

Maybe it sucks. - Actually I have no idea, either it has more distortion or something was overlooked.
karbomusic is offline   Reply With Quote
Old 07-09-2019, 12:04 AM   #36
pipelineaudio
Mortal
 
pipelineaudio's Avatar
 
Join Date: Jan 2006
Location: Wickenburg, Arizona
Posts: 14,051
Default

jeesus....coming up for air for a second....dont ever get into this, make someone else do it!
pipelineaudio is offline   Reply With Quote
Old 07-10-2019, 08:37 AM   #37
brainwreck
Human being with feelings
 
Join Date: Jul 2006
Posts: 20,859
Default

Ha ha. Sounds like good times over there.
__________________
It's time to take a stand against the synthesizer.
brainwreck is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 08:03 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.