Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question on sending scripted events to WAM #86

Open
rhelsing opened this issue Apr 27, 2022 · 1 comment
Open

Question on sending scripted events to WAM #86

rhelsing opened this issue Apr 27, 2022 · 1 comment
Labels
question Further information is requested

Comments

@rhelsing
Copy link

I’m trying to set up a web based sequencer essentially and I’m wondering how feasible it would be to send note on/note off midi type events from the sequencer to a wasm based synth? Is there a javascript accessible event api to send these signals?

@owengc owengc added the question Further information is requested label Apr 27, 2022
@owengc
Copy link
Member

owengc commented Apr 27, 2022

Hello and thanks for your interest!

Yes, the WAM API has been designed to facilitate exactly this sort of interaction. I invite you to take a look at the WAM API and SDK repos, as well as the simple host example and sequencer example found here in wam-examples to get a sense of how these things work.

In short, if your synth is a WAM you can use your sequencer to schedule midi events from either the main thread (asynchronous, requires scheduling in advance) or directly on the audio thread (synchronous, can be scheduled 'just in time', but requires that your sequencer is itself also a WAM / AudioWorklet node). Please let us know if you have further questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants