This simple circuit makes usage of this ramping signal generator:
http://everycircuit.com/circuit/4735544197382144
I've used the same ramping signal generator irl for my 250w class d amplifier.
Enjoy.
PS: this is just a show up of the principle of operation, the amplifier irl is a bit more complex.