Archive for the ‘brp-pacu’ Category

BRP-PACU Version 2.0.0 Released Today

December 31, 2008

Its been a while since I posted anything about BRP-PACU, a dual channel FFT based Acoustic Analysis Tool to help engineers configure professional sound systems.  I have been using it regularly, but I recently became motivated to improve it.  Here is a list of improvements obtained from the Changelog.

Screenshot ov BRP-PACU version 2

Screenshot of BRP-PACU version 2

Basically now you don’t need an external pink noise generator or a dual channel capture card.  Just one input should work fine.

Version 2.0.0 Pink Noise and Jack Support (allowing possible Mac OS-X support?)

  • Update on Mac OS-X, my wife’s laptop hasn’t got enough disk space to install macports, xcode, etc, anyone out there who would like to check it out though let me know.
  • Also I need help packaging this for the OS-X and for Linux (deb).

I have a minimal Debian & Xfce based vmware image, which will run on any x86 Mac/Linux/Windows, though.  Not sure how to distribute +850MB of data yet, as ISP’s tend to limit upload bandwidth to a trickle.

Added Pink Noise Output and  the ability to Un/Mute and adjust levels

Added Jack Audio Connection Kit support and removed Alsa (removing need for linux)

  • Automatically connects Reference and Measured inputs to Channel 2 and Channel 1
  • Automatically connects Pink Noise Output to Reference Input and sondcard output
  • This app may now run on a Mac since alsa has been abandoned.  This may require some tweaking.

Major GUI and UI update!

*Delay function now resets delay before each capture, resulting in a much
more intuitive delay finding procedure.

*Rewrote buffer capture interface so that it makes more sense and works
consistently.

*Rewrote keyboard shortcuts so they don’t interfere with the Avg gain.

*Added default zoom button to return to original zoom settings.

*Added inserted delay size status on the status bar.

*Added “about” and “general help” windows

*TODO: ability to save buffers to a file.  Also a VM for windows and Ubuntu packages.
Miscellaneous Bug Fixes and updates.

Unsolicited Free Audio Advice

June 11, 2008

Attributions For Above Picture

Looking for advice on your next system? No? Too bad. Here it is.

Modern codecs (A/D & D/A converters) are 24 bit 192 kHz and a dime a dozen. You can’t get much better than that as far as noise and dynamic range are concerned. So the most effective place you can spend your money is in an easy to use receiver, the Speakers, and amplifiers. I say easy to use because many receivers are designed by UI buffoons. They are the intersection point of a system and ease of use and setup are at the top of my list.

Tube amplifiers have distortion that is more natural to the human ear. Class A amps are low-power and inefficient, but have the lowest distortion (most linear) if designed correctly. Don’t waste money on over-priced amps marketed with pseudoscience. The little distortion present in most modern amplifers isn’t really enough to fret over. If you think you can hear the difference, there are lots of folks like this guy offering $10K if you can in a blind test. Avoid the snake-oil vendors.

Now for some honest money saving advice and maybe a little toe stepping.

Bose is an interesting manufacturer. They have a well documented history of spending most of their money on marketing and almost none on research. Perfectly legal but I’d rather spend money on quality than marketing. Case in point: the Bose wave radio which is based on research from the 1920’s. It has one narrow resonance band at low frequencies that gives it its “full” sound. I have very little respect for Bose. They have some good stuff here and there, but it all carries the heavy Bose marketing tax.

Don’t waste your money on $700 power cords or expensive power conditioners/surge suppressors. They are pseudoscience BS but perfectly legal, like most of the herb and supplement market, and magnetic bracelets, etc. Nothing is gonna make it through the transformers, buck/boost converters, regulators, and capacitors that you are going to hear. Buy a $20 surge suppressor.

Also on $200 cables. If your system sounds better with one of these cables its probably because it is masking a ground loop that shouldn’t be there in the first place. Eliminate the ground loop first. You shouldn’t have to spend more money on 0-20kHz than the RF engineers spend on 1-2 GHz cable and connectors. This is a blatant ripoff also. Moving any signal in the audio range just doesn’t take that much effort to avoid noise and signal loss. Its actually laughable they get away with it. I could hook up your receiver with a coathanger and you couldn’t hear the difference. Speaker cables are the exact same. Oxygen free is BSt also. Buy something durable that is easy to tidy up.

As far as speakers in the home goes, there are great “practical” speakers that mount in the wall and use the space behind it as an enclosure. These usually sound great and because they use of the wall as a large “invisible” baffle. Speakers are the place you should spend your money. Sound for a home theater is considered “near field” and its actually 10 times easier to accomplish great sound here than filling a large space like a gymnasium or auditorium, where you need high-power drivers with specially designed horns for directivity. There is no need to spend thousands on a set of home speakers. I typically look at the specs (like Xover points, flat frequency response, and decent crossover design) and take a listen to make my decision. JBL’s are well designed, but you pay for that and then some.

I have heard some great chinese knockoffs from distributers like MCM. Here they are so cheap you can buy before you try. If you don’t like them, put them in the garage system. Get a good powered sub and you are set.

