Preparing...
KEITA MIYANO
iPhoneの方はマナーモードを解除すると音が出ます
For iPhone users, the sound will come out when the silent mode is deactivated.
SynthDef("rain", {
  arg amp=1;
  var sig, out=0;
  sig = { TRand.ar(-1, 1, Dust.ar(25000)) };
  sig = BPF.ar(sig, 100, 0.5);
  sig = HPF.ar(sig, 6000);
  sig = LPF.ar(sig, 5000);
  sig = sig*10*amp;
  sig = sig ! 2;
  Out.ar(out, sig);
}, [5]).add;

r = Synth("rain", ["amp", 0]);
r.set("amp", 0);
f = {arg value, fromMin, fromMax, toMin, toMax;((value - fromMin) * (toMax - toMin) / (fromMax - fromMin)) + toMin;};
Routine({
  loop {
    var rand = rrand(0.0, 1.0);
    var sustain = f.value(rand, 0, 1, 0.008, 0.07) * 1.1;
    var freq = f.value(sqrt(rand), 0, 1, 391.995*16, 311.127*1.6);
    var accelerate = f.value(rand, 0, 1, 2, 5);
    var pan = f.value(rrand(0.0, 1.0), 0, 1, -1, 1);
    var amp = f.value(rand*rand, 0, 1, 0.06, 1);
    amp = amp * f.value(rrand(0.0, 1.0)*rrand(0.0, 1.0), 0, 1, 0, 1);
    // Synth("simpleSineWave", ["amp", amp*0.1, "freq", freq, "sustain", sustain, "pan", pan, "accelerate", accelerate, "lpf", 5000]);
    0.415.yield;
  }
}).play;
Uncork