ixfx
    Preparing search index...
    • Square oscillator

      import { Oscillators } from "https://unpkg.com/ixfx/dist/modulation.js"

      // Setup
      const osc = Oscillators.square(Timers.frequencyTimer(0.1));
      const osc = Oscillators.square(0.1);

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

      Parameters

      • timerOrFreq: number | Timer

      Returns Generator<0 | 1, void, unknown>