Add WasmBoy and WasmSynth

extensions
Volodymyr Shymanskyy 4 years ago
parent 270217a968
commit d2be91ee0c

@ -0,0 +1,28 @@
# WasmBoy
<p align="center"><img width="50%" src="image.png"></p>
To run WasmBoy, you need a Gameboy ROM file. For example, you can download [`tobudx.gb` (Tobu Tobu Girl ROM)](https://tangramgames.itch.io/tobu-tobu-girl-deluxe/purchase?popup=1)
`wasm3.wasm` is a normal WASI build of Wasm3.
### Run with Webassembly.sh
Drag'n'drop `wasm3.wasm`, `wasmerboy.wasm`, `tobudx.gb` to [Webassembly.sh](https://webassembly.sh) and run:
```sh
wasm3 /tmp/wasmerboy.wasm /tmp/tobudx.gb
```
To speed it up (at your own risk, this disables security features):
```sh
chromium-browser --no-sandbox --js-flags="--wasm-opt --wasm-no-bounds-checks --wasm-no-stack-checks" "https://webassembly.sh"
```
### Run with Wasmer
`TODO`
### Also
Check out [Aaron Turner's article on Wasmer and WasmBoy](https://medium.com/wasmer/wasmer-io-devices-announcement-6f2a6fe23081).

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

@ -0,0 +1,24 @@
# Wasm Synth
<p align="center"><img width="50%" src="image.png"></p>
Here is some music created by [Peter Salomonsen](https://petersalomonsen.com/) in his [wasm music experiment](https://petersalomonsen.com/webassemblymusic/livecodev2/):
- **Hondarribia (opening track from WASM summit 2020)**, `hondarribia.wasm` [SoundCloud](https://soundcloud.com/psalomo/hondarribia)
- **WASM song**, `wasm-song.wasm` [SoundCloud](https://soundcloud.com/psalomo/wasm-song)
- **Shuffle Chill**, `shuffle-chill.wasm` [SoundCloud](https://soundcloud.com/psalomo/shuffle-chill)
- **"WebChip" music**, `webchip-music.wasm` [SoundCloud](https://soundcloud.com/psalomo/webchip-music)
Check out Peter's [excellent talk on WebAssembly Summit 2020](https://www.youtube.com/watch?v=WZp0sPDvWfw&t=18670).
### Running
Generate a `wav` file:
```
wasm3 hondarribia.wasm | sox -S -t raw -b 32 -e float -r 44100 -c 2 - hondarribia.wav
```
Play live (choppy on most machines):
```
wasm3 hondarribia.wasm | sox -S -t raw -b 32 -e float -r 44100 -c 2 - -d
```

Binary file not shown.

After

Width:  |  Height:  |  Size: 155 KiB

Loading…
Cancel
Save