PHP Classes

WavForge: Generates audio data files in the WAV format

Recommend this page to a friend!
  Info   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 54%Total: 1,925 All time: 2,049 This week: 66Up
Version License PHP version Categories
wavforge 0.3.0BSD License5.0Audio


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: 35
All time rank: 22426 in United States United States
Week rank: 307 Down35 in United States United States Down
Innovation award
Innovation award
Nominee: 5x


WavForge Copyright (c) sk89q <> Requirements ------------ * PHP 5.0 or later Introduction ------------ 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  
This week:0
All time:2,049
This week:66Up
 User Ratings  
 All time