Re: Help

From: John Lazzaro (lazzaro@cs.berkeley.edu)
Date: Tue Mar 21 2000 - 14:45:21 EST


> Then using a matlab program I match the frequencies I
> wish to play and then produce a sasl file like this
>
>0.00000 vtone 0.0025 0.0627 0.0625
> 0.00251 vtone 0.0025 0.0625 0.0628
>
> The problem I am having is that I need to change the frequency being
> played every 2.5ms.

What you want to do is to start just one vtone, at time
zero, with indefinite length, and label that SASL statement,
something like this:

n0 : 0 vtone -1

You also want to change the SAOL code, so that the instr
definition has a few "imports ksig" variables:

imports ksig newf, newphase;

The values of newf and newphase can now be updated using
labelled control statements in the SASL file, for example:

0.0025 n0 control newf 500
0.0025 n0 control newphase 0
0.005 n0 control newf 600
0.005 n0 control newphase 0.1
0.0075 n0 control newf 700
0.0075 n0 control newphase 0.2

This is the basic mechanism to do the sort of thing you
want to do -- get dynamic information into a running instr
statement.

See:

http://www.cs.berkeley.edu/~lazzaro/sa/book/tut/index.html#reverb

for an example of this technique in action -- in this example,
the imports kig variable "bend" exists in the vctone instr, and
is varied in the SASL score using labelled control statements.
Hope this helps,

                                                        --jl



This archive was generated by hypermail 2b29 : Mon Jan 28 2002 - 11:46:38 EST