🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

@elemaudio/core

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@elemaudio/core

Official Elementary Audio core package

npmnpm
Version
3.2.0
Version published
Maintainers
1
Created
Source

@elemaudio/core

Elementary is a JavaScript/C++ library for building audio applications.

The @elemaudio/core package provides the standard library for composing audio processing nodes, as well as the core graph reconciling and rendering utilities. Often this will be used with one of the provided renderers, @elemaudio/web-renderer or @elemaudio/offline-renderer.

Please see the full documentation at https://www.elementary.audio/

Installation

npm install --save @elemaudio/core

Usage

import { el, Renderer } from '@elemaudio/core';


// Here we're using a default Renderer instance, so it's our responsibility to
// send the instruction batches to the underlying engine
let core = new Renderer((batch) => {
  // Send the instruction batch somewhere: you can set up whatever message
  // passing channel you want!
  console.log(batch);
});

// Now we can write and render audio. How about some binaural beating
// with two detuned sine tones in the left and right channel:
core.render(el.cycle(440), el.cycle(441));

License

MIT

Keywords

audio

FAQs

Package last updated on 14 Feb 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