RedOscillator:
Filter:
redUniverse/Classes (extension) | Red > redUniverse

RedOscillator
ExtensionExtension

coupled oscillator

Description

See https://www.complexity-explorables.org/explorables/ride-my-kuramotocycle/

Instance Methods

.freq

Get or set the frequency.

.phase

Get or set the phase (theta) in radians.

.amp

Get or set the amplitude.

NOTE: Not really used in the oscillator. Just a useful placeholder.

.coupling

Strength (scale) of the phase influence.

.delta

Get the delta phase i.e. current phase speed.

.couple

Apply influence from another oscillator's phase. Call this before each -update.

Arguments:

osc

Another RedOscillator instance.

.update

Calculate new phase and delta. Always call -couple before this.

Examples