[SATLUG] Re: Display wave form in web page
Nathan Anderson
nanderso at rackspace.com
Thu Apr 15 10:20:28 CDT 2004
On Wed, 2004-04-14 at 16:32, Robert Collazo wrote:
> Steven,
>
> Thanks. I know I do have GD compiled into PHP. I've just never used it to
> create a waveform from a wave or mp3. Any help would be appreciated..
>
> Thanks,
> Robert
When I want to make nice graphs in PHP, I have found that JpGraph
(http://www.aditus.nu/jpgraph/) does an awesome job. It's just a series
of PHP libraries that use GD internally to produce really powerful
graphs of just about any type you'd ever need.
Basically you'd read in all the waveform data, parse it into a PHP
array, load up an appropriate JpGraph object (like a line graph),
prepare the object (setup indexes, scaling, borders, tick marks, colors,
dimensions, image type, caching etc) pass it the data and tell it to
build.
Many Open Source PHP apps use JpGraph instead of trying to reinvent the
wheel.
-Nathan Anderson
More information about the Satlug
mailing list