gogins / cloud-5

Complete browser-based computer music studio for algorithmic composition and live coding

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bring s7 Scheme (and Common Music?) into cloud-5 via WASM

gogins opened this issue · comments

Iain Duncan has persuasive examples of using s7 in Max here.

Duncan's WASM repository is here.

This does not build out of the box, therefore I am closing this issue again (for now).

michaelgogins@Michaels-MacBook-Pro ~/consolidation/s7-wasm % emcc -c s7.c -o s7.wasm
shared:INFO: (Emscripten: Running sanity checks)
cache:INFO: generating system headers: sysroot_install.stamp... (this will be cached in "/opt/homebrew/Cellar/emscripten/3.1.62/libexec/cache/sysroot_install.stamp" for subsequent builds)
cache:INFO: - ok
s7.c:10820:6: warning: "no arithmetic overflow checks in this version of s7" [-W#warnings]
10820 | #warning "no arithmetic overflow checks in this version of s7"
| ^
s7.c:26117:15: warning: 'FILENAME_MAX' macro redefined [-Wmacro-redefined]
26117 | #define FILENAME_MAX 1024
| ^
/opt/homebrew/Cellar/emscripten/3.1.62/libexec/cache/sysroot/include/stdio.h:61:9: note: previous definition is here
61 | #define FILENAME_MAX 4096
| ^
2 warnings generated.
michaelgogins@Michaels-MacBook-Pro ~/consolidation/s7-wasm % emcc simple.c s7.wasm --js-library mergeinto.js -o simple.js -L. -I. -ldl -lm -s EXPORTED_RUNTIME_METHODS=['ccall','UTF8ToString']
zsh: no matches found: EXPORTED_RUNTIME_METHODS=[ccall,UTF8ToString]