Panning plug-ins

Here is the corrected plug-in "panning (random)"by David R. Sky.

What I’ve changed so far:

  • correct mono-conversion (-6 dB)
  • removed duration after “noise”. This was the main reason for the crashes, because the noise was ‘duration (sound)^2’ long, e.g. 2 min of sound produced 240 min of noise.
  • Some input correction
  • New default values
  • Stereo width offset in order to preserve the full gain for narrow signals
  • Simpler code layout, some minor bugs removed.

The code is not especially speed/resource improved. I’ve tested it with 30 min of a sweep sound without a crash - it still depends on how much memory you have.
The weak point is still to get the highest peak of the random noise. The peak function can’t be shortened because the highest peak could appear at the very end. I preserve further improvements for the bundled panning plug-in. However, suggestions are stil appreciated.
panrand.ny (1.33 KB)