Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@elemaudio/core

Package Overview
Dependencies
Maintainers
1
Versions
21
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

  • 3.2.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1.2K
increased by20.69%
Maintainers
1
Weekly downloads
 
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

FAQs

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc