Code Monkey home page Code Monkey logo

webdx7's Introduction

webdx7 (AudioWorklet/WASM edition)

virtual Yamaha DX7 synth in a browser.

demo

other WAM demos at webaudiomodules.org/wamsynths

Please note that low latency AudioWorklets require Chrome Canary 64 (or later) and setting a flag as explained here. Other stable browsers are enabled with this polyfill.

info

This repo contains a work-in-progress implementation of webdx7 in WebAssembly. The binary runs in AudioWorklet. webdx7 is built on top of Web Audio Modules (WAMs) API, which is currently extended to support AudioWorklets and WebAssembly.

The code here includes pure hacks to work around limitations in current AudioWorklet browser implementation, and should definitely not be considered best practice :) WAMs API will be updated as AudioWorklets mature.

prerequisites

building

#1 wasm compilation

cd build
export PATH=$PATH:/to/emsdk/where/emmake/resides
emmake make

step #1 creates two files, dx7.wasm and dx7.js. WASM binary cannot currently be loaded into AudioWorkletProcessor (AWP) directly, so let's encode it into a JS Uint8Array in step #2.

#2 encoding

node encode-wasm.js dx7.wasm

step #2 produces dx7.wasm.js file, which can be loaded into AWP.

done

We have now dx7.wasm.js (from step #2) and its loader dx7.js (from step #1). Copy these files to dist/dx7/wasm folder, and copy some DX7 sysex files into dist/dx7/presets. See readme there for instructions.

Finally open dist/dx7.html in a WASM-enabled browser and enjoy cool authentic FM sounds straight in browser. Works with MIDI and embedded virtual keyboard.

webdx7's People

Contributors

jariseon avatar olilarkin avatar pioug avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.