PHP Classes

WavForge: Generates audio data files in the WAV format

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Info   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2009-04-13 (6 years ago) RSS 2.0 feedStarStarStar 54%Total: 1,857 All time: 2,031 This week: 1,151Up
Version License PHP version Categories  
wavforge 0.3.0BSD License5.0Audio
Description Author  

This class is capable of generating uncompressed audio PCM files in the WAV format.

The class allows to configure the output sample number of channel, the number of samples per second and the sample rate.

Currently it can generate sine waveforms, sawtooth waveforms, and noise.

Innovation Award  
PHP Programming Innovation award nominee
October 2004
Number 3

Prize: One downloadable copy of Komodo Pro
Many sites that use sound integrated in its content usually serve it in the form of previously generated samples or as part of video animations.

However, special types of applications can make use programmatically generated sounds, like for instance, generate tune samples from ring tone musical scores.

This class provides basic means to programmatically generate audio samples in the WAV format with tones defined by dynamic scripts. This may open a world of applications based on synthesized sounds.

Manuel Lemos
Picture of sk89q
Name: sk89q <contact>
Classes: 8 packages by
Country: United States United States
Age: 27
All time rank: 22725 in United States United States
Week rank: 333 Down45 in United States United States Down
Innovation award
Innovation award
Nominee: 5x

Copyright (c) sk89q <>


* PHP 5.0 or later


WavForge is a proof-of-concept class that generates some waveforms and
outputs PCM WAV files. It's also a bit slow, but this is only a proof
of concept demo.

The original version was written in 2004, but WavForge was updated in
2009 with a few more features, PHP 5 support, and cleaner code. However,
the interface has changed significantly.
  Files folder image Files  
File Role Description
Files folder imageexamples (1 file)
Plain text file CHANGELOG.txt Doc. Changelog
Accessible without login Plain text file LICENSE.txt Lic. License
Accessible without login Plain text file README.txt Doc. Readme
Plain text file WavForge.php Class The class

  Files folder image Files  /  examples  
File Role Description
  Accessible without login Plain text file tone.php Example An example

 Version Control Unique User Downloads Download Rankings  
 0%Total:1,857All time:2,031
 This week:0This week:1,151Up
 User Ratings  
 All time