Comments (2)
@petersalomonsen Thank you for the answer! I will be digging and exploring more, who knows, maybe eventually I will come up with some tool or library to really making cross-platform audio plugins with AssemblyScript. Cheers to you Peter, I'm following your work very tight and learning a lot from it, so thank you for this too! :)
from javascriptmusic.
Yes, indeed this is possible.
Actually if using the AssemblyScript midisynth ( https://github.com/petersalomonsen/javascriptmusic/blob/master/wasmaudioworklet/synth1/assembly/midi/midisynth.ts#L208 ) you have methods like shortMessage
which accepts regular midi note on/note off, control changes etc. And there's a fillSampleBuffer
method that can be used for each render callback (will fill 128 frames of audio data).
The exported wasm files from the webassembly music web app already expose these methods and so they can be used directly in a VST or audiounit by converting them to c (using wasm2c). You could also use them from webassembly runtimes like nodejs or via python like you say. @vshymanskyy has already done this in https://github.com/wasm3/pywasm3 (not with the midisynth though, but the first gen pattern sequencer version. But he's also testing the midisynth).
So this is absolutely possible even today :)
from javascriptmusic.
Related Issues (8)
- Great experiment! HOT 11
- Licensing HOT 1
- Questions! (Btw, this project is awesome!!) HOT 3
- new related project HOT 8
- Feedback, features propositions, more questions (time, duration, seeking, audio samples, etc) HOT 22
- possible different or additional license? HOT 7
- mod, xm, s3m, it, MusicXML & verovio integration? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from javascriptmusic.