distort
  1. distortion
  2. volume
  3. type

Wave shaping distortion. CAUTION: it can get loud. Second option in optional array syntax (ex: ".9:.5") applies a postgain to the output. Third option sets the waveshaping type. Most useful values are usually between 0 and 10 (depending on source gain). If you are feeling adventurous, you can turn it up to 11 and beyond ;)

s("bd sd [~ bd] sd,hh*8").distort("<0 2 3 10:.5>")
note("d1!8").s("sine").penv(36).pdecay(.12).decay(.23).distort("8:.4")
s("bd:4*4").bank("tr808").distort("3:0.5:diode")

aliases: dist()

parametertype
distortion
amount of distortion to apply
volume
linear postgain of the distortion
type
type of distortion to apply