afreiday/php-waveform-png — Issue #2: Adjusting the waveform rendering parameters
Author: gordyr
Created: 2012-01-03 13:27:56+00:00
State: open

First of all, happy new year!

Now on to my issue. Though this is less of an issue and more of a request for advice.

I am trying to modify the way in which the waveform renders so that it fills more of the display area, top to bottom in the same way that the 'soundcloud' rendered waveforms do. Currently there appears to be a 25% margin on both the top and the bottom, making the waveform itself too 'slim' for the purposes.

In other words I would almost like to be able to render a 'compressed' version so that the average loudness is brought up, creating a 'thicker' waveform. My guess is that this would require modification of the equation used in your script.

The visual style of waveform I am looking to create can be seen here:-

http://soundcloud.com/groups/pretty-waveforms

I have toyed with the equation somewhat but to no avail. Perhaps you have some insight as to how I might go about achieving this?

Many thanks!