wonderfl - build flash online

somewhat reusable basic bmp audio wave graph

I figured I would just give an example of how to reuse my previous code by simply extending the bitmap class. It would obviously need some work before someone would use this in a real project, but it should give you an idea of how things can be done.

As usual, although this was meant to be easy to read, this was hacked up pretty quickly; thus, if you have questions just ask.

BTW... I have seen this work on older systems, but as this draws each graph from the data given, rather than just drawing one graph, and duplicating the bitmap data to get the same effect (which would be a great deal faster but not the example of reusable code I wanted to provide), I don't guarantee decent performance, and I advise that you be sure that your machine can handle the hit before running the swf.

NME NME

add to favorites

Embed

Code Fullscreen

Talk

you add character in this 

you add character in this 

Did you mean to ask, can I make characters appear in the wave? If so, than yes, you can, sort of; however, since this a time domain based graph, the results won't be as nice as those you can get from a spectrogram.  You could really only get okay results for letters like  I, J,L,M,N,T,U,V,W, and even letters like Y or H if you change the type of display and centre the pulse heights.

You just need to make signal samples (audio samples in this case) where the pulse heights match heights based on the shape of the letters or symbols you want.  You just need to make a tool to do that, and keep in mind the graph's maximum N (the graphs width in this case).  I also wanted to mention, that there are actually some interesting effects you can get, if you take phase shifting into account too.   Like letters moving.

If you get a project working, I'd like to see it

  • by NME
  • at 2012/11/03 22:49:25

Favorite by

Tags

sectKeywords

Forked

ページの先頭へ戻る