next up previous contents
Next: Combining elements to form Up: A Manual for SAWDUST Previous: element, elist: define one   Contents

Subsections

link: define a link

A link is a sequence of elements. Each link has:

        # An identifier, A sequence of elements, and Statements: the number of times it is to be played.

The link command

The link command lets you specify sequences of elements, which can later be played, or used as the initial or final state for a turn or a vary.

    *    link
    name:        l3             # identifier
    0:        e0                # list of constituent elements
    1:        e2
    2:        e1
    3:        e3
    4:                          # end input of list with blank line
    statements=  441            # number of iterations when played

When played, a link creates a frequency that is:


\begin{displaymath}frequency ~=~ {sampling\_rate \over link\_duration}\end{displaymath}

The link's duration (which is the waveform's period) is the sum of its elements' durations:


\begin{displaymath}link\_duration ~=~ \sum_{i = 0}^n element_i\end{displaymath}

where $element_i$ is the duration of the i'th element.

A link's statements determines how long it will sound.

If you want the link to sound for $N$ seconds, set statements to:


\begin{displaymath}statements ~=~ {N * sampling\_rate \over link\_duration} \end{displaymath}

Sawdust uses a sampling rate of 44100 samples per second.


next up previous contents
Next: Combining elements to form Up: A Manual for SAWDUST Previous: element, elist: define one   Contents
Arun Chandra 2001-05-18