This aopcode was taken from [CMJ 23:2].
=================================================
aopcode voscil(table wave, ivar cps, ksig depth, ksig rate)
{
// wave: waveshape
// cps: carrier frequency
// depth: vibrato depth (as fraction)
// rate: vibrato rate
ksig vib, newfreq;
asig sound;
table vibshape(harm, 128, 1); // waveshape for vibrato
vib = koscil(vibshape, rate); // sinusoidal vibrato
newfreq = cps * (1 - vib * depth); // FM banking
sound = oscil(wave, newfreq);
return(sound);
}
=================================================
Using this code without changes, sfront warns that "the statement
never runs near newfreq" and there is no sound output. When the line
"ksig vib, newfreq" is changed from "ksig" into "asig", everything works
fine and sound is generated. Shouldn't it run ok without this modification?
[CMJ 23:2] Scheirer, Eric. Vercoe, Barry L. "SAOL: The MPEG-4
Structured Audio Orchestra Language". Computer Music Journal, v. 23, no
2 (Summer 1999), pp. 31-51.
Best regards,
Gustavo André Hoffmann
mailto:gusthoff@ieee.org
ICQ# 48696602
http://gusthoff.iuma.com
http://www.geocities.com/gusthoff
This archive was generated by hypermail 2b29 : Mon Jan 28 2002 - 11:46:41 EST