ixfx
    Preparing search index...
    • Saw oscillator

      import { Oscillators } from "https://unpkg.com/ixfx/dist/modulation.js"
      import { frequencyTimer } from "https://unpkg.com/ixfx/dist//flow.js";
      // Setup
      const osc = Oscillators.saw(Timers.frequencyTimer(0.1));

      // Or
      const osc = Oscillators.saw(0.1);

      // Call whenever a value is needed
      const v = osc.next().value;

      Parameters

      • timerOrFreq: number | Timer

      Returns Generator<number, void, unknown>