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

c2js - midi output and device select #204

Merged
merged 10 commits into from
Oct 14, 2024

Conversation

dromer
Copy link
Collaborator

@dromer dromer commented Oct 5, 2024

Additions:

  • midi out
  • midi device selection

@dromer dromer marked this pull request as draft October 5, 2024 19:10
@dromer dromer changed the title C2jstemplate mid iupdate c2js - midi output and device select Oct 6, 2024
@Reinissance
Copy link

we should maybe rename hv_worklet_start.js to something like midi_utils.js - unless we'll be using it for other shared code as well.

@dromer
Copy link
Collaborator Author

dromer commented Oct 8, 2024

@chrisuehlinger hey we are wondering what the hv_worklet_start.js is exactly for.

Can you give us some more info? (as it was almost being removed in this PR)

hvcc/generators/c2js/c2js.py Outdated Show resolved Hide resolved
@chrisuehlinger
Copy link
Collaborator

@chrisuehlinger hey we are wondering what the hv_worklet_start.js is exactly for.

Can you give us some more info? (as it was almost being removed in this PR)

First off, sorry for ghosting without totally finishing this work. Life got really hectic that summer very suddenly. I'd like to come back and check in on this at some point, make sure it builds against the most recent versions of these APIs and with the most recent version of emscripten. I may have some time in December or January, though I can't commit to anything 100%.

Anyway, wrt this file, I think those are shims for some browser APIs that aren't present in the AudioWorklet and needed to be shimmed out so that other libraries wouldn't crash when loaded in an AudioWorklet. I'd recommend leaving that stuff in unless you've got a solid way to smoke test the outputs and make sure they don't crash.

@dromer
Copy link
Collaborator Author

dromer commented Oct 11, 2024

Thank you for the reply @chrisuehlinger !

Looking forward to your involvement again in the future :)

@Reinissance
Copy link

Hm, seems to fail again because of flake8 complaining about the missing new line at the end in c2js, could it be this check was added after the last changes made in this file? As I completely restored it to the state before I touched it...

@dromer
Copy link
Collaborator Author

dromer commented Oct 11, 2024

No, these checks have been in place since forever.

It seems you are not putting a proper newline here.

@dromer dromer marked this pull request as ready for review October 11, 2024 15:27
@dromer
Copy link
Collaborator Author

dromer commented Oct 12, 2024

@Reinissance I'll see if I can try this today :)

@dromer dromer added this to the 0.13 milestone Oct 13, 2024
@dromer dromer merged commit 8759c49 into Wasted-Audio:develop Oct 14, 2024
@Reinissance Reinissance deleted the c2jstemplateMIDIupdate branch October 14, 2024 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants