You start "PainWaveGen" to make sound files. You add more and more to make a sequence for one sound file.
You can use the PainWave generator in your scripts too. There is sample code to copy for your scripts.
But there is a issue with sound is generated and later is be overwrite. It always plays the first.
You can load other script with 'return "other_script"' and other script is only one line: 'return "your_script"'.
Thanks to Zap for the work around!
A very nice gentleman helped me write the classes. (Thank you. <3)
I still don't understand half of it.