Skip to content

Commit

Permalink
Merge pull request #12 from eshaz/update-deps
Browse files Browse the repository at this point in the history
Update Dependencies
  • Loading branch information
eshaz authored Oct 21, 2023
2 parents 593c38d + 9610bd6 commit ff716c1
Show file tree
Hide file tree
Showing 14 changed files with 1,440 additions and 1,052 deletions.
21 changes: 20 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* [Options](#options)
* [Methods](#methods)
* [Types](#types)
* [Developing](#developing)

## Installing

Expand Down Expand Up @@ -304,4 +305,22 @@ declare interface MultipleClipMatch {
* Correlation coefficient between the previous clip and this cli
* Ranging from -1 (worst) to 1 (best)
* `sampleOffset`
* Number of samples relative to the root clip (first clip in the match)
* Number of samples relative to the root clip (first clip in the match)


## Developing

### Prerequisites
1. Install Emscripten by following these [instructions](https://kripken.github.io/emscripten-site/docs/getting_started/downloads.html#installation-instructions).
* This repository has been tested with Emscripten 3.1.46.

### Building
1. Make sure to `source` the Emscripten path in the terminal you want build in.
* i.e. `$ source path/to/emsdk/emsdk_env.sh`
1. Run `npm i` to install the dependencies.
1. Run `make clean` and `make` to build the libraries.
* You can run `make -j8` where `8` is the number of CPU cores on your system to speed up the build.
1. The builds will be located in the `dist` folder.

### Testing
1. Run `npm run test` to run the test suite.
4 changes: 2 additions & 2 deletions build.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const build = async (simdPath, scalarPath) => {
scalarWasm,
scalarContent.groups.end,
synAudio.substring(scalarEnd),
].map(Buffer.from)
].map(Buffer.from),
);

await fs.writeFile(synAudioPath, finalString, { encoding: "binary" });
Expand All @@ -76,7 +76,7 @@ const build = async (simdPath, scalarPath) => {
// terser
const minified = await minify(
{ [bundleOutput.fileName]: bundleOutput.code },
terserConfig
terserConfig,
);

// write output files
Expand Down
Loading

0 comments on commit ff716c1

Please sign in to comment.