GravityGrid:

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

Extension

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

Eight fixed masses around a boundary 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.

Note: This original GravityGrid contains an erroneous folding function, and gravity which is more attractive as the distance increases! Which however, adds interesting distortions to the sound. See GravityGrid2 for a cleaned up version. This one is retained for backwards compatibility.

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 for the different outer masses indexed as 0-3 and 5-8 and central moving mass 4. Passing -1 means that the weights are not used (are flat). |

helpfile source: /Library/Application Support/SuperCollider/Extensions/sc3-plugins-3.13.0/SC3plugins/SLUGens/HelpSource/Classes/GravityGrid.schelp

link::Classes/GravityGrid::

link::Classes/GravityGrid::