advice needed to use workers in sonification library #85
Unanswered
venkateshpotluri
asked this question in
Q&A
Replies: 1 comment
-
|
Hey @venkateshpotluri! I took a look at this branch - there seems to be two issues with the web worker:
Having said all of that, I'm not convinced that you need to use a web worker to implement the timer to schedule sounds. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am refactoring the sonifier code to address #60. As mentioned in the issue description, we need to change how we schedule sound to this approach. I am implementing a web worker that acts as a timer to schedule sounds as mentioned in the article and am looking for some advice to use web workers in the project setup we have. My code is hear: 7f0e971
specifically, I get a runtime error as follows: Error
timerWorker.ts:1 Search for this message on the Web Uncaught SyntaxError: Unexpected token '<'
I tried reading up on using web workers in typescript and all the information I find mentions use of react with typescript, and suggests to use webpack and/or eject the react app. My understanding is that the above error is due to my improper use of workers in our project setup. However, I am unsure of the best way to fix this i.e. use web workers in our project setup. Please provide pointers and advice to address this. Tagging @jrthompson33 and @pelikhan as we discussed this code change and the build system that we use.
Beta Was this translation helpful? Give feedback.
All reactions