TermanWang:
Filter:
Classes (extension) | UGens > Generators > Chaotic

TermanWang : UGen : AbstractFunction : Object
ExtensionExtension

Neural Oscillator
Source: SLUGens.sc

//SLUGens released under the GNU GPL as extensions for SuperCollider 3, by Nick Collins, http://composerprogrammer.com/index.html 

Description

NOTE: experimental, not working well

Naive Euler ODE solver implementation of a neural oscillator model by Terman and Wang (see Brown, G.J., and Wang, D. 2006. "Neural and Perceptual Modeling." In Wang, D., and Brown, G. J., eds. Computational Auditory Scene Analysis: Principles, Algorithms, and Applications. Hoboken, NJ: John Wiley and Sons/IEEE Press, p.355).

Dx = ratex * ( 3*x - x^3 (+ 2) - y + input )

Dy = ratey * (eta ( alpha* (1 + tanh(x/beta)) - y ))

All parameters can have .kr rate UGens plugged in. The +2 is left out and can be added back in as part of the input. eta can also be left out as part of yrate.

Class Methods

TermanWang.ar(input: 0, reset: 0, ratex: 0.01, ratey: 0.01, alpha: 1.0, beta: 1.0, eta: 1.0, initx: 0, inity: 0, mul: 1.0, add: 0.0)

Arguments:

input

audio rate input

reset

restart

ratex

update rate for x

ratey

update rate for y

alpha
beta
eta

Equation parameters

initx

reset value for u

inity

reset value for w

Inherited class methods

Instance Methods

Inherited instance methods

Examples