Tech Blog

FIR Filtering and the DP448 Part 1

Time for some proper technical stuff on the techblog! 
Not too technical, but think of it as a layman’s guide to this somewhat misunderstood topic – FIR 101 if you like…

Our actual implementation will be covered in a subsequent article.

Overview

With the introduction of a more powerful DSP platform in 2010, newer DP448 units[i] now benefit from increased power which we have used to implement additional processing.  Finite impulse Response (FIR) filter technology has been in the spotlight in recent years as another tool in the armoury of filters, delays and dynamics used to manage speakers as effectively as possible.  However, as with the majority of technological advances, there are advantages and disadvantages to be aware of when using FIR filtering.

FIR Filtering NOT FIR Filters

Whilst traditional filter responses such as parametric EQ bands, crossover filters of any shape, or shelving filters can all be achieved through FIR filtering, in many cases, the technology is NOT used for this purpose.  There are two main reasons for this.

Real-time vs. Off-line Adjustments

Real-time adjustment of a traditional filter modelled using FIR filtering is not a practical scenario.  The implementation of any filtering using FIR topology is the result of digital data being passed through a series of processing stages traditionally known as filter taps.  Each tap can be thought of as a computational component and different filtering scenarios will require more or less calculation stages, or taps.  As would be expected, for every tap, or calculation, there will be a time penalty involved – more taps = longer time.  Designing a filter to operate at a certain frequency and with a certain level of attenuation may produce x  number of taps, but adjustment of a turnover frequency or required level of attenuation can often result in the number of taps changing and so the computational delay associated with the filtering also changing.

Whilst this delay difference is unlikely to very large (sub-millisecond in modern systems sampling at high rates with typical filtering), even small changes can affect alignment delays between drivers in a multi-way system, introducing side effects that are both difficult to determine and account for.

Processing Delay Penalty

All digital signal processing relies on the manipulation of sampled data using calculations.  The major difference between the implementation of Infinite Impulse Response (IIR) filtering and FIR filtering is that the calculations applied to the incoming sample stream will involve feedback of data back into the filter “maths” for an IIR filter, whereas FIR filtering is a linear process with no feedback.

Considering a basic audio analogy, traditional analogue filtering nearly always utilises feedback to reduce system complexity and provide a wider range of adjustment with fewer components.  This method is analogous to IIR filter topologies which utilise feedback of data as mentioned above.  Care needs to be taken with the analogue filtering and IIR filter design as, where there’s feedback, there’s also the possibility of instability and unexpected behaviour as a result of this. 

FIR filters, with their linear processing topology, are inherently stable and cannot be forced in oscillation (no feedback).  No input will result in no output!  Designers strive to achieve this with IIR filtering as well but, as any audio engineer knows, just stopping talking into a microphone won’t always result in silence – the slow build-up of oscillation caused by too much feedback causing instability is a constant enemy!

So… it would seem like FIR filters are the best solution, but this is not always true due to the simple fact that their linear operation means more steps of calculation that are cascaded one after the other, resulting in more time processing = delay.  Even in a modern audio digital signal processor, this delay can become quite significant, especially when processing low frequency signals at high resolution.  The reasons for this are beyond the scope of this document, but these delays can be in the order of 5 to 15 mS which would be deemed unsuitable in many live performance situations such as music concerts and theatre.  This doesn’t matter quite so much when dealing with installed sound, such as studios, clubs and even voice evacuation or announcement systems.

Negative negative negative…

After all that doom and gloom, are there any advantages to using FIR filtering?  Yes – of course there are, and the one that makes the most news for audio is the phase response characteristic.

So what is “phase response”?  Simply put, the phase response defines the relationship between different frequencies present in a signal relative to each other in time.  The timbre or characteristics that can help identify a particular instrument or sound are heavily influenced not just by the frequencies present, but also by how they relate to each other in time.

Traditionally, we manipulate the frequency response of speaker system by altering the balance of certain bands of frequencies – feeding low frequencies to subs, and filtering off the LF before it gets to the more delicate high frequency drivers.  This is the nature of crossover filters.  Various corrective filters may also be applied to individual drivers to reduce resonances or boost areas lacking, in an attempt to achieve the perfect “flat” response – everything from the lowest lows to the highest highs being output at the same relative level.

However, as anyone who has ever used a digital crossover will know, this isn’t quite the end of the story.  Within speaker cabinets, improvements can be made to the final output if care is taken to correct driver alignment delays.  This method is used to align the outputs of the various drivers in time with each other as their actual centres of output will be physically different within the box.  An HF driver’s voice coil will most likely sit tens of mm further forward than the voice coil of a 12” bass driver, resulting in the HF output reaching the listener typically hundreds of microseconds ahead of the bass driver’s output. 

