planetSignal Generators:Models and Emulationsplanetplanet
Simulates a planet orbiting in a binary star system.
Descriptionplanet simulates a planet orbiting in a binary star system. The outputs are the x, y and z coordinates of the orbiting planet. It is possible for the planet to achieve escape velocity by a close encounter with a star. This makes this system somewhat unstable.
Syntaxax, ay, az planet kmass1, kmass2, ksep, ix, iy, iz, ivx, ivy, ivz, idelta \
[, ifriction] [, iskip]Initializationix, iy, iz -- the initial x, y and z coordinates of the planet
ivx, ivy, ivz -- the initial velocity vector components for the planet.
idelta -- the step size used to approximate the differential equation.
ifriction (optional, default=0) -- a value for friction, which can be used to keep the system from blowing up
iskip (optional, default=0) -- if non zero
skip the initialisation of the filter. (New in Csound version
4.23f13 and 5.0)
Performanceax, ay, az -- the output x, y, and z coodinates of the planet
ksep -- the separation between the two stars
kmass1 -- the mass of the first star
kmass2 -- the mass of the second star
Examples
Here is an example of the planet opcode. It uses the file planet.csd.
Example of the planet opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.See AlsoModels and Emulations More information on this opcode: http://www.csoundjournal.com/issue9/FlutesInOrbit.html , written by Brian Redfern. CreditsAuthor: &namehans;December 1998New in Csound version 3.50