Getting started with Faust for SuperCollider

Just make freq an argument:

import("stdfaust.lib");

decimalpart(x) = x-int(x);
phase(f) = f/ma.SR : (+ : decimalpart) ~_;
osc(f) = phase(f) * 2 * ma.PI : sin;

process (freq) = osc(freq) <: _,_;

That should be an audio rate input in SC, once compiled, and you can use an audio rate signal like a SinOsc or whatever to modulate it.

Sam

2 Likes