Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Well sometimes you change the visual code also in real-time. The video above was just for showing the canvas works so I did not edit the visuals code there.

I post the hydra link here. There are lots of demo there:

https://hydra.ojack.xyz/

So far I haven't tried to make them talk such as sync the beat etc. But I think with web worker it is doable.



Ohhh I totally missed that you're the author of Glicol. Okay. So you integrated Hydra as like a first-class thing -- I see I see. I thought you were plugging two 3rd party things together.

So I'm guessing that the best case scenario for you is to import Bauble as like a normal JavaScript dependency, and then use the editor built into the Glicol UI to write scripts, and then just call like Bauble.compile(canvas, script). Right?

Bauble doesn't really know how to be embedded in another page right now -- it's more like an app than a library. But it would be possible to extract the core parts. It's a little tricky because it uses WASM, so it kinda needs to load itself a little specially, but I'm sure there's some way around that.

Would be cool to sync something like this to music! https://twitter.com/ianthehenry/status/1567228698373533696 (ignore the terrible lighting. lights are coming one day)


Yeah. Glicol language and audio engine is written in Rust and compiled to WASM. I still manage to export the WASM module to an NPM package (https://glicol.js.org/). But Emscripten may be a little bit different, but there will always be some solution I guess. I've watched your repo haha.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: