Sine oscillator.
import { Oscillators } from "https://unpkg.com/ixfx/dist/modulation.js"import { frequencyTimer } from "https://unpkg.com/ixfx/dist//flow.js";// Setupconst osc = Oscillators.sine(frequencyTimer(10));const osc = Oscillators.sine(0.1);// Call whenever a value is neededconst v = osc.next().value; Copy
import { Oscillators } from "https://unpkg.com/ixfx/dist/modulation.js"import { frequencyTimer } from "https://unpkg.com/ixfx/dist//flow.js";// Setupconst osc = Oscillators.sine(frequencyTimer(10));const osc = Oscillators.sine(0.1);// Call whenever a value is neededconst v = osc.next().value;
const v = Math.pow(osc.value, 2); Copy
const v = Math.pow(osc.value, 2);
const v = Math.pow(osc.value, 0.5); Copy
const v = Math.pow(osc.value, 0.5);
Sine oscillator.