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

GravityGrid2 : UGen : AbstractFunction : Object
ExtensionExtension

dynamical system simulation (Newtonian gravitational force)
Source: SLUGens.sc

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

Description

Fixed masses apply Newtonian gravitational force dynamics to a central moving mass which cannot escape the [-1, 1] grid in x or y. The position of the moving mass is sonified as an oscillator by its distance from the centre.

This is a relatively expensive oscillator to run.

Class Methods

GravityGrid2.ar(reset: 0, rate: 0.1, newx: 0.0, newy: 0.0, bufnum, mul: 1.0, add: 0.0)

Arguments:

reset

Restart the moving mass at a random position within the square (k-rate input)

rate

amount of position update per sample (k-rate)

newx

kr input to be sampled for new x positions for the moving mass on reset

newy

kr input to be sampled for new y positions for the moving mass on reset

bufnum

Bufnum for a buffer containing weights and positions for the fixed influencing masses. In the format entry [0] is the number of masses, then 3 components (x, y, mass multiplier) for each mass in turn (see below). You can dynamically change this buffer as long as the data contents stay consistent- i.e. if you change suddenly to having twice as many masses, make sure you've provided x,y and weight values for them!

Inherited class methods

Instance Methods

Inherited instance methods

Examples