sointu
#シンセ #4k #Demoscene #Demotool
https://gyazo.com/84156e018812d46b71ccc78a717f3e6d
https://github.com/vsariola/sointu
4k Intro向けシンセ・Tracker
4klangのフォーク
オーナーはpestis
Go製
WebAssembly対応
Tracker GUIがついてくる
sointuが用いられた作品
Adam by pestis / brainlez Coders!
Roadtrip by LJ & Virgill
sointu-track
トラッカー部分
$ sointu-track
sointu-compile
楽曲のコンパイラ
ヘルプを表示
$ sointu-compile -h
sointu/examples/code 内に、コンパイルした楽曲をプログラム内でどのように使えるか説明があるよ
asmとhを吐き出す
要nasm
code:bat
sointu-compile -o . -arch=386 physics_girl_st.yml
nasm -f win32 physics_girl_st.asm
C言語で呼び出す場合、 su_render_song にバッファを渡して呼び出す感じになる 🔗
wasmを吐き出す
要wat2wasm
code:bat
sointu-compile -o . -arch=wasm physics_girl_st.yml
wat2wasm --enable-bulk-memory physics_girl_st.wat
コメントがすごい丁寧なwatが吐き出される
WebAssembly.instantiate した瞬間にレンダリングされ、 instance.exports.m.buffer を取り出して使う感じになる 🔗