ixfx
    Preparing search index...
    • Triangle oscillator

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

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

      Parameters

      • timerOrFreq: number | Timer

      Returns Generator<number, void, unknown>