Skip to content

mppnet/audioengine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

audioengine for mppnet

this is a c++ (compiled to wasm) application which is a supposed replacement for the current AudioEngineWeb that's in multiplayerpiano.

it can reliably play most black midis and normal midis with resonable performance with absolutely no artifacting.

this is very heavily in development still, and is not a final version at all.

uses TinySoundFont and emscripten.

Video - freedom dive black midi

bugs

  1. The only major bug is the fact that it's still mono! There's a ongoing TSF issue, which I've reported is still happening.
  2. Also, higher than 100-ish voice count crackles (we're using 200 voices for better blackmidi playback).. I have no clue how to fix this, maybe it's just a issue with how small the sample size for webaudio is (128 samples??).

build

use (with emsdk activated and sourced)

mkdir -p build

emcc -std=c++11 -lembind -s ALLOW_MEMORY_GROWTH -s EXPORTED_FUNCTIONS="['_malloc', '_free']" -s AUDIO_WORKLET=1 -s WASM_WORKERS=1 -O3 --emit-tsd audioengine.ts.d -o build/audioengine.js audioengine.cpp

to compile into build

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published