An interesting way to create a low frequency random signal:
Code: Select all
(lp (force-srate *sound-srate* (force-srate 4 (noise))) 2)Code: Select all
(lp (force-srate *sound-srate* (force-srate 4 (noise))) 2)Code: Select all
(setf control-noise (sum 0.5 (mult 0.5
(snd-white 0 10 (get-duration 1)))))
(vector (mult (aref s 0) control-noise)
(mult (aref s 1) (diff 1 control-noise)))Absolutely.Robert J. H. wrote:The thing I want to avoid the most, is that I do not have to normalize the noise after cration
Code: Select all
(setq freq 4.0)
(mult 2.0 (lp (force-srate *sound-srate* (force-srate freq (clip (noise) 0.5))) (/ freq 2.0)))Code: Select all
(let ((freq 4.0)
(sr *sound-srate*)
(clip-noise (clip (noise) 0.5)))
(clip
(mult 2.0
(lp (force-srate sr (force-srate freq clip-noise))
(/ freq 2.0)))
1.0))
If you don't need it to be truly "random" then you could create a fairly short random control signal and repeat it. If the control signal is more than a few seconds duration then unless there are any particularly distinctive moments it will still sound random even when repeated.Robert J. H. wrote:There's also the possibility to use "FMLFO" to produce a varying frequency. There's a lot that can be done.
Good catch.Robert J. H. wrote:removed duration after "noise". This was the main reason for the crashes, because the noise was 'duration (sound)^2' long,
I see why you have done this and I think that this change is "correct", but the desirability of this change depends on the way that the effect is used, so for anyone that is familiar with the current version it may not be a welcome change.Robert J. H. wrote:correct mono-conversion (-6 dB)
Thanks - that's fixed the problem and has now been applied.Robert J. H. wrote:removed duration after "noise".
I like user input checking. You can bet that if it is possible to enter invalid input, then someone willRobert J. H. wrote:Some input correction
Code: Select all
;control variable-name "text-left" variable-type "text-right" initial-value minimum maximum (&optional limit)Again, probably not a bad idea, but a divergence from the original version so I've not applied to David's plug-in. If I was choosing then I'd probably set the default to 1.0.Robert J. H. wrote:New default values
Nice enhancement.Robert J. H. wrote:Stereo width offset in order to preserve the full gain for narrow signals
The code could be simplified and memory usage reduced further still. I'll start a new post as this one is already long.Robert J. H. wrote:Simpler code layout, some minor bugs removed.