Read & Filter Multiple .wav files, Export Filtered SPL

Hi
I'm searching for tips on how to use LabVIEW to read multiple .wav files, then filter them, then export just the calculated SPL values to a "database friendly format".
Basically I want a solution that allows me to point to several files, then press a "go button" that triggers LabVIEW to produce filtered SPL values as exported data.
I'll skim over the cal approach since I'm confident most readers know how to handle it. Basically, though, for each 30 s .wav file of broadband noise, an associated cal tone file is used to determine the dBFS value (dB below Full Scale) to be associated with 94 dB SPL, or 114 dB SPL, as the case may be. I'll leave it at that.
Detailed Requirements, (excluding cal steps, tho).
1) Operates on up to a dozen 30 s time records (44,1 kSa/s, mono .wav files);
2) Passes the signal from each desired .wav file through 18 of the 1/3 octave filters (IEC 1260 compliant, as in the S/V toolset) not necessarily in real time!;
3) Calculates the SPL for each 1/3 octave filtered time record; This makes (12 files) x (18 filters) = 216 filtered SPL values if end-user points to a dozen broadband noise files before pressing the "Go" button;
4) Exports SPL values in a suitable database format; an existing database does the rest of the mathematics and report generation;
Client FileMaker database functions include:
- import and store 1/3 octave filtered Leq(30) SPL values;
- average filtered SPL across the declared qty of mic positions of the present test case;
NOTES:
1) In the field, we do NOT use simultaneous / MULTI-mics. Instead, it is absolutely an "open and shut case" that the optimum process is to move one (1) single mic quickly from spot to spot. While holding the airborne noise at a constant level we position the mic at each spot for 30 s to feed the .wav recorder, then move on. We emerge from a typical day of field activity with, say, 60 to 100 .wav files to post-process.
2) (1), above, explains why we don't use any N.I. DAQ h/w.
3) LabVIEW, it seems, exports best to a spreadsheet, so if needed, I'm prepared to handle manually any ugly conversion from LV's format to a proper database format ("1st Normal Form, 2nd Normal Form, etc.).
4) Given a choice to calculate the averages in my database, versus in LV (say, to cut down on exported data qty), I'd likely opt to export the 216 SPL's and then do averaging in the database, (where the ASTM E336 reports are done).
TIPS Gathered To Date:
1) S/V toolset has IEC 1260 compliant filters, BUT...
2) If you use the S/V toolset VI's, then you CANNOT ACCESS the filtered time record NOR CAN YOU WRITE the filtered data back to a .wav file! All you can do is measure the filters' outputs. Fortunately for us here, the available measures include SPL.
Aside: Although not a show-stopper in this project, this constraint is surprising, nonetheless. To access & record the filtered sound, you'd have to either (a) ask N.I. to unprotect VI's, or (b) develop your own IEC compliant filters from N.I.'s published tap co-eff's etc.;
3) LabVIEW does not support drag'n'drop operations on files. Instead, the recommended technique is to use multiple "Browse to/ Navigation/ File Open" panels to allow LV to open the user's desired qty of .wav files simultaneously;
Thanks for any tips!

The filter VI is password protected in the Sound & Vibration Toolkit (SVT) for two reasons. First, since the filter is compliant to a standard, by locking the code we guarantee that no one has the chance to accidentally change it so that they are no longer compliant. Second, the method of filtering the data is considered intellectual property that we are protecting.
That said, from reading your post it does not appear that you need to have access to the filtered data since you are making an SPL measurement which is provided in the Sound & Vibration functionality. Is that correct?
Also, I wanted to point you to another subVI which comes with SVT but is not in the pallette that might be of use. There is an example for SVT which is SVXMPL_Wav Power Spectrum which opens up a wav file and computes the power spectrum of it. Inside the VI, there is a subVI which will open a Wav file and convert it into a waveform which you can use with your SVT functions.
Hope that helps,
Jack

