Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Waveform



Hi

I have written a script in PHP to remove 20 seconds of an mp3 track. What i want to do is use flash to show the waveform of the mp3 so the user can select the exact time to take the 20 seconds from... any ideas on how to show the waveform?



FlashKit > Flash Help > Flash Newbies
Posted on: 07-05-2007, 02:50 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Generating A Waveform?
i am wondering if it is possible to generate some kind of waveform (looping alg.?) that could control the speed (pulse-width?) of text or an object be flashed on the screen. a strobe effect.

basically, i want to control the rate at which the object is flashed, and the amount of time (in between flashes) it is displayed. can some of you out there figure this out? i need some help with this one. hmm. thanks for ANYTHING at all! -matt

Displaying The Waveform Of A Mp3
Does anybody know how I would show the wave form of an mp3 in my flash movie?

I want to do like in the Windows Media Player “scope” visualization, where it has the waveform constantly scrolling in a window.

Thanx,
3d Nirvana

Waveform Generator (F8)
VIEW HERE | DOWNLOAD (212k rar)

(note: see additional question at the end, it was the original reason I posted)


This is a waveform generator that takes two formal sine waves, which you manipulate, and generates a new wave based on the two input waves and a selection of input functions. Note that I wouldn't call this finished, cause I have a few other ideas, and of course there's some bugs hiding around.

Be careful with the 'resolution' stepper, as it works exponentially, and will go up to 10 (about 12,000 total dots, each with their own set of calculations to perform).

I've always had the impression that some of my coding practices aren't the most efficient, so I'd appreciate any input on improving speed, effeciency, and workflow.



future ideas:
- generate a grayscale representation of the wave
- ability to add custom functions
- more input functions
- [your ideas here]

I welcome anyone to add on to this, for I'd be interested to see what else can be done. I have hardly any formal education in math, so if there's some neat functions you know of (as well known as you think they may be) that can be added to the input panel, I'd appreciate you posting them here.

Please let me know of any comments/ideas/suggestions!



question:
- Around line 160 for the progress bars, i'm using this to determine the total progress (ratio):
(_xmouse-progressBar._x)/progressBar._width

Sounds simple enough, but after much frustration and 3 missing patches of hair later, I was helped to realize that the progress bar was NOT returning the right _width value. Even when I did so manually, and also tried setSize(). No matter what I set it to, it keeps returns the wrong width. I'm assuming there's some sort of seperate Getter I should be using, but I can't find anything in the docs. Can any enlighten me on this matter?



thanks,
-dylan

Way To Make A Waveform From A Mp3
I want the ability to upload a mp3 file then from that mp3 file take like a 30 second clip of it and make a waveform out of it.


I would figure you could do something the computeSpectrum () method althogh i am unsure. What i don't want is a visualizer like you get in itunes or winamp but rather something that shows the actual waveform of an uploaded mp3 file.

Any example code on how this could be done or an example fla would greatly be appreciate?

The type of waveform i am looking for is something similar to the following (im just unsure how to go about doing it):

Displaying The Waveform Of A Mp3
Does anybody know how I would show the wave form of an mp3 in my flash movie?

I want to do like in the Windows Media Player “scope” visualization, where it has the waveform constantly scrolling in a window.

Thanx,
3d Nirvana

Waveform In Mp3 Layer
Hi, I've just started using flash 5 and I'm trying to import an mp3 to use as a soundtrack to a short animation. The mp3 imports and plays fine but I don't see the waveform in the layer bar like with other sounds effects.

Any ideas?

Thanks,

Mick

Waveform Jpegs From Mp3/wav Files?
greetings people

I am wondering if anyone knows how to make a jpeg from a sound, I know its not flash related, but I am using it in a flash movie and want to represent sounds using their actual soundwave.

you know how when you look at a sound in the library and you can see a preview of its waveform??? well, thats the sorta thing I need!

looking forward to any responses

conaill

Generating An Audio Waveform
Are there any tricks that generate a static image of an audio waveform in AS3?

The way the ComputeSpectrum method is structured, it would appear you would have to cycle through an entire audio file to generate the amplitude information that you could weave into an image (you could probably use the EchoNest API similarly) - are there any other tools that would allow this to be done more directly? Any ideas?

Many thanks -
Kyle

Seeing Waveform When Audio Plays
Hi folks
In my SWF file, I would like to see the waveform of an audio file.

I want the user to be able to select / type in the name of an audio file.
When the file is loaded, it is important for them to see the waveform - can this be done?

Creating Real-time Waveform ?
I know that using the undocumented Microphone.get() function, you can monitor input from a microphone in Flash MX, but is it possible to monitor sound playing within a Flash movie?

For instance, if I had a music track in my flash movie, could I graph the volume of that music as it plays?

It seems like this is possible, but I can’t figure out how to do it. Any ideas?


Thanks in advance!

Displaying Full Audio Waveform
Hi Guys -

I've researched the computeSpectrum method and generating the spectrum with this but I was wondering if there was a way to just graphically show the volume wave form of an mp3 track, similar to how recording software does it (or even Flash itself).

Ideally, I can't wait for the entire track to play through before generating this, so I was wondering if there was a way to generate this graphic upon loading the sound file.

Thanks for any help at all on this,
Mike

Extracting A Waveform For A Sound Clip
I am building a complex swf player and would like to include a waveform visual of a clip as it's played. Is there any way to do this in flash or use an outside editor to achieve such an effect.

Thanx for your help as I am completely stumped.

Thanx,
Clem C

Extracting And Using A Waveform For Sound Clip
I am building a complex swf player and would like to include a waveform visual of a clip as it's played. Is there any way to do this in flash or use an outside editor to achieve such an effect.

Thanx for your help as I am completely stumped.

Thanx,
Clem C

Putting Waveform Data Inside Of A Movie Clip
Hi guys,

How would you go about putting waveform data from a sound file inside of a movie clip so I can position it on the stage? I'm pretty sure this code is wrong, and I'm using the code from Lee's tutorial:

var holder:MovieClip = new MovieClip();

holder.x = 1000;
holder.y = 200;

var s:Sound = new Sound(new URLRequest("shift.mp3"));
s.play(0, 1000);

var ba:ByteArray = new ByteArray();

holder.addEventListener(Event.ENTER_FRAME, loop);

function loop(e:Event):void
{
graphics.clear();
graphics.beginFill(0x000000);
graphics.moveTo(-1, 150);
SoundMixer.computeSpectrum(ba);
for(var i:uint=0; i<256; i++)
{
var num:Number = -ba.readFloat()*200 + 150;
graphics.lineTo(i*2, num);
}
graphics.lineTo(512, 300);
graphics.lineTo(0, 300);
graphics.lineTo(-1, 150);
}


addChild(holder);

I tried creating the movieclip, positioning it, and adding it to the display list but it doesn't work. Any suggestions?

Thanks.

Alex

Copyright © 2005-08 www.BigResource.com, All rights reserved