Display Sound  waves

Hi
I want to display sound wave files on screen like in ECG(Time series) format.
Rahul

Dear Seniors,
i tried to display my sound.wav file in wave format
(wave graph with time in xaxis and frequency in y axix)
i have tried like this. and can get the byte stream as follows.
File file = new File("e:\\munas\\sounds\\myfile1.wav");
System.out.println("File : " + file.exists());
AudioInputStream stream = AudioSystem.getAudioInputStream(file);
AudioFormat format = stream.getFormat();
stream = AudioSystem.getAudioInputStream(format, stream);
// Create line
SourceDataLine.Info info = new DataLine.Info(
SourceDataLine.class, stream.getFormat(),
((int)stream.getFrameLength()*format.getFrameSize()));
SourceDataLine line = (SourceDataLine) AudioSystem.getLine(info);
line.open(stream.getFormat());
line.start();
// Continuously read and play chunks of audio
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);
System.out.println("out.length " + buf.length);
for(int ii = 0 ; ii < buf.length ; ii+=10 ) {
// here i am getting the byte value from the Audio Stream.
System.out.println("buf["+ii+"] : " + buf[ii]);
// using this value i planned to draw the desired graph(time Vs data)
am i right in getting the right stream value for my graph??
if wrong, how to get the data to be presented as i like in graph format??
valuable tips and suggesstions will be appreciated much.
ur junior,
-Munas.

Similar Messages

  • Sound wave not displaying (Flatline)

    Hi all,
    I am having problems generating a visual sound wave when creating a track.  I am able to produce actual sound and create a sound track, but the display shows a continuous flat line (for my guitar).  Im not creating lengthy tracks so it doesnt seem to be a CPU issue.  Anybody have advice on this?  Thanks much.

    Ha! That sounds like it could be it. You know, there's always this pause after you drag something in for GB to digest it and process the wave graph. It does take some CPU elbow grease for GB to crunch through this, so maybe it's just exceeding some limit?
    Here's one suggestion then: cut the sound file into pieces without moving them. Position the playback line at a certain point, and hit Command T. This will split the file at that point. Do this a few times to chop the thing into bite size pieces. Maybe that'll work.
    If that doesn't work, you could then try moving each of the pieces onto a new track, making sure to align them. Moving the pieces onto a new track might force GB to draw the wave, and with the now bite-sized regions.
    Come to think of it, I think I've encountered this non-wave bug too.
    I didn't really need the waves at the time so my approach was to just ignore the problem and pretend like it didn't exist, and then, it didn't. I guess after I encountered this I moved on to the next song which was OK! So, out of sight out of mind. That may not be the best advice, so hopefully the other thought about chopping these up will help!

  • Sound Wave in Track Editor is Low-Res, Won't Redraw Hi-Res

    I'm using GarageBand on a new computer, and when I record a real instrument, the sound wave in the the Track Editor isn't upgraded from the low-res version displayed during recording to the much more detailed hi-res version that makes it possible to distinguish individual notes. What do I need to change?

    To clarify what you expect to see, are you looking for it to turn into actual music notation?

  • 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...

  • HT204291 Using Azul media player app on my ipad  Apple tv will only display sound but not video from movies.  Any ideas on a fix.  I set mirroring to on but it still does not display video.  It will display photos and video recorded from my iphone.

    Using Azul media player app on my ipad  Apple tv will only display sound but not video from movies.  Any ideas on a fix.  I set mirroring to on but it still does not display video.  It will display photos and video recorded from my iphone.

    Here are the steps for AirPlay:
    Before starting Azul from your (running iOS 5.x/6.x) home screen where have have all your apps we need to turn on mirroring
    On your iPhone 4S/5 or iPad 2 or 3, double-click the Home  Button to view your recently-used apps.
    Swipe all the way to the right to until you see the  icon.
    Note: If the icon does not appear, go to the "If AirPlay Mirroring is not visible or available on your mobile iOS device" section.
    Tap the  icon to see the list of available AirPlay devices.
    Enable AirPlay Mirroring in this menu by tapping on an available Apple TV, then sliding the Mirroring slider to ON.
    Now you should be seeing your iPad/iPhone on your TV.
    Start up Azul now and using the settings icon on the top right corner go to the option that say "TV out" ON.
    When you do that you will see an Orange screen
    Now click "Done" and play the video you want to watch and it will AirPlay

  • Sound waves in FCP

    Hi there,
    I am sort of stuck...
    When I opened my project today, I realized that I don't see the sound waves any more in the viewer, even after double click on the sound tracks....
    Can someone tell me what I did wrong to "hide" them ?
    Also, when I double click I get vertical bars at each locations, instead of only one at the place at want to work...
    Thanks in advance.
    Ivan

    To make this option stick for future projects, go to USER PREFERENCES and select the TIMELINE OPTIONS TAB and check SHOW AUDIO WAVEFORMS.
    rh

  • I have an iPhone 5, which I need to connect to my Bose sound wave system. What leads to I need

    I have an iPhone 5, which I need to connect to my Bose sound wave system. What leads to I need for me to use my iPhone to listen to my music

    Did anyone ever find an answer to Hugh's question?
    I'm just now facing the how-to-connect-iPhone5 (s) to the Wave. Bose will most likely sell me an expensive connector kit, but has anyone found a way to DIY? The Bose guy did say the 5 will not work with the Bose Wave stereo I've got.

  • Can I display Hex wave in Labview?

    Can I display Hex wave in Labview(not only Binary wave)? Is there any
    way to do that? If I can show you the hex wave graph , you will know
    what I mean more clearly. But I can't put it here. Hope you all know.

    > If I can post an image , things would be better to understand.
    > I don't mean to display digitals in Hex ways but to display it in a
    > special way but usually used in the timing analysis of digital signal.
    > some like the following graph.
    > __________________ ________ _____________ ________________________
    > _______
    > \/ \/ \/
    > \/
    > ___9F_____________/\___8A___/\_____12______/\________5C______________/\___6D__
    >
    You don't say what version you are using, but I believe that starting
    with LV6.0 there is a graph in the palette called the digital graph. It
    can show group lines/busses and the value of the bus can be shown in
    various numeric formats including hex.
    Greg McKaskl
    e

  • HOW TO MAKE AUDIO SHOW THE SOUND WAVES?

    I was wondering if it was possible to show the sound waves on the audio track, whenever I plug in audio I cant seem to figure out how to make it show like it does in other programs such as Adobe Premiere? Thanks!

    Option-Command-W, if you're the keyboard type
    Otherwise, there's button right by the track height selector buttons, at the bottom left of the Timeline.

  • How come I can't see the sound wave in the tracks?

    I just got an iMac, and am brand new to this, but I'm stuck here. The tracks are rectangular blocks of sound and I can't get them so they will be sound waves. I feel like I've clicked on every possible option. Any help?

    remy trahant wrote:
    The tracks
    regions (tracks contain regions)
    are rectangular blocks of sound
    MIDI loops (green) are not sounds, so there is no waveform, they are merely instructions for a synth. audio loops (blue) will show the waveform.
    and I can't get them so they will be sound waves.
    if you option drag a MIDI loop from the browser into the timeline, it's pre-rendered audio sample will be used instead and you will see a sound wave.

  • Problem with creating a sound wave

    I ned a sound wave to finish my site, needs to look like this: http://www.ipastgroup.com/SoundWaveGreen.jpg
    I need it PNG clear background at size 600x100 and 600x50   i would be so greatful if someone could whip me one up ?

    What do you mean by 600x100 AND 600x50? What do ou want one made smaller only on the vertical axis too?
    Also, what colour fuzz around the lines? green stil? but with a transparent background?
    EDIT:
    With green, size = 600px X 100px
    http://i151.photobucket.com/albums/s133/rickyt_album/imgadobeforum.png
    (Creation Method): Draw a few straight hard lines on seperate layers, liquify each one indervidually, then merge them all, and put an outer glow on it. Deleted background layer for transparency.

  • Creating a Video of Sound Waves

    I am making a video for a soul band but due to a lack of footage I want to create a video of pulsating sound waves in time to the audio. I have done a quick search of the forums but cant find anything that helps.
    It's not going to be full screen just in a small box with a white border and the video is going to be compressed to stream on the bands website: www.otbsoul.com
    Does anyone know of the best means of creating this??? I dont mind using a different program other than Final Cut to create an AVI of the sound waves then importing into Final Cut. I would even pay a little bit of money for it.
    Any advice greatly appreciated.

    Noise Industries FxFactory is a freely available plugin framework for third party effects, download and install it and you can use any free or commercial plugins that use that framework
    Core Melt's Veeyoo plugins use the FxFactory framework (and are free). They do kind of what you want ... maybe even more than you want.

  • Slowness of seeing sound wave

    I edit webcasts on GB. when i load in a new section of recording to edit it takes a very long time for the sound wave to appear. Sometimes it will appear on one track and i have to wait a long time for the second track to appear.
    I have checked and i have plenty of memory available.
    Anyone have a solution or suggestion?
    I can not edit without the sound wave.

    srdad1942,
    You question would garner a swifter response, I believe, if it were posted in this forum. I wish I knew as much about GB as you seem to!
    -Mark

  • Slowness in viewing sound wave

    I edit webcasts on GB. when i load in a new section of recording to edit it takes a very long time for the sound wave to appear. Sometimes it will appear on one track and i have to wait a long time for the second track to appear.
    I have checked and i have plenty of memory available.
    Anyone have a solution or suggestion?
    I can not edit without the sound wave.

    Hi,
    Use Disk Utility to repair your system permissions (/Applications/Utilities);
    Then, trash your GarageBand Preference files (don't worry, it will replace them; you can reset any prefs to what they were in the app)
    Search for the two files:
    com.apple.garageband.cs -and-
    com.apple.garageband.plist
    and discard them.
    (Normally, they are in /Library/Preferences/ or in user/Library/Preferences/
    but do a search to make sure you get all the copies.)
    WH

  • How to lip sync and see the sound wave better?

    Alright, so first of all I will thank you for clicking this post!
    There's 2 questions/problems, so if you got the solution on both/one of them, PLEASE post!
    So I'm working on an animation where some guys sings and in order to make that look good, i need some good lip syncing.
    Since this is not short clips, but a whole song on 2-3 minutes, it's very hard for me to make the lip sync perfect because I have to replay from the beginning in order to hear the music.
    So question one is: Are there a way that I can play the movie in the middle and still hear the music?
    And so the second question is that I can barely see the sound waves in the Music layer, even though there's lots of music.
    Here's a picture of how big the sound waves are:
    And that's in the middle of the song!
    The problem is not that the music is too low, because it's quite high.
    So question number two is: Are there a way that I can make the soundwaves bigger in the music layer without affecting the music itself?
    Feel free to post even if you don't have the answer, so it will stay at the top till someone knows how to fix this!
    Thanks from Mistah NovaNova

    There are several ways to make the sound file, or any layer, more prominent in the timeline. In the upper right corner of the timeline window is a contextual menu. In that menu select Large. This will make all of the layers use a larger area in the timeline window. Set the frame rate to higher rate, say 100 or 150 fps. This will stretch the audio, and all of the other content over a larger space in the timeline.
    Both of the above will make the audio track easier to see. Add a layer to the timeline and place key frames at points where you need. These will aid you in managing the audio.
    I usually cut up the audio file into smaller chunks and place these end to end in the timeline, usually in different layers. The net effect on playback is that the sound plays as expected. On the timeline, I get a short chunk of content to work with. You cannot expect to maintain sync over any extended period of time in Flash, or any application like it. Keep the extent of any given synched section short and run them end to end. The audio and the visual portions of Flash are compiled separately and will be played back separately.

Maybe you are looking for