New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@synthlet/lfo

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@synthlet/lfo

A LFO (low frequency oscillator) generator audio worklet

latest
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

@synthlet/lfo

LFO generator module for synthlet

import { registerLfoWorklet, createLfo } from "synthlet"; // or "@synthlet/lfo";

const audioContext = new AudioContext();
await registerLfoWorklet(audioContext);

// Create a destination node
const osc = new OscillatorNode(audioContext, { frequency: 440 });

// Create the low frequency oscillator
const lfo = createLfo(audioContext, {
  type: "RandSampleAndHold"
  gain: 10,
  frequency: 1,
});

// Connect to destination parameter
lfo.connect(osc.frequency);

Install

Full package:

npm i synthlet

Just this module:

npm i @synthlet/lfo

Usage

You need to register the audio worklet before creating any instrument. See [/README.md#register] for details.

Keywords

lfo

FAQs

Package last updated on 07 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts