diff options
author | Felipe Sateler <fsateler@debian.org> | 2014-01-24 13:54:37 -0300 |
---|---|---|
committer | Felipe Sateler <fsateler@debian.org> | 2014-01-24 13:54:37 -0300 |
commit | bcf06a42deb371baf3deb9f4addb474b08273120 (patch) | |
tree | 4a8c3fb811dd164d4486628d8eff6043ebe8a6c3 /opcodes/floor.xml | |
parent | 3a91171181113761a14bcc36a086a8dda144b77b (diff) |
Imported Upstream version 6.02~dfsg
Diffstat (limited to 'opcodes/floor.xml')
-rw-r--r-- | opcodes/floor.xml | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/opcodes/floor.xml b/opcodes/floor.xml index 7e160fd..ca1dd34 100644 --- a/opcodes/floor.xml +++ b/opcodes/floor.xml @@ -34,7 +34,36 @@ further expression. </para> </refsect1> - + + <refsect1> + <title>Examples</title> + <para> + Here is an example of the floor opcode. It uses the file <ulink url="examples/floor.csd"><citetitle>floor.csd</citetitle></ulink>. + <example> + <title>Example of the floor opcode.</title> + <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> + <xi:include href="examples-xml/floor.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> + </example> + </para> + </refsect1> + + <refsect1> + <para> + The output should include lines like these: + <screen> +instr 1: inumber = 9.000 idiv = 1.000 ifl = 9.000 +instr 1: inumber = 9.000 idiv = 2.000 ifl = 4.000 +instr 1: inumber = 9.000 idiv = 3.000 ifl = 3.000 +instr 1: inumber = 9.000 idiv = 4.000 ifl = 2.000 +instr 1: inumber = 9.000 idiv = 5.000 ifl = 1.000 +instr 1: inumber = 9.000 idiv = 6.000 ifl = 1.000 +instr 1: inumber = 9.000 idiv = 7.000 ifl = 1.000 +instr 1: inumber = 9.000 idiv = 8.000 ifl = 1.000 +instr 1: inumber = 9.000 idiv = 9.000 ifl = 1.000 +instr 1: inumber = 9.000 idiv = 10.000 ifl = 0.000 + </screen> + </para> + </refsect1> <refsect1> <title>See Also</title> |