René Nyffenegger's collection of things on the web
René Nyffenegger on Oracle - Most wanted - Feedback -

sandpaper (Csound opcode)

ar      sandpaper  iamp, idettack[, knum, kdamp, kmaxshake]
iamp: Amplitude of output. Note: As these instruments are stochastic, this is only a approximation.
idettack: period of time over which all sound is stopped
knum: The number of beads, teeth, bells, timbrels, etc. If, zero the default value is 128.
kdamp: The damping factor of the instrument. The value is used as an adjustment around the defaults, with 1 being no damping. If zero, the default values are used. The default is: 0.9990.
i1  0  0.4  30000
sr = 44100
kr = 44100
nchnls = 1

instr 1
  ilen = p3
  iamp = p4
  asig  sandpaper iamp, ilen

  out asig 
The output of the given .orc and .sco files will look like this:

Related opcodes