Erick I had a look at this site and tried to incorporate it in my project... I tried to increase the sample ranges but this changed the look of the waveform, i.e it just draws a coloured rectangle. Then i revert back to my original example i have posted to you. The code i used seem to work well with AIFF files, but not with *.mp3 and .*wav files...another side effect is that the files with a time duration of +/- 1 min loads forever; some taking as long as minute to load and drawn as a waveform. Pleasse help me...
PS: I wonder if it is possible to e-mail my project to you for review... Thanks PeterLG ----- Original Message ----- From: "E. Tejkowski" <[EMAIL PROTECTED]> To: "REALbasic NUG" <[email protected]> Sent: Sunday, August 13, 2006 1:40 AM Subject: Re: How to dsiplay a waveform in a canvas control > On Aug 12, 2006, at 4:15 AM, Ayden wrote: > > > Eric Thanks for the reply and the crash course in wave dynamics. > > You have > > written some interresting information that has confused me a > > little...i.e > > the 16 bit WAV ... > > Look at these two sites to see how AIFF stores samples versus how > WAVE does it: > > http://www.borg.com/~jglatt/tech/aiff.htm > > http://www.borg.com/~jglatt/tech/wave.htm > > About the link someone posted earlier: > > http://realbasic.thezaz.com/Athenaeum/View.php?entry=36 > > That example uses QuickTime to extract data from a sound track and > packs it up into an 8 bit memoryblock. Then you can iterate through > that memblock to draw the wave. 8 bit is often sufficient for many > waveform drawing tasks. Mind you, the audio won't play back at 8 bit > necessarily. It's just a useflul trick to extract the data you need > and present it to you in a nice neat package for drawing. It also has > the benefit of working with a variety of sound formats (AIFF, WAV, > MOV, MP3, MP4, AU, etc) without you having to parse anything. The > downside for Linux (and possibly for Window's users) is that it > requires a QuickTime installation. The AIFF and WAVE links are for > doing the parsing of files yourself. The benefit is it that will work > on all platforms, but it requires more work. > _______________________________________________ > Unsubscribe or switch delivery mode: > <http://www.realsoftware.com/support/listmanager/> > > Search the archives of this list here: > <http://support.realsoftware.com/listarchives/lists.html> > > _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives of this list here: <http://support.realsoftware.com/listarchives/lists.html>
