Skip to content

brownian

the-drunk-coder edited this page Dec 31, 2019 · 1 revision

brownian - Bounded Brownian Motion

Define a bounded brownian motion on a parameter.

Parameters

  • lower boundary (float)
  • upper boundary (float)
  • :wrap (boolean) (t) - wrap value if it reaches lower or upper boundary
  • :limit (boolean) (nil) - limit value if it reaches upper or lower boundary
  • :step-size (float) (0.1) - step that the parameter will be incremented/decremented

Syntax

(brownian <lower boundary> <upper boundary> :wrap <wrap> :limit <limit> :step-size <step-size>)

Examples

(s 'some ()
  (always (rate (brownian 0.8 1.2)))
  (nuc 'violin (violin 'a3)))
Clone this wiki locally