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

RedOscillator2
ExtensionExtension

doubly coupled oscillator

Description

See https://www.complexity-explorables.org/explorables/janus-bunch/

Instance Methods

.freq2

Get or set the second frequency.

.phase2

Get or set the second phase (theta) in radians.

.amp2

Get or set the second amplitude.

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

.internalCoupling

Strength (scale) of the phase influence internally.

.delta2

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

.couple

Apply influence from two other oscillator's phase (normally left and right when connected in a ring). Call this before each -update.

Arguments:

prev

The left RedOscillator2 instance.

next

The right RedOscillator2 instance.

.update

Calculate new phases (phase and phase2) as well as speeds (delta and delta2). Always call -couple before this.

Examples