Handling wave files

Hi, I want to develop a program that deals with wav files. I need to read the bytes of the wav file similar to how pixels of an image could be read using the getRGB() method . Is it possible with java. Is there any method to read the contents of the wav file...please someone help me

what i mean is for handling images java provides the getRGB() which returns the pixel values. These pixel values could be modified. In a similar way, i want to know if java provides methods to read the wav files so that i could modify the contents. Thank you.

Similar Messages

  • Quicktime not playing .wav files

    I cannot get .wav files to play.
    I have installed Flip4Mac Beta for snow Leopard (twice) and even reinstalled Quicktime Player 7 just in case that would work since my Quicktime 10 (51) does not handle .wav files. This is a big problem.
    Is there a solution since I think it may be something with my upgrade to snow leopard and incompatibility issues and hopefully this is an issue being worked on by apple.

    "I have installed Flip4Mac Beta"
    BETA=buggy. Suggest that you post your concerns over on the Flip4Mac forums.
    There may be solutions regarding how to make their beta product work w/QT & Snow Leopard.

  • Tempo problems with imported wav files

    Hey everyone, sorry if there's a quick fix for this in the forums that I couldn't find, but I've been having some tempo problems with imported .wav files.
    Long story short, my system couldn't handle playing all the tracks for a song while recording drums, so I bounced out an mp3 of the song and put it in a new Logic file so my drummer could just play along to that as I recorded him. Unfortunately, the original song is at 167 bpm, but I forgot to change the bpm in the new Logic file with the .mp3 file of the song to 167 bpm, so it was left at the default 120 bpm.
    So, the drums were recorded at the correct 167 bpm, but Logic thinks that those new drum .wav files should be played at 120 bpm, so when I import my drum tracks back into the original file, they do not play correctly at all.
    I could get record it all again, but I wanted to check if there was a way I could salvage what I already have, since my drummer lives about an hour away right now and can't just come over whenever he wants.
    Thanks for the help! I really appreciate it.

    Hi,
    First, do not use MP3 in Logic, the sound quality is less than AIFF, WAV or CAF, and Logic has to decode it for playback, making it a heavier burden on the CPU than an uncoded audiofile, such as AIFF, WAV or CAF.
    Secondly, audio files are independent of Logic's tempo. If you bounce down an audio file in any format (other than Apple Loop), it will play back at the same speed, +regardless of Logics' tempo setting+, either at recording or playback. Logic doesn't 'think' anything. The BPM is only important to MIDI tracks, or to the spacing between audio files. The audio files themselves *are not affected* by the tempo setting. If you import an audio file of tempo 167 into a 120 BPM project, the file will still play at 167, only Logic will indicate the wrong bar positions.
    regards, Erik.

  • 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

  • Why won't my .wav files show up in a 3rd party sound application after being exported as an omf file

    Hi all, I've searched everywhere and can't find an answer, so hopefully someone out there will have mercy and help me!
    I have Canon 7D footage (h.264 codec) and H4N Zoom audio (24bit 48khz .wav files) loaded into Premiere Pro CS 5. Editing on a Macbook Pro OS 10.6.8.  I haven't added timecode. 
    My workflow, which I've done successfully several times in the past, is to sync the footage by creating individual sequences for each take (usually interview takes) and then bring in the audio and video and manually line/sync them up.  I then link the two clips. 
    I then create a new sequence for my edit and then cut parts of the previously synced clips and then paste them into the sequence and edit away.  After locking I export an omf (48khz, 24 bit, files as separate audio, aiff files, with 24frame handles).  Then I import the OMF into Soundtrack Pro.
    However this time, the majority of the sound clips do not show up in Soundtrack Pro timeline even though they are present in the omf folder as Aiff files.  Normally you would think this was an issue with Soundtrack Pro, however one audio file did show up in Soundtrack Pro, but it was a sound file I had not linked to a video clip.  Upon further investigation I found that that the audio clip that was not synced retained it's STE-014.wav name in the Premiere timeline.  All the other audio I had synced to video had somehow taken on the video clip's MVI 0075 name.
    I checked my old projects (the ones that I successfully exported to OMF) and even when I synced the audio and video, the audio retained it's STE.wav name. I don't know why the names changed; I did a test in my current project by cutting and pasting a synced clip at the end of the edit timeline and the audio retained it's  STE.wav name.  See pic.
    After further tests, if the audio retains it's STE name it shows up in Soundtrack Pro (and Soundbooth as well), if it takes on the video MVI name it doesn't.  I've tried exporting as an AAF and a Final Cut Pro XML file and it still doesn't work.  I've tried unlinking and relinking the clips as well as making the audio offline and then relinking but still nada.  I also cleaned the media cache to no avail.
    If I render and replace the audio in the edit timeline, the name doesn't change, but the audio file does show up in Soundtrack Pro and Soundbooth, but unfortunately I need handles to edit the sound so this doesn't help me much. 
    Any ideas?  and thanks!

    Yes, it has always worked in the past.  The past projects audio clips do not change names.  I obviously did something different in this current project, but unfortunately I have no idea what.

  • How to use jmf convert the rtp packet (captured by jpcap) in to wav file?

    I use the jpcap capture the rtp packets(payload: ITU-T G.711 PCMU ,from voip)
    and now I want to use JMF read those data and convert in to wav file
    How to do this? please help me

    pedrorp wrote:
    Hi Captfoss!
    I fixed it but now I have another problem. My application send me this message:
    Cannot initialize audio renderer with format: LINEAR, Unknown Sample Rate, 16-bit, Mono, LittleEndian, Signed
    Unable to handle format: ALAW/rtp, Unknown Sample Rate, 8-bit, Mono, FrameSize=8 bits
    Failed to prefetch: com.sun.media.PlaybackEngine@1b45ddc
    Error: Unable to prefetch com.sun.media.PlaybackEngine@1b45ddc
    This time the fail is prefetching. I have no idea why this problem is. Could you help me?The system cant play an audio file / stream if it doesn't know the sample rate...somewhere along the way, in your code, the sample rate got lost. Sample rates are highly important, because they tell the system how fast to play the file.
    You need to go look through your code and find where the sample rate information is getting lost...

  • FINDING, TIME STAMPING, AND SAVING SELECTED PORTIONS OF WAV FILE

    Hello Everyone,
    LV 6.1
    What I'm trying to do is build an app that
    captures, timestamps and saves peaks only in a *.wav file from the sound card.
    Specifically, dog barking.  My dream would be that I have a constant input
    from a mike into the sound card which LV will real time analyze. When a threshold is triggered
    (a dog bark) the app will save the bark only with a time stamp.  My case against
    my neighbors would be better exemplified is I were able to present them with a
    time-of-day graph with tic marks at each bark and a cd they could listen to of
    the barks only.
    Explorations so far:
      The sound VI's don't have time stamp outputs
      I have searched the knowledge base and found a few apps but came to a dead end with my knowledge
      I have experimented with various waveform analysis vi's but can't find the combo that gives me what I'm looking for
    I can handle the post processing of graphs / spreadsheets but the waveform analysis for capturing the bark is eluding me. If someone could just get me started I could run with it but so far I ain't smart enough.
    Thank You...........

    Hi rscully,
    I think a great starting place is the "Sound Input to File.vi" example found in the Example Finder. Since the output is waveform data, you should be able to extract the timing information from the waveform data. Try using the "Get Waveform Components" function. If that doesn't work for you, you may also want to just grab the time stamp from the system clock with the "Get Date/Time String" function.
    To record the bark, you can perform signal processing to match the bark frequency. The first thing that comes to mind, is to record a bark, analyze the power spectrum to find the peak power at a specific frequency range. Then in your program, you can find the power spectrum for that specific frequency range, and if the peak within that range exceeds a threshold, record the bark and time-stamp. This method should be simple if you have the NI Spectral Measurements Toolkit. See this tutorial.
    Once you have verified that a bark has occurred, you may want to record the previous bark sound data and the post bark sound data. This will ensure that the entire bark is captured in a sound file. I have edited the "Sound Input to File.vi" example to demonstrate this. Please see the attached picture. I hope this helps!
    Mike Lyons
    National Instruments
    http://www.ni.com/devzone
    Attachments:
    record_bark.jpg ‏105 KB

  • How to create a wav file from 24bit 96Khz sampling rate data

    Hi
    I am trying to make an VI which will play sound while acquiring data from PXI 4472 DAQ card.
    My sampling rate is 96Khz and PXI 4472 card is a 24bit card.
    Wave files are in 8 or 16 bit and the sampling rate is 8000, 11025, 22050 and 44100. How will I be able to play the data which I am acquiring.
    How would i normalize the data into the required format needed for most of the sound cards to play.
    Or are there any codec available in Windows XP which i call to play a 96KHz 24 bit sample
    Does anybody ever encountered this type of problem.
    Thanks in advance
    Nitin

    Whilst the 'standard' RIFF format specification usually accomodates 16 bit data, there is of course no reason that you can not create your own extension. It just won't be playable by Media player using the 'standard' installed drivers or codec. This may not be a problem....
    WAV files can and do support other formats, you just need to know how to handle them......
    There is howerver a 4GB limit (related to the pointer size in the WAV specification) which with higher bit depths on the sampling does start to become a bit of a problem.
    To give you a few samples of other types of wav files check out the following site here
    http://www-mmsp.ece.mcgill.ca/Documents/AudioFormats/WAVE/Samples.html
    The following definitions for WAV audio formats may also be of interest here
    http://www-mmsp.ece.mcgill.ca/Documents/AudioFormats/WAVE/WAVE.html
    Good luck with 24 bits.

  • How do I trim a .WAV file in iMovie 09?  / Proper aspect ratio for iPhone

    Hi,
    I have a .WAV file that I want to use in my project but I need to trim off the first 1/4. How do I do the using iMovie 09?
    Also I shot all of this with an iPhone. Which aspect ratio should I choose... It will be played on a WideScreen TV.
    Thanks.

    I would use 16:9 for aspect ratio.
    [See this video tutorial for how sound works|http://www.apple.com/findouthow/movies/imovie08.html#audioclips]. You can do it by dragging the handles on the end of the audio clip.
    Then see [Ken Stone's Tutorial for another way with the Clip Trimmer.|http://www.kenstone.net/fcphomepage/imovie_09stone.html#music%20sound%20effects]

  • Transter of wav files, converted to mp3, to iPod

    I have transfered vinyl to my computer, as a wav file. I have encoded this wav file to mp3 format. I attempt to transfer to iPod mini, and the message reads:
    "the target can not handle this type of document"
    What does this mean? Can iPod accept such converted files?
    What am I doing wrong?
    thanks
    david

    the file does not play in iTunes. I click 'file', 'send' to iPod. It appears as though a file is being sent, yet at the completion of such, the screen reads:
    "the target can not handle this type of document"
    Any ideas?
    thanks
    david

  • How do you convert mov to wav files?

    How do you convert .mov files to .wav files in iMovie 10? I can no longer find the Share/Quicktime/Options tabs.

    * the .mov container can be handled by any PC with a free download of Quicktime for Windows; but many PC users hesitate doing so, because on the Apple website it looks like you instali iTunes too... many PC don't like that...
    * .mp4 can be handled by any actual PC mediaplayer... again: PC users are used to import .wmv (or the very old .avi container/not supported by YouTube)
    * for exporting .wmv on a Mac, you need to buy a licence at www.flip4mac.com
    * mpeg... the MotionPictureExpertGroup published many codecs... mpeg1, mpeg2, mpeg4, h261, h264. .... but using iM as exporter, all these mpegs will be "hidden" in the QT container .mov... with QTpro you can strip-off the container, but I recommed the beginner to use one of the above mentioned options......

  • How do I edit wav files on my mac air?

    Hi Im new to the site and to mac. Can anyone help me edit a simple wav file on my mac air? I've found plenty of blogs which say I can use quick time app but when I open mine, there are no options to edit or do anything other than play and record. Confused!

    Hi lyndafromkingston,
    I see that you would like more information about editing files in QuickTime. Here is an article for you that can give you some steps to help you accomplish this:
    Mac Basics: QuickTime Player creates, plays, edits, and shares video and audio files - Apple Support
    http://support.apple.com/en-us/HT201066
    Editing content
    QuickTime Player lets you easily edit content you've created or downloaded. You can trim, combine, and rearrange clips. When you're done, just save or export your finished video.
    Trimming
    To remove unwanted footage from your media:
    Open the file in QuickTime Player.
    Choose Edit > Trim. The trimming bar appears.
    To select the portion of the recording you want to keep, drag the yellow trimming bar handles to the left and right as desired.
    When you are satisfied with your selection area, click Trim. The unwanted footage outside the the yellow trimming bar is removed.
    Thanks for coming to the Apple Support Communities!
    Cheers,
    Braden

  • How can we convert .mov ( implemented by quicktime APi)  to .WAV file

    Hi,
    How can we convert one .MOV audio file (generated by quicktime API) to .WAV audio file ( need LINER - encoding format).
    Here I dont know the encoding format of .MOV audio input file.
    regards,
    Rams

    mfrasyid1 wrote:
    I wonder why this happens? The "unable to handle.." really does come out twice. Is it because the inputfile.mov which I wanna convert comes from the merging oftwo wave files? If so, then how can I convert this into single wave file? Thank you.That is a weird message, but yes, the .mov file probably stored the 2 original WAV files as 2 tracks of data, rather than 1 track. So whenever it's trying to transcode to a WAV file, it fails to transcode both tracks.
    As for fixing it... I dunno. I know that JavaSound can mix two WAV files at the sample-level, so it actually mixes the sound instead of adding 2 tracks to a file...but I don't know why that's giving you those error messages, unless perhaps it's trying to transcode the video track into an audio track (perhaps the code isn't smart enough to handle transcoding a video file into an audio file? You'd have to check the code to see if that's the case...)

  • Cannot open .wav files from Outlook 2010 (beta)

    This file the error message i get:
    This file cannot be previewed because of an error with the following previewer:
    windows media player rich preview handler.....

    Hi,
    First, try to start Outlook in safe mode to see if it works fine.
    If it works fine in safe mode, disable the add-ins you have in  File > Options > Add-ins.
    Second, try to clear out the Outlook Temporary items.
    1. Locate the Outlook Temporary Items folder by opening the Registry and
    locating
    HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Outlook\Security\OutlookSecureTempFolder
    2. Navigate to the value of this Key. It should be something like:
    %USERPROFILE%\Local\Microsoft\Windows\Temporary Internet Files\Content.Outlook\
    3. Quit Outlook
    4. Delete the contents of the folder
    5. Launch Outlook
    Hope it helps.
    Had this same problem.  End of key was like "CK2219B0\".  Deleted this small portion, saved registry, and restarted Outlook.  .wav files executing fine now!  Musta been some kind of update glitch cause it worked up to a day or
    so back and then I had this problem.  Thanks!!!

  • Wav file in itunes

    i've got a DVD full of .wav music files that itunes won't recognise to burn into my library- how do i get them converted into itunes files and into my library?
    thanks!

    You don't need to "switch" your WAV files into another format in order for iTunes to play or otherwise handle them, as WAV is one of the directly supported formats of iTunes.
    As long as your WAV files are "normal," i.e. 44.100 kHz/16 bit/stereo, they should play with no problems. If the files were made with, for example, Audacity, and some random WAV export options, such as "floating point" were used, then they won't behave nicely in iTunes.
    Perhaps there is a problem with the approach your using to add the files to your iTunes library? There are a few ways to do this, but perhaps the easiest is to use the File > Add to Library menu.

Maybe you are looking for