File: UserManual_72.html

package info (click to toggle)
taopm 1.0-7
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 6,972 kB
  • sloc: sh: 9,809; cpp: 5,161; yacc: 2,298; lex: 464; makefile: 434; ansic: 57
file content (69 lines) | stat: -rwxr-xr-x 4,000 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<!-- HTML file produced from file: UserManual.tex --
 -- using Hyperlatex v 2.3.1 (c) Otfried Cheong--
 -- on Emacs 21.1 (patch 4) "Arches" XEmacs Lucid, Sun Apr 30 20:50:01 2000 -->
<HEAD>
<TITLE>Tao User Manual -- Output Statement</TITLE>

    <link rel=stylesheet href="../../taomanual.css" type="text/css">
    
</HEAD><BODY BACKGROUND="bg.gif">

    <table width="500" border="0" align="left" cellspacing="2" cellpadding="2"><tr><td class="nav" valign="top"><!-- top panel --><A HREF="UserManual_65.html"><IMG ALT="Up" ALIGN=BOTTOM BORDER=0 SRC="up.gif"></A>
    <BR><A HREF="UserManual_65.html">Statements</A><BR><IMG width="167" height="1" SRC="trans1x1.gif">
    </td><td class="nav" valign="top"><A HREF="UserManual_71.html"><IMG ALT="Back" ALIGN=BOTTOM BORDER=0 SRC="back.gif"></A>
    <BR><A HREF="UserManual_71.html">Connection Statement</A><BR><IMG width="167" height="1" SRC="trans1x1.gif">
    </td><td class="nav" valign="top"><A HREF="UserManual_73.html"><IMG ALT="Forward" ALIGN=BOTTOM BORDER=0 SRC="forward.gif"></A>
    <BR><A HREF="UserManual_73.html">Join Statement</A><BR><IMG width="167" height="1" SRC="trans1x1.gif">
    </td></tr><!-- end top panel --><tr><td colspan="3" class="main"><!-- main text --><br><br>
<H3>Output Statement</H3>

The <EM>output statement</EM><A NAME="1"> is</A> used to feed floating point samples to
an Output device. The samples can be generated by arbitrary
mathematical expressions but are usually derived from expressions
involving access points.
<P><PRE>
    Output out1(stereo), out2(mono);
    .
    .
    Score 10 secs:
        out1.chL: string1(0.1);
        out1.chR: string1(0.9);
    
        out2.ch1: string1(0.5);
        ...
</PRE>
<P>As the previous example shows, the output statement consists of the
name of an Output object followed by one of the methods <CODE>ch1</CODE>,
<CODE>ch2</CODE>, <CODE>chL</CODE>, <CODE>chR</CODE>. This is then followed by
a colon and then the expression representing the floating point value
to be written out to the Output's associated file as an audio sample.
<P>Note that when an access point expression appeears in an output
statement, e.g. <CODE>string(0.1)</CODE>, it evaluates to a floating point
value representing the displacement of the instrument along the 
<I>z</I> axis at that point. It is as if the expression
<CODE>string(0.1).getPosition()</CODE> had been typed. This short-hand
notation makes it easier to read where the output samples are
coming from. Of course if you want to use the velocity of the
string at that point you could write instead:
<P><PRE>
    .
    .
        out1.chL: string(0.1).getVelocity();
        out1.chR: string(0.9).getVelocity();
</PRE>
<P>For a more detailed description of <B>Tao</B>'s expression syntax see
section <A HREF="UserManual_79.html">*</A>.
<P>
    <BR></td></tr><!-- end main text --><tr><td class="nav" align="left" valign="top"><!-- bottom matter --><A HREF="UserManual_65.html"><IMG ALT="Up" ALIGN=BOTTOM BORDER=0 SRC="up.gif"></A>
    <BR><A HREF="UserManual_65.html">Statements</A><BR><IMG width="167" height="1" SRC="trans1x1.gif">
    </td><td class="nav" align="left" valign="top"><A HREF="UserManual_71.html"><IMG ALT="Back" ALIGN=BOTTOM BORDER=0 SRC="back.gif"></A>
    <BR><A HREF="UserManual_71.html">Connection Statement</A><BR><IMG width="167" height="1" SRC="trans1x1.gif">
    </td><td class="nav" align="left" valign="top"><!-- bottom matter --><A HREF="UserManual_73.html"><IMG ALT="Forward" ALIGN=BOTTOM BORDER=0 SRC="forward.gif"></A>
    <BR><A HREF="UserManual_73.html">Join Statement</A>
    <IMG width="167" height="1" SRC="trans1x1.gif">
    </td></tr><!-- end bottom matter -->

    <tr><td colspan="3" class="addr"><!-- bottom panel --><ADDRESS><FONT SIZE=-1>&#169;1999,2000 Mark Pearson
<A HREF="mailto:m.pearson@ukonline.co.uk">m.pearson@ukonline.co.uk</A> April 30, 2000</ADDRESS><BR></td></tr><!-- end bottom panel --></table></BODY></HTML>