Skip to content

Play midi via AlphaSynth does not work in node environment. #1606

Answered by Danielku15
Barba828 asked this question in Q&A
Discussion options

You must be logged in to vote

I think we might be mixing things here a bit.

  1. Audio Synthesis in Node.

The AlphaSynthAudioWorkletOutput is not supported on Node. As the name implies: This "output" is using Audio Worklets which are a Browser API unavailable in Node. We currently have no output which would work on node.js. As node.js doesn't ship a platform API itself for audio, some third party library would have to be used.

If you just want to collect the raw audio samples yourself a implementation of an output can look like this: https://github.com/CoderLine/alphaTab/blob/develop/test/audio/TestOutput.ts

  1. Electron and Web Audio.

Electron is generally using the Chrom…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Barba828
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants