Skip to content
This repository has been archived by the owner on Nov 4, 2021. It is now read-only.

Respond to additional input sources besides polling #34

Open
3 tasks
mikesol opened this issue Dec 23, 2020 · 0 comments
Open
3 tasks

Respond to additional input sources besides polling #34

mikesol opened this issue Dec 23, 2020 · 0 comments
Milestone

Comments

@mikesol
Copy link
Owner

mikesol commented Dec 23, 2020

Currently, purescript-audio-behaviors only builds the audio graph at a polling rate of ~50Hz. This is unsuitable for reactive audio applications. It would be better if the graph were constructed based on arbitrary input events, which would require two modifications:

  • the EngineInfo record would have to include a list of additional event sources; and
  • the computation would have to move off of the main thread to a pool of web-workers, as multiple events in rapid succession would clog the rendering pipeline; and
  • some sort of incremental function is likely necessary, as even with pre-rendered audio graphs, calculating the graph diff for a complex cluster of events (ie ~20 concurrent MIDI notes) will clog the rendering pipeline.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant