Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions Guest/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ swift build --triple wasm32-unknown-none-wasm -c release --product Plotter
for n in Bass HiHat Kick Mix; do
swift build --triple wasm32-unknown-none-wasm -c release --product $n

cp "${bin_path}/${n}.wasm" ~/Desktop
cp "${bin_path}/${n}.wasm" $HOME
done


12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,19 +54,21 @@ cd /root/build
## How to Build and Run

Assuming you're within the cloned repository and have the latest development snapshots selected per the instructions
above, first build the package:
above, build modules from the `Guest` package (this will copy `.wasm` modules to the home directory of the current user):

```sh
swift build --triple wasm32-unknown-none-wasm -c release --product swift-audio
cd Guest; ./build.sh
```

Then start the HTTP server:

Then build and start the HTTP server:

```sh
python3 -m http.server
cd ../ServerHost; swift run Server
```

Open http://localhost:8000 in your browser to see the project running.
Open http://localhost:8080 in your browser to see the project running. Use the web interface to upload previously built
`Guest` modules from the home directory.

## License

Expand Down