Similar Messages

  • How can I merge multiple wav files in Premiere?

    Hi Everyone,
    So after I import my synced timeline from Plural Eyes and replace the audio clips I notice that the new XML file has multiple wav files for each of my cameras. I do know that dragging these wav files together increases the gain. Is there a way to have these wav files joined to make one solitary track and file with only one level? TIA
    Mike Diaz

    The best method I can think of is to skip PluralEyes and all the issues that come with it.
    1. Create a sequence matching your media.
    2. Add the clips, sync manually.
    3. Create a second sequence matching your media.
    4. Nest the first sequence into the second.
    5. Right click that nested sequence, choose Multi-Camera>Enable.

  • PPro not reading TC in wav files correctly-is there a fix

    PPro CC v7.2.2
    OSX 10.8.5
    Is Premiere not able to read embedded TC properly in wav files?
    I'm in 29.97fps-NDF seq...PPro seems confused and displays wav TC in source monitor as what seems to be a Drop Frame calculation.
    Example:
    Received audio from Protools Rig as wav audio file with embedded TC start at 00:59:45:00. Verified this in Avid. PPro displays in source as 00:59:48:17. This is not correct.
    Example 2:
    TC start at 01:10:01:20...PPro displays as 01:10:05:26
    I have several segments and stems that must be dropped into a seq at specific TC, which is embedded in the wav file...but PPro can't display properly.
    Using tools for TC recalculation is not always giving me the exact result...sometimes off by a frame. For a semi-long form seq, this "Frame off" can result in bigger sync issues.
    Is there a solution for this?

    Found solution. I remember dealing with a 30fps seq at some point in this Project and had switched my "Indeterminate Media Timebase" to 30fps. I checked the setting and sure enough it was still at 30fps. I changed to 29.97fps-NDF and reimported wav files...now reading TC correctly
    This is under Preferences>Media>Indeterminate Media Timebase
    This needs to be same as your seq Timebase and affects TC interpretation for wav files and I think image sequences as well.

  • UCCX single play prompt step for multiple wav files

    Hi there!
    Is possible to use single 'Play Prompt' step to play a chain of .wav files on UCCX?
    For example, have variable chain_audio that can contain different content length
    ex:
    chain_audio = "P[1.wav] P[2.wav] P[3.wav]"
    chain_audio = "P[1.wav] P[2.wav] P[3.wav] P[4.wav] P[5.wav]" etc.
    Play Promtp (-Triggering Contact-, chain_audio)
    Is it supported?
    Thanks

    I'm not sure it is possible to call and fill Create Container within Java code. It is possible to setup variables by hand in Create Container Prompt step, like in Play Prompt step.
    Parse a String to Array and fill up Create Container Prompt with Array elements manually. In my example i have only 4 elements, but in real world i could have more than 15 elements.
    I wish Play Prompt/Create Container was filled automatically with chain of audio files, because it is impossible to know the array size beforehand.

  • Read a huge wav file

    Hi,
    We have a problem on playing a huge wav file around 70Mb.  If we directly read from "Snd Read Wav File.vi",  ,the waiting time is very long. Also, it says "LabVIEW: Memory is full.  This operation is incomplete." 
    If the wav is playing in Cool Edit(Adobe Audition), it works quickly and smoothly.  Would anyone give us suggestion? 
    thx.

    Hello
    In this link, at the end, you can find vis to read huge wav files in chunks.
    http://forums.ni.com/ni/board/message?board.id=170&message.id=142895&query.id=46434#M142895
    Hop it helps.
    Alipio
    "Qod natura non dat, Salmantica non praestat"

  • Reading and saving wave files as .txt

    I am a highschool senior working on a musical analysis problem. I am afraid my Java isn't all that great. The nitty-gritty is I need a squential representation of the ampiltudes of a sound file( .wav of course) at the frequency at which is was recorded. If I am not mistaken the advantage of the wave format is that it is just that a list of integers corresponding to the ampiltude of the sound file at the recording frequency. So my job is read the array of bytes in the sound file and write them to a .txt file so that I can run other programs which I have already gotten.
    I am currently trying to work with the Javax.sound.sampled API.
    My code sorta goes like this:
    public class analyse
    public analyse()
    AudioInputStream stream = AudioSystem.getAudioInputStream(new File("audiofile"));
    DataLine.Info info = new DataLine.Info(Clip.class, stream.getFormat(), ((int)stream.getFrameLength()*format.getFrameSize()));
    Clip clip = (Clip) AudioSystem.getLine(info);
    WriteArray();
    readArray();
    line.drain().stop();
    public writeArray() {
    int numRead = 0;
    byte[] buf = new byte[line.getBufferSize()];
    while ((numRead = stream.read(buf, 0, buf.length)) >= 0) {
    int offset = 0;
    while (offset < numRead) {
    offset += line.write(buf, offset, numRead-offset);
    I had a friend suggest something like that and That wa just the bare bones of the program. readArray() would of course take the array and, using an iterator, write it to a text file.
    However, I've also come across this code while looking thru the API
    AudioInputStream stream = AudioSystem.getAudioInputStream(new File("audiofile"));
    stream.read(byte[] b, int 0, int stream.frameLength()*stream.frameSize());
    this I actually understand better, but I cannot get it to work.
    If anyone could help me with this, I would sorely appreciate it.

    Do you have QuickTime Pro? What "audio file" types are you referring to - MP3, WAV?

  • Java playback of multiple wav files in sequence - without overlap

    Hi there
    I am asking for suggestions on how to do simple consecutive playback of multiple wavefiles using java. Right now I have each wavefile loaded into a clip, and the playback almost works, but with occasional errors where two or more of the files are played back simultaneously. I am doing busy-waiting using the clip.isActive() method in a while-loop in order to detect when a clip has finished playing so that the next one can start. I know that there are most likely some smarter methods of doing this, and I have tried some of them - e.g. linelistener but without getting it to work. If anyone can supply me with some example code on how to do this the right way, or could point me to some literature, it would be greatly appreciated.
    Thx in advance.
    Jacob

    http://www.jsresources.org/examples/SimpleAudioPlayer.html
    That example plays a file by opening it with an AudioInputStream and copying the contents to a SourceDataLine to play it...
    It can be easily modified to allow for multiple files to be opened & copied to a single SDL, and is what I'd consider the "proper" way to do it. Clips are mostly useful for things like making a button go "beep" and things of that nature. Not especially useful for normal multimedia applications.

  • Export .wav file on Mac in CS4

    i want to increase the volume of my source file great then
    100%. I don't believe it is possible to do this within CS4, so I'd
    like to export the .wav file and edit it in another application. I
    am working on a Mac and I don't have the option to export sound
    files in the .wav format. Any recommendations?

    If you're talking about timecode stamping in a WAV file exported from STP . . . well it doesn't seem to work for me no matter what timecode rate I use. 29DF, 29, 24, 23. I suspect you need to either give them the timecode location manually or export the whole thing, and let them just punch in the section they need.

  • Export wav file with matching dropframe timecode

    I'm sure I'm just missing something simple, but I need to export a small corrected part of a finished as a WAV file with timecode that matches the project. Being for broadcast in the US, the project is in dropframe timecode. While I'm working in STP, I see drop frame time code. But when I export, I get non-drop timecode that doesn't match the orginal code. This is a five second fix for a one hour DVD and I hate to have to send the authorers an entire new sound track when they only need the five seconds with matching timecode.
    How can I export and make this work. Without having to get ProTools, that is!

    If you're talking about timecode stamping in a WAV file exported from STP . . . well it doesn't seem to work for me no matter what timecode rate I use. 29DF, 29, 24, 23. I suspect you need to either give them the timecode location manually or export the whole thing, and let them just punch in the section they need.

  • .WAV files no longer readable after Yosemite update

    The issue:
    I recently did the switch to Yosemite. I now find some .WAV files to be no longer readable through FCP X, Preview app, QT, etc. BUT, I can open them through VLC, and also Soundtrack Pro. The problem:
    An FCP X project with this .WAV files has already been edited, with multiple cuts (46 to be exact) throughout the 35 minute timeline. The file is still visible on timeline with all cuts but is now silent. Looking to relink that audio with a working file. The original files' timecode starts at 09:46:30:09, with 7 channels of audio. What I tried to do:
    Open in Soundtrack Pro and simply "Save as" a new .wav file. Still not readable. Then brought the original file in to a new Multitrack Project in Soundtrack Pro, exported to .wav, which is now readable by all programs, but cant be relinked since info are not matched (channel count and timecode) "Incompatible file.
    The original file and new file have different audio source and channel counts.
    Relinked files must have the same media type and similar audio channels as the original files, and must be long enough to cover all the clips that reference the files." 
    My system:
    FCPX (10.1.3)
    OS X 10.10 (Yosemite) iMac (27 inch, Late 2012)
    3.4 GHz Intel Core i7
    32 GB 1600 MHz DDR3
    NVIDIA GeForce GTX 680MX 2048 MB 

    Thanks Martin. Thats just what I'm going to do. For the record, I have been dealing with Apple support concerning this issue for the last month. It's been a frustrating and exhaustive process and the outcomes has been underwhelming to say the least:
    It seems that under OSX Yosemite, Apple Core Audio , which plays audio in all the apple apps: QT, iTunes, FCPX, Logic Pro X etc, can no longer read multi-track WAV files larger than 2GBs. I tested this extensively myself, and the support staff member I was dealing with was able to re-create the problem at his end.
    Apps that do not use Core Audio CAN play the WAV files: QT7, Adobe Premiere, Audacity etc.
    Using this information the support member helping me escalated the issue to the Apple developers teams for both FCPX and OSX. He said he was really unimpressed by their response, and that while they acknowledged that there 'may' be an issue with Core Audio they didn't care enough to investigate it. He said that while a fix may come in the future there is no timeline for it to happen. He said he wasn't allowed to recommend that I downgrade, but he then rather embarrassingly admitted that I have no choice if I want to have a functioning project again.
    Which makes a mockery of my decision to use FCP over Premiere based on the assumption that Apple would better support their software. FCP has pretty much ****** me off right from the start with its babyish interface and glitchy behaviour. Now I have to downgrade my system to Mavericks, in order to limp to the finishing line with this edit, before I will be ridding myself of this junk for good.

  • Combine WAV files?

    Kind of a weird idea, but I'd like to see if it would be
    possible to "assemble" a WAV file (using CF) from smaller WAV
    files.
    My idea: We report of the heights of rivers across the U.S.
    (as in, at this moment, the Potomac River is 5.45 feet). I am able
    to have people send in an email asking for a certain river, and CF
    produces an email back to them with the river height (process runs
    every 5 minutes).
    But I thought of sending them back a voice (WAV) file to
    their cell phones, so they could hear the river height instead of
    using a text email. I thought if I could have a library of small
    WAV files for each number, a "point", and some words, maybe I could
    combine the needed pieces from multiple WAV files:
    "Potomac" + "Height is" + "5" + "point" + "4" + "5" + "feet"
    Somehow join those little WAV files into a single WAV file:
    "Potomac height is 5 point 4 5 feet"
    I can't believe CF could join these files, but if anyone has
    any ideas, please let me know!
    Thanks....

    Is there any shareware online that lets you merge wav files?
    I would imagine you could string the phrases and send them to
    the program
    with <cfexec> or something, haven't looked into it
    myself, but it sounds
    like a interesting idea...
    "Howard Perlman" <[email protected]> wrote
    in message
    news:f3h85b$jba$[email protected]..
    > Kind of a weird idea, but I'd like to see if it would be
    possible to
    > "assemble"
    > a WAV file (using CF) from smaller WAV files.
    >
    > My idea: We report of the heights of rivers across the
    U.S. (as in, at
    > this
    > moment, the Potomac River is 5.45 feet). I am able to
    have people send in
    > an
    > email asking for a certain river, and CF produces an
    email back to them
    > with
    > the river height (process runs every 5 minutes).
    >
    > But I thought of sending them back a voice (WAV) file to
    their cell
    > phones, so
    > they could hear the river height instead of using a text
    email. I thought
    > if I
    > could have a library of small WAV files for each number,
    a "point", and
    > some
    > words, maybe I could combine the needed pieces from
    multiple WAV files:
    > "Potomac" + "Height is" + "5" + "point" + "4" + "5" +
    "feet"
    >
    > Somehow join those little WAV files into a single WAV
    file:
    > "Potomac height is 5 point 4 5 feet"
    >
    > I can't believe CF could join these files, but if anyone
    has any ideas,
    > please
    > let me know!
    > Thanks....
    >

  • Soundbooth fails to open 16-bit 44.1k wav / aif export from Propellerhead's Record

    No matter what I do I cannot get Soundbooth (or other package in CS4 & CS5) to recognise any wav / aif files exported from Propellerhead's Record 1.5. I noticed that the files do tempo information so may be it is possible that Adobe software refuses to recognise wave files with additional chunks (which it should because they can easily be skipped and has been a practice for over a decade).
    Are Adobe planning to fix this as it causes unnecessary headache for something that is as easy as pie to support and really shouldn't be causing issues!
    I am aware that "Adobe currently do not support non standard Wave files", but why not? It requires no extra effort other than skipping junk chunks, which just about any decent code for reading wave files should be able to do anyway.
    I can send a wave file exported from Record to examine it if necessary, but this really shouldn't be so "complicated" at all.
    For the record, the wave file is 16-bit, 44.1k, stereo, PCM.
    Cheers.

    P.s. my current workaround is to convert it to a standard Wav file using iTunes And this is an issue for all Record users (can't test on Windows).

  • Changed wav file names – files unrecoverable

    Hi. I was asked to import some important imterviews made on an iPod mini and an ExtremeMac Micromemo onto a Mac, but, as requested, I change the file names first. Since changing the file names the files are completely unplayable, undownloadable and unrecoverable. Please, can anyone help.
    Matthew Whiting

    Hi Chris
    What I did was to change the file names of the wav files in the Finder while they were still on the iPod Nano, before downloading them to iTunes. The iPod Nano uses a hybrid file system, and once the file names were changed iTunes refused to recognize the files. The Finder and Mac OS X flags them as wav files but cannot read them. All other software (players, audio apps and file recovery apps) that we have attempted to use, whether on Mac OS X, Windows XP and Vista, and Linux Red Hat has either crashed, failed to read the files or ignored them. Changing the file names back to an arbitrary time, similar to the original, still does not help.
    It's hard to appreciate the problem, but two of us with many years of Mac (and other IT) experience spent three hours yesterday, on a total of 6 computers, trying to get something to read or recover these files, without any luck whatsoever.
    Thanks for your interest.
    I might be able to get my hands on some industrial strength recovery software, today, and then we'll see. The problem, however, is that the data of the files is intact, but absolutely nothing succeeds in reading them as wav files.
    Matthew Whiting

  • Change wav file names on iPod - unreadable

    Hi. I was asked to import some important imterviews made on an iPod mini and an ExtremeMac Micromemo onto a Mac, but, as requested, I change the file names first. Since changing the file names the files are completely unplayable, undownloadable and unrecoverable. Please, can anyone help.
    Matthew Whiting

    Hi Chris
    What I did was to change the file names of the wav files in the Finder while they were still on the iPod Nano, before downloading them to iTunes. The iPod Nano uses a hybrid file system, and once the file names were changed iTunes refused to recognize the files. The Finder and Mac OS X flags them as wav files but cannot read them. All other software (players, audio apps and file recovery apps) that we have attempted to use, whether on Mac OS X, Windows XP and Vista, and Linux Red Hat has either crashed, failed to read the files or ignored them. Changing the file names back to an arbitrary time, similar to the original, still does not help.
    It's hard to appreciate the problem, but two of us with many years of Mac (and other IT) experience spent three hours yesterday, on a total of 6 computers, trying to get something to read or recover these files, without any luck whatsoever.
    Thanks for your interest.
    I might be able to get my hands on some industrial strength recovery software, today, and then we'll see. The problem, however, is that the data of the files is intact, but absolutely nothing succeeds in reading them as wav files.
    Matthew Whiting

  • How to convert raw data to wav files??

    Hi AnyOne,
    Can anyone know how to do convert raw data in hex format into wav file format??
    Please show some guideline.
    Thank You.

    Hi Craig,
    Thanks for the reply.
    I do follow according the the wav creation standard and save it as wav file. However, i still fail to read back the wav file.
    I using LV8.2. Attach with my testvi and data. Please guide if i make any mistake in my testvi
    Thx and Regards,
    Simon76     
    Attachments:
    data.txt ‏7 KB
    testvi.JPG ‏39 KB
    header.txt ‏1 KB

Maybe you are looking for