Yes, it's f(x) = k.

Note that `k` here is an AudioParam, so it's not always a constant --
similar to how frequency in OscillatorSourceNode or gain in GainNode can
vary per frame.
-Manish Goregaokar


On Thu, Nov 15, 2018 at 2:48 PM Avanthikaa Ravichandran <aravi...@ncsu.edu>
wrote:

> Hi,
>
> We are working on implementing the missing WebAudio nodes in servo-media.
> One of the initial steps says* ‘implement the missing ConstantSource node
> type that produces a constant tone based on a stored value that can be
> modified using the GainNode implementation as a model*'.
>
> Am I right in understanding that this requires implementing a wave f(x) =
> k, where k is a constant that is determined by the stored value? And the
> working of this wave is similar to sine, sawtooth, etc., with the only
> difference being the wave formula?
> _______________________________________________
> dev-servo mailing list
> dev-servo@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-servo
>
_______________________________________________
dev-servo mailing list
dev-servo@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-servo

Reply via email to