| 1 | |
| 2 | <refentry id="planet"> |
| 3 | <indexterm id="IndexPlanet"><primary>planet</primary></indexterm> |
| 4 | <refentryinfo><title>Signal Generators:Models and Emulations</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>planet</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | <refnamediv> |
| 10 | <refname>planet</refname> |
| 11 | <refpurpose> |
| 12 | Simulates a planet orbiting in a binary star system. |
| 13 | </refpurpose> |
| 14 | </refnamediv> |
| 15 | |
| 16 | <refsect1> |
| 17 | <title>Description</title> |
| 18 | <para> |
| 19 | <emphasis>planet</emphasis> 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. |
| 20 | </para> |
| 21 | </refsect1> |
| 22 | |
| 23 | <refsect1> |
| 24 | <title>Syntax</title> |
| 25 | <synopsis>ax, ay, az <command>planet</command> kmass1, kmass2, ksep, ix, iy, iz, ivx, ivy, ivz, idelta \ |
| 26 | [, ifriction] [, iskip]</synopsis> |
| 27 | </refsect1> |
| 28 | |
| 29 | <refsect1> |
| 30 | <title>Initialization</title> |
| 31 | <para> |
| 32 | <emphasis>ix, iy, iz</emphasis> -- the initial x, y and z coordinates of the planet |
| 33 | </para> |
| 34 | |
| 35 | <para> |
| 36 | <emphasis>ivx, ivy, ivz</emphasis> -- the initial velocity vector components for the planet. |
| 37 | </para> |
| 38 | |
| 39 | <para> |
| 40 | <emphasis>idelta</emphasis> -- the step size used to approximate the differential equation. |
| 41 | </para> |
| 42 | |
| 43 | <para> |
| 44 | <emphasis>ifriction</emphasis> (optional, default=0) -- a value for friction, which can be used to keep the system from blowing up |
| 45 | </para> |
| 46 | <para> |
| 47 | <emphasis>iskip</emphasis> (optional, default=0) -- if non zero |
| 48 | skip the initialisation of the filter. (New in Csound version |
| 49 | 4.23f13 and 5.0) |
| 50 | </para> |
| 51 | </refsect1> |
| 52 | |
| 53 | <refsect1> |
| 54 | <title>Performance</title> |
| 55 | <para> |
| 56 | <emphasis>ax, ay, az</emphasis> -- the output x, y, and z coodinates of the planet |
| 57 | </para> |
| 58 | |
| 59 | <para> |
| 60 | <emphasis>ksep</emphasis> -- the separation between the two stars |
| 61 | </para> |
| 62 | |
| 63 | <para> |
| 64 | <emphasis>kmass1</emphasis> -- the mass of the first star |
| 65 | </para> |
| 66 | |
| 67 | <para> |
| 68 | <emphasis>kmass2</emphasis> -- the mass of the second star |
| 69 | </para> |
| 70 | </refsect1> |
| 71 | |
| 72 | <refsect1> |
| 73 | <title>Examples</title> |
| 74 | <para> |
| 75 | Here is an example of the planet opcode. It uses the file <ulink url="examples/planet.csd"><citetitle>planet.csd</citetitle></ulink>. |
| 76 | <example> |
| 77 | <title>Example of the planet opcode.</title> |
| 78 | <para>See the sections <link linkend="UsingRealTime"><citetitle>Real-time Audio</citetitle></link> and <link linkend="CommandFlags"><citetitle>Command Line Flags</citetitle></link> for more information on using command line flags.</para> |
| 79 | <xi:include href="examples-xml/planet.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 80 | </example> |
| 81 | </para> |
| 82 | </refsect1> |
| 83 | |
| 84 | <refsect1> |
| 85 | <title>See Also</title> |
| 86 | <para> |
| 87 | <link linkend="SiggenModels"><citetitle>Models and Emulations</citetitle></link> |
| 88 | </para> |
| 89 | <para> More information on this opcode: <ulink url="http://www.csoundjournal.com/issue9/FlutesInOrbit.html"><citetitle>http://www.csoundjournal.com/issue9/FlutesInOrbit.html</citetitle></ulink> , written by Brian Redfern. </para> |
| 90 | </refsect1> |
| 91 | |
| 92 | <refsect1> |
| 93 | <title>Credits</title> |
| 94 | <para> |
| 95 | <simplelist> |
| 96 | <member>Author: &namehans;</member> |
| 97 | <member>December 1998</member> |
| 98 | </simplelist> |
| 99 | </para> |
| 100 | <para>New in Csound version 3.50</para> |
| 101 | </refsect1> |
| 102 | </refentry> |