
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@elemaudio/offline-renderer
Advanced tools
Official package for rendering Elementary Audio applications offline
Elementary is a JavaScript/C++ library for building audio applications.
The @elemaudio/offline-renderer
package provides a specific Renderer
implementation
for running Elementary applications in Node.js and web environments using WASM. Offline
rendering is intended for processing data with no associated real-time audio driver, such
as file processing. You'll need to use this package alongside @elemaudio/core
to build
your application.
Please see the full documentation at https://www.elementary.audio/
npm install --save @elemaudio/offline-renderer
Note: the offline renderer requires Node v18, or Node v16+ with the --experimental-wasm-eh
flag set.
import { el } from '@elemaudio/core';
import OfflineRenderer from '@elemaudio/offline-renderer';
(async function main() {
let core = new OfflineRenderer();
await core.initialize({
numInputChannels: 0,
numOutputChannels: 1,
sampleRate: 44100,
});
// Our sample data for processing: an empty input and a silent 10s of
// output data to be written into.
let inps = [];
let outs = [new Float32Array(44100 * 10)]; // 10 seconds of output data
// Render our processing graph
core.render(el.cycle(440));
// Pushing samples through the graph. After this call, the buffer in `outs` will
// have the desired output data which can then be saved to file if you like.
core.process(inps, outs);
})();
MIT
FAQs
Official package for rendering Elementary Audio applications offline
We found that @elemaudio/offline-renderer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.