This would not be too objectionable, were it not for the fact that speakers and crossovers are not perfect and their bands of useful output always overlap to some extent.  It is in the areas of overlap that we are most concerned about the time differences.  If the signals from the LF and HF have a phase difference (or a time delay difference) then they will start to interfere, both constructively and destructively, resulting in peaks and troughs in the response.  This is occurring about the crossover point of the drivers.  Adding a delay to the HF driver output to ensure the sound it emits arrives at the same time as the LF driver’s output has the effect of these signals summing “more correctly” resulting in a smoother response.

Going back to the timbre of a particular instrument, the timing relationships between various frequency components are part of what gives the instrument its “sound”.  Preserving these relationships goes a long way towards improving the clarity, and purity of any system.

Traditional analogue filters and IIR filters can have an adverse effect on the phase relationships present in a signal, “smearing” them so different frequencies arrive at subtly different times to others.  This needn’t be disastrous however – careful filter design can result in a system with minimal phase distortion and very good characteristics.

FIR filtering does not introduce phase distortion – it can exhibit a linear phase response, meaning none of the “smearing” of frequencies in time occurs, no matter how “steep” the filtering is, so allowing the use of higher order crossover filters.  Traditional analogue and IIR filters with very steep or sharp slopes have a greater adverse effect on the phase response of the system.  However, as mentioned in the introduction of this article, modelling traditional designs using FIR filtering is only one approach…
Throw away thoughts of traditional filters!

A bold statement, but one that encapsulates the main design ethos of our implementation of FIR filtering.

As explained in the previous section, traditional approaches to loudspeaker system design would involve high and low pass filters to split bands up, and “corrective” filters (shelving and PEQs, possibly notch filters) to “iron out” any problems.  Digital signal processing normally uses IIR filters, set up as models of the analogue equivalents, to achieve this.

There is another approach to this that involves a more holistic method.  In a similar way to measuring a frequency response and attempting to apply an inverse correction to fix problems in the frequency domain, a system’s impulse response can be measured and a corrective response calculated that will account for any frequency time smearing that is present in the system.

The details of how this works are beyond the scope of this document, but the basic principle is that instead of applying a range of frequencies one after the other (as in a low to high sweep) and measuring the various resulting output levels (so creating a frequency vs. level response), an “impulse” is applied to the system.  A perfect impulse (an infinitely short duration “spike”) will contain all frequencies and is impossible to achieve in reality, but what we are trying to get to it a measure of the time alignments of all frequencies that the system needs to reproduce.

The output of an impulse response measurement will display level vs. time, not level vs. frequency.  Applying a mathematical method known as a Fast Fourier Transform will supply the frequency vs. level version of the information.  However, what can also more usefully be derived from the impulse response is a holistic corrective response filter that is effectively an “inverse” response to the system’s impulse response.  This filter is NOT made up of discrete “bands” and traditional filters – it is a mathematical calculation that works as a whole on the system.



[i]  As this feature only became available after a hardware upgrade, and we reserve the right to improve the specification of the DP448 at any time, only units with a serial numbers in the range 3760-3798 and then from 3960 onwards will support the update. 

Windows 8 – A Touchy Subject for AudioCore and iCore?

Just a quick post, after we finished a day of training here at XTA.  Having bought a very nice HP touchscreen monitor last year to use at Plasa, it suddenly seemed appropriate to give it a proper job.  We have distributors coming, Microsoft release Windows 8, and I have a training/exhibition computer running Win7 just begging to be upgraded.

So for the princely sum of £25, I upgrade the machine to Windows 8.  This is not the quickest process ever, but that’s fine – the upgrade assistant confirms the vast majority of things on the PC will survive the process (to be honest, being an exhibition PC, there’s not a lot on it, and also being Win7, I should hope there would be minimal trashing…).

So after several reboots, we’re up and running…well almost.

For no apparent reason, Windows 8 does not allow me to set the monitor resolution to the native settings for the display (this worked in Win7) so I am stuck with either a stretched but small option, or a correctly proportioned but massive anti-aliased choice.  I opt for the massive option, based on the fact that I intend to poke at the monitor with my fingers and the bigger the better.

The next issue is the fact that actually finding where programs now live and accessing them is actually hampered by the lovely swipey start screen.  This is made more frustrating by the oddity that when you start something that is very much a built-in “app” like Internet Explorer, a very normal Windows desktop appears briefly, before the program opens.  So just how do I access this standard desktop?