The things that can make or break a sound system are ground loops (buzz) caused by incorrect grounding, poor gain structure (distortion and hiss are present), crappy speakers, and an EQ that is incorrect. A good parametric EQ set using a dual channel spectrum analyzer is ideal, but not totally necessary if you choose the right speakers. You can’t set an EQ by listening to it. You can turn up/down the sizzle or the bass to your liking after the system is “flattened” however. Many people put in a “theater curve” by putting in a -3dB/octave dropoff after 2kHz after “flattening”.

I’ve stepped on a few toes, maybe even made an error or two. If you’re angry or dissatisfied with this post I am offering you a full refund. Otherwise feel free to respond with corrections.

BRP-PACU Most Major Update Ever, File Release At Last!

October 9, 2007

File Release!!

For those of you new here, BRP-PACU is an open-source program capable of real-time audio analysis of professionally installed loudspeaker systems. The idea is to use a calibrated microphone to measure the response of a room to playing a reference signal which is usually pink-noise but could be Pink Floyd, as long as it has decent spectral characteristics. The measured signal gets fft’d and divided by the reference signal’s fft. This is captured at 3-5 locations. These captures are then averaged and flipped, then used to calibrate the system.

If none of this rings a bell you probably should read some of my other post topics, because this stuff is probably gonna bore you.

It uses GTK+, alsa-lib, gtkdatabox, fftw, and more! Many of the algorithms were first tested and simulated with Gnu-Octave. Sorry windows users, this requires alsa so tough luck, but you could try it under VMWare, VirtualBox, or Qemu, or even an Ubuntu dual boot.

From my Project News page at sourceforge.net:

Posted By: electronjunkie
Date: 2007-10-09 12:30
Summary: Current Project Status I have made significant progress now with this project. While it is still not usable in its current state, it does the following:

  • Displays FFT of Blackman Windowed audio input in real-time.
  • Displays the transfer function, H(f) = Y(f) / X(f), of the measured system (channel one divided by channel two, or output (measured) divided by input (reference)), where X(f), Y(f) is the fourier transform of the output and input respectively.
  • GUI now uses the quick excellently documented gtkdatabox library instead of the scantily documented libgoffice. Great Success!
  • Averaging function for the H(f) frame, so graph doesn’t bounce/jump in time and smoothing of the plot to make the data more readable by humans, ex: H(f) = (H(f-1) + H(f) + H(f+1))/3.
  • Impulse Response now works! h(t) = H-1(F)

*Output is in dB and Octaves like humans hear, as opposed to Voltage and frequency in Hz, with actual frequency in Hz displayed under mouse cursor.

Todo:

  • Add channel 1 & 2 signal indicators
  • Add support for more than the 4 + averaging buffer.
  • Add save as support (so that a session can be saved). This is something even the expensize programs like SMAART do not do. How many times have you sampled a room just to have SMAART or your PC lock up and lose your buffers. It will also allow you to save samples for future reference.

These items are actually trivial to implement. As an engineer all the fft/data related processing is easy to me, the hard part has been the programming read tape (fixing Makefiles to include libraries, using the libraries API’s). But I have learned some excellent concepts along the way.

Currently we are using one thread for the gui/fft app and one thread to obtain the audio. I’ll probably separate the gui from the fft thread, so that I may change the audio thread to a callback instead of polling. Right now I just want to make it work, then I will optimize the coding later.

The code will be released at version 1.0, as it will not be released until I have tested for memory leaks, and actually used it to calibrate a sound system. RT60, and other measurement features will be available in later version releases.

BRP-PACU

August 31, 2007

Update! fixed link that sourceforge somehow broke.

BRP-PACU

Brian’s Reasonably Priced Professional Audio Configuration Utility

Audio Engineering With Linux Part II

BRP-PACU in action capturing noise.

File Release today! The code is GPL. To all you MS windows folks out there this means the program is free as in it costs $0. It is also free to use, distribute or even sell, but the source code must be included (upon request) and it must retain the GPL license. Contact your lawyer for more details on legal redistribution.

Un/fortunately it will not run under MS Windows, unless someone decides to modify my code to do so. I may decide to distribute a Linux VMWare player image so that MS Windows folks can use it. There won’t be a huge quantity demand for this software, but those that have a use for it will be desparate enough to use a virtual machine. If someone would like to donate money I will port it to MS Windows. Make me an offer.

Here is a brief description of the project:

Currently there is only overpriced Live Acoustical Analysis ($600-$1200) software capable of performing the transfer function of FFT’s for sound system configuration. This is ridiculous considering the trivial nature of the concepts, but understandable since there is only a limited audience. There does not seem to be an Open Source Version available. And there definitely is no software available under Linux.

This project is written for engineers who configure professional audio systems. It’s main feature will be the ability to take multiple sample transfer function plots (output FFT / input FFT), average them together, and flip the averaged plot to aid in final equalization. Nearly all Professional Audio Engineers use this function now rather than the older Real Time Analysis method because it is quicker and just as precise. This technique is powerful and quick, but very difficult to master, perform properly, and requires a special microphone and mixer to do correctly.

This project will also be able to provide a simple FFT plot to aid in finding room modes and quick audio verification.

This Project uses the FFTW package, libgtkdatabox, GTK+, alsa, and is programmed in C, and runs under Linux.

I currently have a dual threaded program, one which collects audio data, and one that performs the FFT and plots the results. It currently is a full featured audio analysis tool capable of finding the delay automatically in a system and is able to find both the transfer function and the impulse response of an audio system.