MP3 Player with Audio Waveform

Visuals, audio, animation. Blended, not stirred. If LiveCode is part of your rich media production toolbox, this is the forum for you.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
andyh1234
Posts: 476
Joined: Mon Aug 13, 2007 4:44 pm
Contact:

MP3 Player with Audio Waveform

Post by andyh1234 » Tue Aug 14, 2007 9:28 am

Hi,

Im new to revolution, and want to write a small MP3 player, with an audio waveform.

Ive done a quick search and found the Blue Mango tools to play MP3 files, and a waveform tool, which makes me think its likely someone has also already put these together!

Before I start reinventing the wheel, does anyone know if there is a sample stack that already does this.

Thanks

Andy

Mark Smith
Posts: 179
Joined: Sat Apr 08, 2006 11:08 pm
Contact:

Post by Mark Smith » Fri Aug 17, 2007 11:48 pm

Andy, I wrote the AudioWaveform control - but I'm afraid it only works directly with uncompressed AIFF, WAV and SD2 files.

The reason is that the data in an mp3 file is not actually audio data, in the same way that a zipped text file is not actually text. So in order to build a representation of the varying amplitude of the audio (ie. a waveform) it would be necessary to decode the mp3 data into uncompressed form.

This might actually be possible (well it certainly is, since that's what mp3 players do), but it would be necessary to decode the mp3 data into a file or variable that could then be rendered.

For instance, it might be possible to use the excellent Blue Mango external to export the mp3 as a temporary WAV file, load it into the AudioWaveform control and then delete it.

I should also warn you that the AudioWaveform control is pretty slow - on song-length files it can take a while to produce a waveform of reasonable quality.

Let us know how you get on...

Best,

Mark

andyh1234
Posts: 476
Joined: Mon Aug 13, 2007 4:44 pm
Contact:

Post by andyh1234 » Sat Aug 18, 2007 12:52 am

Thanks Mark, Ill give it a go!

admin12
Posts: 412
Joined: Wed May 11, 2011 9:47 am

Re: MP3 Player with Audio Waveform

Post by admin12 » Tue May 31, 2011 1:16 am

Mark,

I know this thread is quite old, but I was wondering if that waveform display is available still. I am writing a program that will utilize 'blocks' of audio and your waveform display is PERFECT.

How can I license or use this in my app?

Mike

Post Reply