As it turns out, you flip between the Start screen and a desktop (albeit one MINUS a start button – quite irritating) with the Windows key on the keyboard.  Fine if you still HAVE a keyboard attached.  I have yet to work out how you achieve this if you just have a touchscreen (and no mouse) but I am sure someone can comment below and help with that!

In any case, it is teething trouble – I am so wanting Windows8 to be as good as my Win7 phone (the beautiful Nokia Lumia 800) that I am willing to get shot of my android tablet (ruined earlier this year by an ICS upgrade and now becoming ever more frustrating to use – Acer A100 – great 7″ tab, pre-upgrade, now often close dropping into bin.)

A Surface beckons me with its smooth swipey fingers…but tey’re just too silly expensive right now.

Anyway, the basis for this “quick” post was just to let everyone know that with no driver upgrades or reinstallation, both AudioCore and iCore worked fine.  Whilst I had a suitable setup in place, I made a couple of quick videos just to show you – if you can get past the stunning jumper I had one that day!

AudioCore first...

and iCore…

 

 

 

 

 

Aten UC232a USB-Serial Interface and Windows 7

A technical post for you, courtesy of Tom Taylor from Brighton, who called us last week about problems he was having installing the Aten UC232a converter on his Win 7 machine.  Whilst we have not experienced any issues with our Win 7 machines here (64 bit version), I did try an install on the phone with Tom and came across some strange behaviour.

The standard manufacturer supplied drivers, which work from XP through to Win 7  are here , but Tom also sourced some alternate drivers through a forum post, which are here.

Thanks again Tom for your assistance – we’re never to proud to accept help!

You’ve got the power to know…you’re indestructible…always believe in…

…and so on and so forth.  Yes, those are the lyrics to “Gold” – that truly awful Spandau Ballet hit single.  That’s hit with a capital “S” by the way… 😉  They did so much better – “To cut a long story short” comes to mind but I digress before I’ve even started…

This is the official post-Plasa debrief from what was a very surprising show.
Things that weren’t surprising were:

  • Fewer exhibitors – although this did not stop me from getting lost as usual and only happening upon the Polar stand again by chance on more than one occasion;
  • Less in the way of product launches – most companies seem to keep these for Frankfurt these days;
  • Apparently increased visitor numbers – I am speculating on this point but, given the number of scans my badge had every time I re-entered the main hall, (nipping out to let someone in or going to a demo room) , I alone could have been responsible for a percentage point or so;

However, things that were a surprise and all of them good included:

  • As a result of some last-minute cancellations Polar Audio – our UK distributor –  ended up with considerably greater stand area than we were originally expecting.  This was very welcome, as the majority of the time I was fighting for somewhere to have meetings, even considering this!  Which brings me on to…
  • More visitors than I was anticipating.  Whilst the various meetings I had scheduled were going to involve welcome conversations with our own distributors and an afternoon with press chats, the number of impromptu discussions I had with end users was very pleasing.
  • Very tasty egg and cress sandwiches from an on-site food outlet – not exactly important but better than eating greasy junk with no change from a fiver!

As I mentioned in the bullet points so very efficiently (bullet points do that), we had a great stand again this year and Polar, along with the stand builders, did a lovely job, with the space being both open and clean as well as cosy and private – quite a juggling act to achieve.

The XTA and MC2 angle of the Polar stand.
Some of the people on there aren’t staff – always a good result!

 

The DS8000 proved very popular which, given its prominent position on the corner of the stand, was great news.  Little things, such as showing how two units are able to look after each other (so you can pull the power on one and they both carry on working) make a big difference when in a show environment.  You could tell people this stuff – but a 5 second demo of it is so much better!  There was much discussion around the possibilities of using the AES digital option – connection straight into a couple of DP548s for a standalone digital matrix mixer with 16 outputs was one I hadn’t thought of…there is of course a caveat with that arrangement that each unit doesn’t get access to all 8 mic channels but, as it wasn’t our suggestion, who were we to argue? 😉

We weren’t making a big thing of the imminent 448 firmware upgrade which opens up the world of FIR filters, but I did demonstrate how this would work to several people.  It will be made available across the 4 Series in time (not the 548 though as it uses too much processing, and NOT on older 4 Series due to a different DSP platform).  Rather than discuss it all in this post, I will write a separate entry about it all and release some application notes as well.

