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

Audio data generated by configurable bytecode VM #5

Open
jimd1989 opened this issue Jan 22, 2023 · 0 comments
Open

Audio data generated by configurable bytecode VM #5

jimd1989 opened this issue Jan 22, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@jimd1989
Copy link
Owner

Rather than having hardcoded parameters, the program should expose variables like volume, feedback, wetness, delay time, etc to the user and allow him to use them to his own ends via a stack-based language that runs in a VM. Much of this work has already been completed in the vm directory, but it hasn't been wired to audio yet.

  • The audio program is compiled from plaintext to bytecode once, and then run against every sample of left and right input.
  • At the end of a program run for a given sample, the stack should contain two floats: a right sample and left sample, with left on top, since popping will allow access to left first, as is conventional.
  • This will yield four floats for each sampling cycle: left/right derived from left input, and left/right derived from right input. These can be mixed down the stereo however one wishes.
  • Errors should fail silently and sound should continue at all costs. Glitched audio is half the point of allowing this level of access.
@jimd1989 jimd1989 added the enhancement New feature or request label Jan 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant