How to display audio (wav) files as a graph?

Hi,
I am building a Java Swing application that will play wav audio files and have a requirement to also DISPLAY the waveform as a graph (amplitude vs time).
I have been using some basic java sound methods to play the audio but was hoping that there might be some code out there to also DISPLAY the waveform.
Capability to zoom in and out would be nice also, but any help to simply display a wav file would be great. If it makes any difference the wav files are encoded PCM at 8,16, and 32 kHz sample rates.
I am a novice java programmer (but learning fast)....
Thanks. Bill

A quick search of Yahoo resulted in the following:
[http://sonify.psych.gatech.edu/research/auditorygraphs/index.php]
You might try playing with that...

Similar Messages

  • How to display audio wave graph in swing?

    Hi all,
    I m creating a swing application for processing audio file.
    In that application, i want to display audio in wave format.
    my requirements are
    *1. It should support all common audio file formats.*
    *2. zooming (scaling) of graph with respect to time should be possible*
    Please help me in doing this.
    Can anyone suggest any api for that?(if it is better to use some api)
    thanks in advance.

    please i desperately need the applet
    can u plz help me out atleast regardin the development
    Thomas Dominic
    [email protected]

  • How do I transfer audio wave files to individual garage band tracks?

    How can I transfer audio wave files recorded in a studio to individual Garage Band tracks? Three tracks in all.

    Mick Parrott wrote:
    How can I transfer audio wave files recorded in a studio to individual Garage Band tracks?
    if the files are in one of GB's supported formats:
    http://www.bulletsandbones.com/GB/GBFAQ.html#importformats
    (Let the page FULLY load. The link to your answer is at the top of your screen)
    simply drag and drop the files into the GB timeline

  • Compare two audio wave files

    Could some one help me on how to compare two wave file for
    similarities also can i provide a facility to record a audio at run
    time and compare with the one that i already have.

    the criteria is when the wave line is tha same, I think this is the best form to compare the content of a wave. Maybe with a range for the error question in the timeline.

  • How to display a pdf file in jsp

    hi,
    How to display a pdf file in jsp iam having a class which will return fileinputstream of the file object. the pdf file is in server.
    regards
    Arul

    A JSP is a combo of HTML and Java, so you can't really "display" a PDF file in a JSP.
    You can provider a href link to the PDF file in your JSP.
    You can use some utility package to read the contents of the PDF, pull certain things out of it, and display that in your JSP as html
    In a servlet you can set the content type to application/pdf and write the binary data of the PDF back to the browser. Once the browser finishes reading in the data it should open the PDF.

  • How to play a wave file through the DAQ board?

    Hi there,
    we want to play a wave file that is saved on the harddrive via the DAQ board. Means we want to connect a amp to the analog output of the DAQ to amplify the sound and play it through a speaker.
    We couldn't find any VI that does that. Can anybody tell us how to play a wave file, or perhaps even send us a VI that can do that?
    Thanks a lot for your help
    Martin - Physical Optics Corporation

    Hi Martin,
    The only example that I could find on how to do this was using our
    older Traditional DAQ drivers version 6.9.3.  If you're using Traditional
    DAQ drivers, the vi can be found here. 
    The example reads a 8-bit mono .wav file (an example .wav file is included in the .zip file) and writes it to the analog out of your DAQ card.  I've updated the
    example to work with our newer DAQmx drivers and attached it here.  
    I hope this helps,
    Paul C.
    Message Edited by Paul C. on 08-14-2007 05:47 PM
    Attachments:
    daqmx_wav_file_to_ao_output.zip ‏27 KB

  • Need help with audio wav file in multicam clip

    I created a multicam clip with 3 cameras with crappy, far away, room audio and 1 stereo audio wav file with 2 lavaliere mics of "good Audio" 1 lav left & 1 lav right. on one channel there is a lot of distortion from shirt ruffle etc.... but only at times. I would like to ride the mix and use sections of "good" audio and get rid of sections of "Bad" audio from the one channel. but, I cant figure it out. anyone??? I'm hoping Apple updates this issue soon with great audio support with "simultaneos multicam audio switching!!!" Please, Please Apple...

    You can do what you need right now, no need for Apple to do anything, they've already don it. Check this out.
    http://www.macprovideo.com/hub/final-cut/final-cut-pro-multiclip-audio-channel-e diting-1006

  • How to display audio file as a graph?

    Hi all,
    I m creating a swing application for processing audio file.
    In that application, i want to display audio in wave format.
    my requirements are
    *1. It should support all common audio file formats.*
    *2. zooming (scaling) of graph with respect to time should be possible*
    Please help me in doing this.
    Can anyone suggest any api for that?(if it is better to use some api)
    thanks in advance.

    scphan wrote:
    captfoss wrote:
    No one solved it. JavaSound doesn't support MP3 files...
    JavaZoom's API does: [http://www.javazoom.net/projects.html]
    3rd party libraries and plugins do lots of stuff, sure. But this is a JavaSound forum, after all...
    For mp3 files, audioInputStream.getFrameLength() is -1.(this code requires that for creating graph).
    So how to solve this?The existence of JavaZoom doesn't change the fact that "no one solved it", because JavaSound doesn't support MP3 files... So JavaZoom isn't going to change the results of audioInputStream.getFrameLength() for an MP3 file.
    So, in conclusion... If you want to play an MP3 file, JavaZoom will do that. But if you want to +"solve it"+ then you're still SOL ;-)

  • How to Load a wav file into a JFrame

    Ok, I have a JFrame with a JPanel and JButtons, play, pause, stop....etc...I have a menu with items load song and exit. Now when you click file load song, it pops up a JFileChooser.....that all works fine. Now I want to be able to select a wav file from that file chooser and have it load into the JFrame, displaying the name of the song in the JPanel...as a JLabel or whatever. Also how can I make the buttons, play pause stop, etc. work with the song. I.E. when i press play, the song plays, stop the song stops...any ideas?

    Create a JLabel with the filename as its text. Add the JLabel onto your JPanel. Add the JPanel
    onto the JFrame. Call setVisible(true) on the JFrame. For Java GUI basics, study:
    http://java.sun.com/docs/books/tutorial/uiswing/index.html
    For wav file playing:
    String filename = "foo.wav";
    java.applet.AudioClip clip
    = java.applet.Applet.newAudioClip(new File(filename).toURI().toURL());
    clip.play();

  • How to open a "wav" file in Logic 7.2.1 and then remaster?

    A fellow musician wants to see if I can improve audio tracks his band recorded in Cubase SX. He has a CD with the WAV files of each of 12 audio tracks. First question - Could someone tell me how to open his files and then import them into Logic Pro so that his tracks 1-12 correspond to my audio tracks 1-12 and be in sync?
    Second question - assuming I can get his tracks going what are the key ways to boost volume or "master" his tracks so that the end result, a stereo mix, is loud vibrant and "radio ready"?
    I'm familiar with the mastering plug ins on the output channels of Logic. I've used "Soft Maximizer" but it seems to be compression related. Are these "rooms", available on the output channels, the only way to increase volume and aliveness?
    He's doing this because the studio he's at can't seem to make a mix that he's happy with. He says the mixes lack volume and vibrancy. Thanks in advance.

    Use the Audio Editor window to import the tracks. Then drag them one at a time onto Audio tracks in the Arrange window so they all align to Bar 1 1 1 1.
    The fun will start if they were not recorded simultaneously as you will need to align them manually to be in sync. Good luck with that it takes time but is not impossible. Use the moveable start point in the Audio Editor to adjust the start of each wav file until they are aligned.
    To improve the levels, probably the quickest way is to Normalize each track first in the Audio Editor window before you start mixing and EQ'ing them in Arrange.
    Rik

  • How do I compress Wav files

    Hi, I have some sound files that I want to be able to email to people, but I can't because the files are too big. Is there a way to compress these files(wav)?

    You may refer to the following there method to compress WAV files
    Method 1: Compress WAV to other audio format
    Compress WAV to lossless compression audio format without losing audio quality like compress WAV to FLAC, compress WAV to Apple Lossless ALAC M4A
    Compress WAV to lossy audio format like compress WAV to MP3, compress WAV to WMA, AAC, RA and etc.
    Method 2: Lower WAV bit rate
    With this method, we can easily reduce WAV file size without changing WAV audio format.
    The lower the bit rate, the smaller the WAV file size, the lower quality of the WAV audio.
    In most cases, WAV audio quality shows little difference between 128kbps and higher bitrates. WAV quality will become crappier if the bit rate is less than 128kbps.
    Method 3: Compress WAV to other audio format as well as lower bit rate
    The third way to compress a WAV file size is that we simultaneously apply Method 1 as well as Method 2.
    Resources: How to Compress WAV File Size without Losing Quality on Windows or Mac?

  • How to import a .wav file for adding to a clip in imovie 09

    I want to know how can we import a .wav file in Imovie 09.
    The sound is in some location on my 2nd hard disc.
    I checked this page
    http://www.dummies.com/how-to/content/how-to-import-audio-into-imovie-09-project s.navId-323836.html
    but this does not help my requirement.
    I have a video in which there was a lot of hiss recorded via camera I exported the audio and using some audio filtering softwares cleaned the sound and now I want to import this clean sound back to my imoive project.
    It is a .wav file which is clean and without hiss.

    I see.By the time I saw your msg I had done the same and opened Itunes to play.
    There was an option in Imovie to import Itunes playlist or file and was able to do so.
    Any one will guess as in File some import menu
    should exist for this.In this case it was not that.
    mp3 clip needs to be played in Itunes
    where Itunes will make it a part of the mp3 library it has.
    Then Imovie 09 has a way to import the shared playlist from itunes.

  • How to read a .wav file from a .jar  - Please Help!!!

    Hello,
    I know this is a stupid question but I keep having trouble doing this. My code is the following:
        Display display;
        Alert alert;
        InputStream stream;
        Player player;
    stream = getClass().getResourceAsStream("newalert.wav");
                player = Manager.createPlayer(stream, "audio/wav");
                player.prefetch();
                player.start();
    ...I'm running this Midlet on a Motorola A1000 and I keep getting the following exception:
    java.lang.IllegalArgumentException:
    stream is null
    I've created the .jad package using KToolBar of the J2ME WTK2.2 with the appropriate .wav file on res folder.
    What I'm doing wrong?
    Thanks,
    Paulo

    Hi
    If your stream is null, then the wav file cannot be reached. Try this code:
    stream = getClass().getResourceAsStream("/newalert.wav");If this doesn't work either, make sure your wav file is directly in the res directory and not in another subdirectory of it. I suggets not running your application directly from the phone until it works from the WTK emulator.
    Mihai

  • 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 to create a .wav file in visual basic?

    I'm having the audio sample data(scaled data) in an array created by the CWAI_AcquiredData event. How do i convert this to a .wav file so that i can play back the audio data i acquired.
    Can any one help me out ????????

    Hello
    You should probably check out the MSDN for examples on how to do this.
    I think the Speech 5.1 SDK probably has some function that would help you out.
    Hope this help
    Bilal Durrani
    NI
    Bilal Durrani
    NI

Maybe you are looking for

  • How to flush the loaded bytes of a Sound object

    Hi all, I've now been looking for a solution to my problem for quite a while now, but so far without any success, so I thought I'll give this forum a try.. maybe someone in here can help ;-) Ok here's the deal: I'm trying to create a simple audio pla

  • Help on Scenarios?

    Hi friends We cannot create PR in extended Classic Scenario then how this flow is followed In Extended Classic Scenario for Indirect material(Service Procurement) Process Flow Requisition-Approval-Ordering-Service Entry Sheet-Invoice handling-Payment

  • Smartform Underline Problem

    Dear all: I try to print a line with underline, but the space between words are not underline. Te space is "underlined" during preview, but not when sending to printer. The printer model is Ricoh Aficio CL 4000DN PCL6. Thanks. PS: I already try both

  • OLAP Intelligence with Analysis Service Provider 9.0

    Hi, I wanted to ask how to connect the OLAP Intelligence with the cube that i created in MS SQL Analysis 2005?? I can only see Analysis Service Provider 8.0 in the source selection but none for 9.0 which is required to connect to the MS SQL Server 20

  • Photoshop CS3 to PhotoshopCS3 Extended

    I'm going to buy the Extended version of Photoshop CS3 but wonder if I can install it over Photoshop CS3 or will I need to uninstall/deactivate CS3 then reinstall with the new CS3 Extended license#? TIA Don, Toronto