Aside from talking to customers (and trying to convince Niall [Lewis] of the Production House Group in Belfast that his ten or so DS800s had served him well and at their age, deserved a well-earned retirement in someone’s church/theatre/pub and the time was right for DS8000s to replace them…) there was the ongoing Olympics still in full effect all across London.
Having been somewhat underwhelmed by the whole Olympic juggernaut in the earlier part of this year, something happened in my brain when the torch made its way to my locale, and I suddenly couldn’t get enough of it all.  As I trust you are aware, we had an “non-Olympic” event here at XTA involving gold medals to celebrate the shipping of our 50,000th unit.  Read all about it here.

Such was my excitement, I had signed up to the Olympic ticketing website some months back, and been fervently checking for the possibility of getting tickets just to get into the Olympic park.  We’re not talking events here – I know I had royally missed the boat on that front, but with the entry to the park dropping to a fiver for the duration of the Paralympics, the possibility of soaking up a little bit of the atmosphere felt like it could still happen.  So, after finalising all the load-in and making sure everything was working, flashing, and happy on the stand, Mr. Fleming and myself headed off towards Stratford last Saturday afternoon.

The sun was shining, the forecast was good and the journey on the tube was straightforward.  Taking TFL’s advice to get off at West Ham and walk the 20 minutes or so to the gate, things got even better the minute we stepped off the train – Olympic signage in full effect.

It’s like queueing for a ride in a theme park, although I don’t think you are allowed to come down the Orbit Tower helter skelter style…

As we approached via the long walkway the signs count down the minutes until you get to the park – and suddenly the Orbit Tower and the Olympic Stadium were visible.  By this point I was, somewhat sadly, getting rather over-excited and began taking photographs such as the one above – a complete tourist rush!  At the end of the walkway, which finishes at a high vantage point looking down into the park, there is a great view taking in the athletes’ village, the aquatics centre, and everything in between.

Unfortunately that’s were it ended.  Despite the best assurances from a “games maker”, there were no tickets available on-line (and about thirty other people standing about at the gates on their smartphones could further qualify this) and there was no system in place to purchase tickets just for entry to the park at the gate itself.  So that’s where we stopped.  None the less, it was such a perfect day weather-wise and the view into the park was so good that we both felt it had been worth the trip!  It would have been great to get in whilst the Olympics was still on, but the park isn’t going anywhere for a while so it can wait for another time.

We were there – photographic proof. Not in there, to be fair, but near there…

 

 

 

 

 

 

 

 

So enough of our failed attempt to get into the park…there is however one last thing to mention regarding the entire Olympic machine – that is the subject of advertising and marketing.  I am sure many of you will be aware of the news (mainly in the lead-up to the big event) that LOCOG were clamping down heavily on anyone not directly associated with/sponsors of  the “Games” who were using any references to the event to market their products/services.  They went to, I believe, fantastical lengths to prevent anyone benefitting indirectly from association with them, and it was the only sour note during the whole proceedings for me.  I did the decent thing and wrote to LOCOG before attempting any advertising or marketing and received a polite but firm “not a chance” reply.

This was circumvented (I hope) by using the gold medals and making no mention of “London 2012” (not allowed), use of the logo (either the London 2012 based ones, or the IOC actual rings).  What I was told by a certain magazine editor at the show (who will remain nameless until later when I will expose him and his dastardly associate on our facebook page for their cruel ribbing – have a look) was that there is still an embargo on any associated “rub-off” even for those companies who were directly associated with the events in terms of supply of kit (not sponsors) until some time in October, as opposed to maybe just when the games had ended.  That feels a little mean to me, as the momentum will have been lost somewhat by this stage.

And finally (after what is probably the longest blog post so far – worth a gold medal etc. etc.) one last thing.  OK two.  Funktion One had their now legendary demo room upstairs at the show and I don’t know what was different this year, but it genuinely sounded amazing each time I was in.  There have been moments in past years where I (inwardly) questioned the logic behind listening to large-scale speaker cabinets at that close range – would you get a reasonable appreciation of their tonal balance, or would you just get your head torn off?  I know that Tony and John don’t believe in (or need) corrective EQ – if you look at the settings in the XO4 (or XO2) for any of their boxes, all you’ll find are crossover filters and driver alignments.  Maybe it was the layout in the room this year, or there were more drapes but whatever had changed, everything sounded the best it had ever sounded, and I wish some year I remember to bring along some of my own music to play out – that was the sort of thrill it gave me 🙂

Lastly, it was my honour to meet Mr. Tim Goodyer and have a long chat with him at the show – I hadn’t put two and two together with regards name and face, and when he mentioned about being the editor of “Studio Sound” for ten years, I did genuinely feel like I was meeting a celebrity, such was my avid reading of said magazine during its lifetime.  Brilliant!