Skip to main content
james ca60449927
Known Participant
July 11, 2017
Question

Measuring impulse response

  • July 11, 2017
  • 1 reply
  • 1102 views

I need to measure impulse response for some electronics. Problem 1 is coming up with the impulse stimulus file--that's all I need right now. A proper digital impulse, should have a single bit--right?--with silence before and after. Sounds simple, but I can't figure it out. I can easily delete all but one sample, but then there's no silence. If I use the "silence" feature, Audition appears to do some sort of convolution--anyway, things get rounded off and I end up with many more non-zero samples than I want.

An alternative would be access to .wave files with the properties I want--a single bit, silence before and after, at several sampling frequencies.

Once I've got the file, making the measurement should be easy. Can anyone help with either of these approaches?

Thanks.

Jim

    This topic has been closed for replies.

    1 reply

    ryclark
    Participating Frequently
    July 11, 2017

    Jim  wrote

    A proper digital impulse, should have a single bit--right?--with silence before and after.

    Don't you mean a single sample of, say, 16 bits? A single bit wouldn't have any useful energy. But even so there will tend to some rounding of the edges due to any D/A conversion. But when you use Silence to remove samples if you don't have the default Crossfade Edits or Deletion turned off in Preferences then, yes, you will get lots of non zero samples before and after due to the crossfading time.

    However it is probably best to wait until Steve G comes along since he is the expert at this sort of thing.

    james ca60449927
    Known Participant
    July 11, 2017

    Thanks, yes I should have written sample, not bit. I haven't disabled any defaults, so I'll try your suggestions. I'm fully expecting the DA converter to cause some rounding/ringing; that's just what I'm trying to measure.

    BTW, I did finally manage (I think) to set all but one samples to zero--but even then the trace "rung", reflecting, I guess, the limited bandwidth. (Unfortunately, when I used that single-sample file to attempt a measurement, I couldn't find anything in the output at all, except the baseline noise.)

    jca

    SteveG_AudioMasters_
    Community Expert
    Community Expert
    July 11, 2017

    Can of worms, this! I think you'll have to define exactly what it is you want to do, as there are a lot of different impulses available, and some are easier to generate than others. But...

    ...to get anywhere with this at all, generally you need a playback device with a high sample rate, as the rise-time of your impulse is limited to the Nyquist frequency of the sample rate you use. And for most testing of electronic devices, I'd say that this simply isn't good enough, by a country mile. And the same goes for measuring it; unless it's a really crude bit of electronics, it will defeat most sound devices in this regard from the word go.

    Let's put it like this: If you sample at 96k, then the bandwidth of the device you're doing the measurement with will be 48kHz tops. If you provide an electronic impulse like a square wave, and just measure the flatness of the top of it with a basic oscilloscope, you'll have a bandwidth of several MHz, and a much clearer idea of what your electronics is doing at its transition point than you'll ever get from the sound device approach. In an ideal world, you need a source of impulses and a measuring device that performs an order of magnitude better than the thing you're trying to measure, or you're not really measuring anything at all!

    https://forums.adobe.com/people/james+ca60449927  wrote

    BTW, I did finally manage (I think) to set all but one samples to zero--but even then the trace "rung", reflecting, I guess, the limited bandwidth. (Unfortunately, when I used that single-sample file to attempt a measurement, I couldn't find anything in the output at all, except the baseline noise.)

    You can't generate impulses like that at all - they will all ring! You have to set up the transition so that it doesn't attempt to exceed the Nyquist frequency, otherwise the anti-aliasing filter will reject it, with exactly the results you've got. This means that you simply can't do a jump from 0 to 1; your pulse has to have a finite rise time and settling time at the top. or it will overshoot everywhere.